TheSpyder / SyncedSideBar

Sublime Text plugin to sync project sidebar (folder view) with currently active file.
341 stars 23 forks source link

Wrong keyboard focus? #39

Closed gregsadetsky closed 5 years ago

gregsadetsky commented 8 years ago

Hi,

Thank you for the great extension! It works well to sync the presently open file and the highlighted file in the sidebar.

However, when I press Ctrl-0 (to move the focus to the sidebar) and then use the up/down arrow keys, the selected file in the sidebar jumps around to a completely different file (that used to be open).

Is there a way for this plugin to reveal the current file in the sidebar and make it so that once the sidebar gets focus, the correct file is selected?

Thanks!

TheSpyder commented 8 years ago

Thanks!

I've seen this myself, and I suspect it's a sublime issue. I usually just switch tabs a few times until Sublime catches up. Try this:

  1. Uninstall the plugin
  2. Switch to a tab that would normally reproduce the issue
  3. right click the tab contents -> reveal in side bar
  4. focus sidebar and press up/down

If it still happens, I suggest logging a bug report in the sublime forum. If you can't get it to happen then I'm happy to investigate further :)

evandrocoan commented 8 years ago

Tried that, and looks like it is working fine:

issyncedsidebarenabled

TheSpyder commented 7 years ago

Ugh sorry I forgot to follow up on this issue. In your gif you're not using the "reveal in sidebar" context menu item, which is what the plugin activates when switching tabs.

I suspect this reveal action is causing a bug in sublime that impacts the focus sidebar ordering.

TheSpyder commented 5 years ago

I haven't seen this bug in a while, I'd forgotten it was still open here, I'm going to assume it was in fact a sublime bug that has now been fixed