Go back to last file

General questions regarding the usage of CodeLite
yvesdm3000
CodeLite Curious
Posts: 7
Joined: Thu Sep 10, 2015 3:39 pm
Genuine User: Yes
IDE Question: C++
Contact:

Go back to last file

Post by yvesdm3000 » Fri Sep 11, 2015 1:22 pm

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

User avatar
eranif
CodeLite Plugin
Posts: 5934
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Go back to last file

Post by eranif » Fri Sep 11, 2015 1:23 pm

Use Ctrl+. and Ctrl+/ to move back and forward between different locations

Eran
Make sure you have read the HOW TO POST thread

yvesdm3000
CodeLite Curious
Posts: 7
Joined: Thu Sep 10, 2015 3:39 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Go back to last file

Post by yvesdm3000 » Fri Sep 11, 2015 3:06 pm

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

yvesdm3000
CodeLite Curious
Posts: 7
Joined: Thu Sep 10, 2015 3:39 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Go back to last file

Post by yvesdm3000 » Fri Sep 11, 2015 4:34 pm

I guess NavMgr is supposed to handle this. I'll figure it out on my side why it doesn't work.

-Yves

yvesdm3000
CodeLite Curious
Posts: 7
Joined: Thu Sep 10, 2015 3:39 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Go back to last file

Post by yvesdm3000 » Sat Sep 12, 2015 8:16 pm

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

User avatar
eranif
CodeLite Plugin
Posts: 5934
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Go back to last file

Post by eranif » Sat Sep 12, 2015 8:38 pm

can you send this as a pull requset?

Thanks,
Eran
Make sure you have read the HOW TO POST thread

Post Reply