Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide forward/backward navigation #690

Open
chansey97 opened this issue Aug 26, 2016 · 8 comments
Open

Provide forward/backward navigation #690

chansey97 opened this issue Aug 26, 2016 · 8 comments
Assignees

Comments

@chansey97
Copy link

chansey97 commented Aug 26, 2016

In VisualStudio/IntelliJ IDEA/Eclipse, we have navigation buttons in toolbar, it's very convenience when browsing code. (Navigate Backward/Navigate Forward)
I think it is necessary to add this feature.
operating system: windows7
IDE version: 1.30
Thanks.

@pkulchenko
Copy link
Owner

Do you have an screenshot/description of this feature?

@pkulchenko pkulchenko self-assigned this Aug 26, 2016
@chansey97
Copy link
Author

untitled
@pkulchenko I captured a screenshot. You can this two buttons to navigate code.

@pkulchenko
Copy link
Owner

So, that would jump between cursor locations you visited? I'm not familiar with this feature...

@chansey97
Copy link
Author

Yes, it's very convenience when browsing code.

@pkulchenko
Copy link
Owner

It's still unclear to me how you use this navigation. Could you provide a scenario?

@chansey97
Copy link
Author

This feature is important when you reading other people's code.
For example:
There are 3 modules(A B and C) in your project. .
The programm's main flow is "module A call module B, module B call module C".
When you reading this code, you may read the function in module A first, then read the function in module B and C. After fininsh reading the function in module C, you can press Navigate Backward to module A. (back to main flow again)

@halfnelson
Copy link
Contributor

Also good for navigation within the same file, I can right click on a function call and "Goto Definition", then read the definition of the function, then hit the back button to go back to the function call that I navigated from

@pkulchenko
Copy link
Owner

@halfnelson, I agree; in fact we've already discussed it in the past. The trouble is to figure out what to add to the queue and how to navigate it.

Go to Definition is covered: you can use Alt-Left to jump to a previous location. I should probably add a message to the status bar that you can jump back. This only works after couple of shortcuts and can probably be extended to cover more cases.

@pkulchenko pkulchenko changed the title There is no navigation buttons in toolbar. Provide forward/backward navigation Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants