What exactly do "Navigate forward a location" and "Navigate back a location" do?
The docs mention a "navigation history". What does that mean?
On Sat, 8 Sep 2007 14:56:19 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
What exactly do "Navigate forward a location" and "Navigate back a location" do?
You are in file A and click on "Go to Tag Definition". Then Geany switches to the file(if open) where the current tag is defined. If you now easily get back to your start point, you "Navigate back a location". This works also for symbol list items. This feature was added by a patch by Dave Moore and it is especially useful when exploring foreign code where you usually jump between functions and declarations.
The docs mention a "navigation history". What does that mean?
I tried to describe it a bit in the docs(SVN r1864, [1]). But I'm not sure whether it sounds good and is well explained. Maybe someone wants to improve it ;-).
[1] http://geany.uvena.de/manual/index.html
Regards, Enrico
On 9/9/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Sat, 8 Sep 2007 14:56:19 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
What exactly do "Navigate forward a location" and "Navigate back a location" do?
You are in file A and click on "Go to Tag Definition". Then Geany switches to the file(if open) where the current tag is defined. If you now easily get back to your start point, you "Navigate back a location". This works also for symbol list items. This feature was added by a patch by Dave Moore and it is especially useful when exploring foreign code where you usually jump between functions and declarations.
Excellent feature! Thanks for the explanation.
The docs mention a "navigation history". What does that mean?
I tried to describe it a bit in the docs(SVN r1864, [1]). But I'm not sure whether it sounds good and is well explained. Maybe someone wants to improve it ;-).
Good job. What you have there makes sense: the crux is that it is activated only when navigating using tags and also when using the symbol list tab with the mouse.
The only quirkiness I notice is:
1. When you change to a different tab, the initial position of the cursor in that document is recorded as one of the navigation points. This may possibly be a feature though.
2. When navigating forward and back, the items in the symbol list tab don't highlight to correspond where the cursor goes.
---John
On Sun, 9 Sep 2007 18:27:03 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 9/9/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Sat, 8 Sep 2007 14:56:19 -0400, "John Gabriele" jmg3000@gmail.com wrote:
Hi,
What exactly do "Navigate forward a location" and "Navigate back a location" do?
You are in file A and click on "Go to Tag Definition". Then Geany switches to the file(if open) where the current tag is defined. If you now easily get back to your start point, you "Navigate back a location". This works also for symbol list items. This feature was added by a patch by Dave Moore and it is especially useful when exploring foreign code where you usually jump between functions and declarations.
Excellent feature! Thanks for the explanation.
The docs mention a "navigation history". What does that mean?
I tried to describe it a bit in the docs(SVN r1864, [1]). But I'm not sure whether it sounds good and is well explained. Maybe someone wants to improve it ;-).
Good job. What you have there makes sense: the crux is that it is activated only when navigating using tags and also when using the symbol list tab with the mouse.
Well, it is work in progress. There will be probably more actions which are stored in the history.
The only quirkiness I notice is:
- When you change to a different tab, the initial position of the
cursor in that document is recorded as one of the navigation points. This may possibly be a feature though.
In doubt, it is feature ;-). To be serious: I'm not sure what you mean. You get an history item when switching between file tabs?
- When navigating forward and back, the items in the symbol list tab
don't highlight to correspond where the cursor goes.
Yes. This was requested some time ago. But until now, nobody implemented it. IMO, it is not that necessary. It's more or less only eye-candy but (probably) requires several changes in the code.
Regards, Enrico
On 9/10/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Sun, 9 Sep 2007 18:27:03 -0400, "John Gabriele" jmg3000@gmail.com wrote:
The only quirkiness I notice is:
- When you change to a different tab, the initial position of the
cursor in that document is recorded as one of the navigation points. This may possibly be a feature though.
In doubt, it is feature ;-). To be serious: I'm not sure what you mean. You get an history item when switching between file tabs?
No. Sorry, I was unclear. When you switch to a different document tab, and then click an item in the symbol list tab, the initial cursor location in that document tab (before being navigated to the symbol you clicked on) seems to go into the history list (right before the position of the symbol you just navigated to).
---John
On Mon, 10 Sep 2007 14:25:53 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 9/10/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Sun, 9 Sep 2007 18:27:03 -0400, "John Gabriele" jmg3000@gmail.com wrote:
The only quirkiness I notice is:
- When you change to a different tab, the initial position of the
cursor in that document is recorded as one of the navigation points. This may possibly be a feature though.
In doubt, it is feature ;-). To be serious: I'm not sure what you mean. You get an history item when switching between file tabs?
No. Sorry, I was unclear. When you switch to a different document tab, and then click an item in the symbol list tab, the initial cursor location in that document tab (before being navigated to the symbol you clicked on) seems to go into the history list (right before the position of the symbol you just navigated to).
This is indeed a feature. The first version of the code was without it and I added it. I think it is more intuitive in the current way. At least I was quite confused by the previous behaviour.
Regards, Enrico