Gruntfuggly / activitusbar

A VSCode extension to save some real estate by recreating the activity bar buttons on the status bar
Other
116 stars 15 forks source link

Activitus bar doesn't recognize when switching to search #55

Open wjurkowlaniec opened 2 years ago

wjurkowlaniec commented 2 years ago

When I do "CTRL+SHIFT+F" the left panel switches to search view, but it's not being reflected by Activitus bar. image So common situation is when I want to go to file explorer, first click closes the side bar and the second opens it up up with proper view.

Making it a proper bug report.. Steps to reproduce:

  1. Open explorer
  2. press CTRL+SHIFT+F
  3. Click explorer icon Result:
    • left panel closes Expected result:
    • left panel is switched to explorer
gopeter commented 1 year ago

This is still a thing for me (pressing CMD + Shift + S)

Gruntfuggly commented 1 year ago

Have you modified the key bindings as per the README.md ?

The API doesn't expose any method to detect the view being changed, so the best that the extension can do is redefine the keybinding to select the view manually.

Sadly, there's no way to force activitusbar to stay in sync with the selected view.

You might want to try turning off activitusbar.toggleSidebar. That will force the panel to stay open on whichever view is selected, which is different to the activity bar (which toggles).

Gruntfuggly commented 1 year ago

@gopeter What should CMD+Shift+S do?

For me it does a file save?

wjurkowlaniec commented 1 year ago

@Gruntfuggly let's make a issue to vs code to add support for exposing api to sync opened panel!

gopeter commented 1 year ago

@gopeter What should CMD+Shift+S do?

For me it does a file save?

That's the shortcut for the search panel on Mac OS. But I just found your warning in the Readme file 🙈 Didn't seen that before. Sorry!

Gruntfuggly commented 1 year ago

@wjurkowlaniec I've upvoted it, but don't hold your breath. Even if it gets enough upvotes, I very much doubt they will implement it sadly.

@gopeter No problem, have you got it working now?

gopeter commented 1 year ago

Unfortunately not. Would it be possible that this extension expose own shortcuts to switch views? Then we could override the existing ones 🤔