You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use jump_prev in conjuction with the Ctags plugin.
Often, jump_prev acts like it the previous location was not recorded.
How does Sublimetext decide where it puts it's markers down when I navigate a file?
Expected behavior
Typical use case:
Start at some location in file.
Jump to definition1
Jump to definition2
jump_prev (brings me back to definition1)
jump_prev (brings me back to the original location)
Actual behavior
Often, but not always, jump_prev will jump back to the original location when I'm in definition2 like it didn't record the location of definition1 when I jumped to definition2.
Steps to reproduce
See Expected behavior
Environment
Operating system and version:
Mac OS 10.11.6
Sublime Text:
Build 3124 although this problem has been ongoing through multiple upgrades.
The text was updated successfully, but these errors were encountered:
It looks like the Default/history_list.py file contains logic that will add an entry to the jump history when using the show_definition command. I am guessing your third party plugin has it's own command that this built-in plugin doesn't look for. Perhaps the best solution would be for Ctags to be updated to import the built-in plugin and add it's jump history to the global variable used there, rather than have the Default package try to cater for every single third party action which affects the caret/selections?
@keith-hall, that is a good suggestion.
I modified the Ctags package to call get_jump_history_for_view(view).push_selection(view) just like history_list.py does.
Works great.
Thanks
As of build 4059, the jump functionality should automatically pick up selection changes in views.
As of build 4083 a number of edge cases were fixed. Additionally, since there are now two plugin hosts (Python 3.3 and 3.8), we have a command add_jump_record in case there is a specific situation in which the jump functionality is not recording a jump point. An example of this would be add a jump point for a hover popup action.
Summary
I use jump_prev in conjuction with the Ctags plugin.
Often, jump_prev acts like it the previous location was not recorded.
How does Sublimetext decide where it puts it's markers down when I navigate a file?
Expected behavior
Typical use case:
Actual behavior
Often, but not always, jump_prev will jump back to the original location when I'm in definition2 like it didn't record the location of definition1 when I jumped to definition2.
Steps to reproduce
See Expected behavior
Environment
The text was updated successfully, but these errors were encountered: