-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New URL Bar Commands #10603
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
base: dev
Are you sure you want to change the base?
New URL Bar Commands #10603
Conversation
I'll convert this into a draft since I see not all of them are done. Please ping me or undraft it once its ready for review, thanks! |
Is the warning for deleting the current workspace still present? I would not want someone to be typing something, have that prioritized then have there main workspace deleted with no hope |
I've implemented this with the |
Awesome! (Sorry for not looking at the pr) |
To be honest, I dont think deleting or creating spaces is something that should be considered "quick action"... |
I’ve implemented them because they’re useful for my personal workflow, but it’s true that they’re a bit niche. Obviously the final decision is up to you, but I propose that they’re disabled by default, and can be enabled with an advanced preference flag. This keeps things simple but makes it available for those who need it. I’d love to hear thoughts on this |
This file might be of help to you: https://github.com/BibekBhusal0/zen-custom-js/blob/main/command-palette/all-commands.js |
This is great! Thanks for sharing 😀 |
I think it could also be useful to have commands for working with containers. My suggestions would be:
|
I also wouldn't like having |
@mr-cheffy what do you think about my previously mentioned suggestion that these extra commands are disabled by default, but can be enabled with an advanced preference flag for power users? |
I see the "command palette" feature as a way to make less frequently used commands more accessible - especially those with complicated keyboard shortcuts or no shortcuts at all. That’s why I was focusing on these specific commands. But I understand if this approach doesn’t align with your goal for the feature. This is your project, so I'll go with whatever you choose. |
These are the commands I recommend moving to advanced preferences:
Do you have an upper limit in mind to the number of commands that are enabled by default? |
I found myself looking for a "Bookmark current tab" action while using the new URL bar, that'd be sweet! |
I agree @papa-Leo, the pref should be named
These however can stay as they are more common actions |
commands. Removed 'Split Selected Tabs' command, redundant
6dde6c7
to
b1a4046
Compare
@papa-Leo actions are heuristic, meaning they need to be fetched fast, and getting the values of preferences are very slow. I would rather this pref be considered a startup pref. Meaning it'll only be read once. e.g. var actions = [
{ normal action },
{ normal action },
...(advanced pref getter) ? [ advanced prefs ] : []
] |
Let me know when its ready for a review! |
This PR adds some new commands to the URL bar, as discussed in #10577:
Default commands
Advanced preference commands
💬 More suggestions are welcome, please put them in the comments.