FocusFileOnSidebar icon indicating copy to clipboard operation
FocusFileOnSidebar copied to clipboard

Autoexec on tab switch?

Open phackwer opened this issue 10 years ago • 3 comments

Wouldn't it be better to have the show file command being executed on the tab editor switch? So, when I change to another opened file, automatically it shows the current file position? Sometimes we have a lot of files with similar names on different folders, and the auto show file on folders sidebar quickly allow us to identify the file we are editing

Ex: src/CoreBundle/Resources/views/entity/form.html.twig src/CoreBundle/Resources/views/user/form.html.twig

Eclipse has an option on the project view to enable/disable this behaviour, and is a very handy feature.

phackwer avatar Jan 05 '15 17:01 phackwer

That seems a really interesting feature, I'll leave this issue opened and pick it after fixing the reported bugs, okay?

Thanks for taking the time to give feedback! :snowboarder:

miguelgraz avatar Mar 06 '15 23:03 miguelgraz

I found SyncedSideBar, another plugin, that does the work.

https://github.com/sobstel/SyncedSideBar

phackwer avatar Nov 17 '15 06:11 phackwer

@phackwer awesome! @miguelgraz it would be great if your plugin would navigate the tree from its current position:

  1. Hit cmd+k,cmd+f and navigate using the arrow keys in "folder A"
  2. Change tab, the tree changed active file (auto reveal-in-sidebar), now inside "folder B"
  3. Hit cmd+k,cmd+f again, now when using arrow keys, we're back inside the old selection inside "folder A"

Frexuz avatar Jan 30 '17 13:01 Frexuz