Page 1 of 1

Ctrl+Click on Linux

Posted: Sun Mar 28, 2010 12:14 am
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?

Re: Ctrl+Click on Linux

Posted: Sun Mar 28, 2010 8:38 am
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

Re: Ctrl+Click on Linux

Posted: Tue Apr 06, 2010 12:45 pm
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 !)

Re: Ctrl+Click on Linux

Posted: Tue Apr 06, 2010 3:26 pm
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

Re: Ctrl+Click on Linux

Posted: Mon Jun 14, 2010 4:42 pm
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('!'):

Re: Ctrl+Click on Linux

Posted: Mon Jun 14, 2010 8:34 pm
by eranif
I will need to test it, but if it works I dont see why not

Eran