Skip to content
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

Allow plugins to run commands on selected files through keybindings when the sidebar has focus #4133

Open
AmjadHD opened this issue May 4, 2021 · 3 comments

Comments

@AmjadHD
Copy link

AmjadHD commented May 4, 2021

Problem description

Sublime text supports triggering commands on sidebar's selected files (or folders), but only after opening the sidebar's context menu.

Preferred solution

Allow plugins to run commands on selected files directly through keybindings when the sidebar has focus, instead of through the context menu.
One can delete, rename, move, ... through shortcuts, this will make interactions with the sidebar easier and not flow-breaking.

Alternatives

Allow triggering the sidebar's context menu through keyboard when it's focused.

Additional Information (optional)

There needs to be a sidebar_has_focus context, to be used in keybindings, and preferably a highlighted attribute for sidebar_container in themes.
related #867

@AmjadHD
Copy link
Author

AmjadHD commented Jan 7, 2022

preferably a highlighted attribute for sidebar_container in themes.

#3900

@timfjord
Copy link

I think there is another, more fundamental issue
Currently, bindings that expect paths arg to be passed(for example rename_path) don't work if they are triggered from the sidebar
So it is simply impossible to define a key binding to, say, rename a focus item in the sidebar

So even if we have a context, the command itself won't work

@AmjadHD
Copy link
Author

AmjadHD commented Aug 6, 2024

Allow triggering the sidebar's context menu through keyboard when it's focused.

Implemented in v4180.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants