Page 1 of 1

Go back to last file

Posted: Fri Sep 11, 2015 1:22 pm
by yvesdm3000
Hello,

Is there a way to go back to the previous file (and preferably with the corresponding editing position). It is handy when you did a find, a "goto declaration", a "goto implementation" or a cscope lookup where you can quickly investigate something, and then go back to the previously opened file to continue coding.

I've grown to get used to that feature, esp from Apple's XCode and QTCreator and also similar to ctrl-T in VIM... I was assuming Ctrl-P did this in codelite but since that operation is part of the "search" category, I guess this only works when searching...

If it's not possible, would this be implementable using a plugin? It's essentially appending the file(name) that was opened in a list and just stepping back in the list (and maybe storing editing positions). The plugin obviously needs to be informed of a new file being loaded/focussed...

CodeLite 8.1, compiled using GCC 4.8, linked with clang 3.6 on CentOS5 (don't ask why...)

-Yves

Re: Go back to last file

Posted: Fri Sep 11, 2015 1:23 pm
by eranif
Use Ctrl+. and Ctrl+/ to move back and forward between different locations

Eran

Re: Go back to last file

Posted: Fri Sep 11, 2015 3:06 pm
by yvesdm3000
Hi Eran,

As for the default shortcuts, Ctrl+/ comments out a whole line and Ctrl+. doesn't seem to do anything ? Is there anything that need to be performed or focussed for this to work ?

-Yves

Re: Go back to last file

Posted: Fri Sep 11, 2015 4:34 pm
by yvesdm3000
I guess NavMgr is supposed to handle this. I'll figure it out on my side why it doesn't work.

-Yves

Re: Go back to last file

Posted: Sat Sep 12, 2015 8:16 pm
by yvesdm3000
I fixed the issue in my branch:

https://github.com/yvesdm3000/codelite

It might be a compiler issue (hence why you don't see the issue).

-Yves

Re: Go back to last file

Posted: Sat Sep 12, 2015 8:38 pm
by eranif
can you send this as a pull requset?

Thanks,
Eran