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

[Feature Request] Add ability to associate a shortcut to a bookmark #292

Closed
blikblum opened this issue Nov 27, 2020 · 2 comments
Closed
Labels

Comments

@blikblum
Copy link

This is an specialization of #153

Each bookmark could be associated with a shortcut.

When the shortcut is triggered, the bookmarked folder would be opened in the current tab

@derceg
Copy link
Owner

derceg commented Sep 5, 2024

I've been considering this sort of functionality recently and what I think might be better would be to allow shortcuts to invoke custom actions, using the plugins API. So, rather than adding a shortcut to a bookmark, you could add a shortcut that invokes an action like:

tabs.create({ location = 'c:\\' })

The main advantage would be that shortcuts would have much greater flexibility. You could, for example, have a shortcut that opens three different tabs:

tabs.create({ location = 'c:\\folder1' }); tabs.create({ location = 'c:\\folder2' }); tabs.create({ location = 'c:\\folder3' });

You could then also close tabs or move tabs or take other actions available through the plugins API.

That would potentially have a bit more of a learning curve, but would be a much more powerful system.

It could also be coupled with constraints on when a shortcut is available (similar to the "when" clause available in Visual Studio Code). For example, you could have a shortcut that's available only when the listview has focus, or only when the current tab is in a particular folder. That would also add a lot of flexibility to how shortcuts are handled.

@derceg
Copy link
Owner

derceg commented Sep 6, 2024

This work is now tracked in #476.

@derceg derceg closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants