Ctrl+Click on Linux

General questions regarding the usage of CodeLite
User avatar
kspes
CodeLite Enthusiast
Posts: 41
Joined: Sat Jan 30, 2010 2:18 am
Genuine User: Yes
IDE Question: C++
Contact:

Ctrl+Click on Linux

Post by kspes »

Hi,

I'm running ubuntu 9.10 and Codelite 2.3 istalled from the official .def file.

I can't seem to Ctrl-Click on a symbol to go to it's declaration/implementation as I can on Windows. is there an alternative shortcut for that on Linux?
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Ctrl+Click on Linux

Post by eranif »

No. Its disabled on Linux (you can also notice that the page to configure this is not there on Linux)
There is a BUG or FR for this (cant remember which one)
Eran
Make sure you have read the HOW TO POST thread
josee
CodeLite Enthusiast
Posts: 37
Joined: Fri Feb 05, 2010 10:57 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Ctrl+Click on Linux

Post by josee »

Hi,

Goto Declaration (or CTRL+mous click) does not work on symbol run_process in contexts like:
err=run_process
/*...*/run_process

It works only if a space is on the left side of run_process. Same is true for Goto Implementation.

(Using v5.2.4031 on Ubuntu 9.10)
(New version is great !)
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Ctrl+Click on Linux

Post by eranif »

josee wrote:It works only if a space is on the left side of run_process. Same is true for Goto Implementation.
There is an old bug for this (same bug, different symptom):

https://sourceforge.net/tracker/?func=d ... tid=979960

Eran
Make sure you have read the HOW TO POST thread
josee
CodeLite Enthusiast
Posts: 37
Joined: Fri Feb 05, 2010 10:57 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Ctrl+Click on Linux

Post by josee »

Hello,

the bug is fixed for the following cases:

err=run_process
/*...*/run_process

Do you want to include the patch, Eran ?

----------------------------------------------------
PATCH FILE
----------------------------------------------------
--- ../Downloads/codelite-2.5.3.4075/LiteEditor/context_cpp.cpp 2010-05-26 20:38:20.000000000 +0200
+++ LiteEditor/context_cpp.cpp 2010-06-14 14:16:30.408386508 +0200
@@ -521,7 +521,7 @@
}

//Comment?
- int style = ctrl->GetStyleAt(pos);
+ int style = ctrl->GetStyleAt(at);
if (style == wxSCI_C_COMMENT ||
style == wxSCI_C_COMMENTLINE ||
style == wxSCI_C_COMMENTDOC ||
@@ -569,7 +569,6 @@
}
break;
case wxT('{'):
- case wxT('='):
prevGt = false;
prevColon = false;
cont = false;
@@ -586,6 +585,7 @@
}
break;
case wxT(','):
+ case wxT('='):
case wxT('*'):
case wxT('&'):
case wxT('!'):
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Ctrl+Click on Linux

Post by eranif »

I will need to test it, but if it works I dont see why not

Eran
Make sure you have read the HOW TO POST thread
Post Reply