-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Request: add to tag stack when using ALEGoToDefinition OR add a ALEGoBackFromDefinition #1236
Comments
You can use |
I've been using With A |
@chaucerbao Yup. That's actually why i mentioned this issue. @w0rp Is it possible for ALEGoToDefinition to increment the tag stack so we can use C-t to jump back? |
Okay, what is a tag stack, and how do I increment it? |
I'm not an expert on vim so you may want to get a second opinion before implementing this feature. Maybe this isn't a good idea for some reason we don't know about, or maybe there is a nice solution we don't know about. |
On second thought, I am considering that better possible solution would be to have the existing ALEGoToDefinition, add a new ALEGoBackFromDefinition (or some other name), and have some optional way to seamlessly integrate Ale with the C-t and C-] shortcuts (by having an option for the a ALE commands to manipulate the tag stack). This way we don't force any unexpected behaviour upon the tags system, while giving vim users the option for convenience. I would still definitely need some extra opinions on the above ideas. I am not 100% confident that either of the above options are the best solution |
What would this new command do that Ctrl+O doesn't do already? |
As @chaucerbao said, C-o is not the same as C-t. vim help menus will tell you more about them I was thinking that ale would use its own internal stack that has the information required for ALEGoBackFromDefinition to work. |
I think the right thing to do is to update the tag stack, and add an option for disabling that behaviour. That will probably make everyone happy. |
Vim shortcuts pair
<C-]> and <C-t>
nicely. With ALEGoToDefinition, there isn't a nice equivalent jump back command (e.g.<C-t>
ALEGoBackFromDefinition or<C-t>
) which would be nice to have.The text was updated successfully, but these errors were encountered: