Page 1 of 1

Moving back and forth in code

Posted: Mon Oct 19, 2009 11:37 am
by DSP_Programmer
Hello,

I use "Go to previous location" quite often. Is there any way to go then back again from where I started after using this? So assuming I editing at place "n" in code (in one file) and go back 3 times to location "x" (in a different file) using "Go to previous location". Is there any quick way to go back to location "n"?

Re: Moving back and forth in code

Posted: Mon Oct 19, 2009 12:44 pm
by eranif
In the main toolbar, there are 2 blue arrows, one says 'Forward' and second 'backward'
Use them for navigating in the code back and forth

codelite keep tracks of various operations you do (open file, go to definition, find in files, cscope matches etc) and create an internal 'browsing record' and then you can use the 'Back' and 'Forward' to "walk" through them

Eran

Re: Moving back and forth in code

Posted: Mon Oct 19, 2009 12:50 pm
by DSP_Programmer
Thanks for this,

by default I don't use any toolbar. Is there something I can assign a keyboard shortcut for moving forward?

And while we are at this topic. There is a feature request for this mouse gestures: http://sourceforge.net/tracker/?func=de ... _id=202033

Re: Moving back and forth in code

Posted: Wed Oct 21, 2009 11:21 am
by DSP_Programmer
I found the solution myself:

For "Forward", the keyboard shortcut can be set under "Settings"->"Keyboard shortcuts"->"Search"->"Navigate Forward".

For "Backward", the keyboard shortcut can be set under "Settings"->"Keyboard shortcuts"->"Search"->"Navigate Backward".

Re: Moving back and forth in code

Posted: Wed Oct 21, 2009 11:38 am
by eranif
DSP_Programmer wrote:I found the solution myself:

For "Forward", the keyboard shortcut can be set under "Settings"->"Keyboard shortcuts"->"Search"->"Navigate Forward".

For "Backward", the keyboard shortcut can be set under "Settings"->"Keyboard shortcuts"->"Search"->"Navigate Backward".
Ah! I forgot I added them there as well :)

Thanks for reminding me!
Eran

Re: Moving back and forth in code

Posted: Wed Oct 21, 2009 11:41 am
by DSP_Programmer
Now that we found out this, there is only this mouse gesture issue left for navigating forward and backward ;-)

Re: Moving back and forth in code

Posted: Sun Oct 25, 2009 5:37 pm
by DSP_Programmer
Don't need mouse gestures any longer. I now use a generic windows tool to map mouse gestures to keyboard shortcuts -> with this I can use mouse gestures for all Codelite features.