-
Notifications
You must be signed in to change notification settings - Fork 38
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
Keyboard shortcuts (general) #451
Comments
In addition to having shortcuts: We'd probably want a way to show the keyboard shortcuts too. I'd suggest an entry in the top-level menu that shows a modal that has a table with the action and the shortcut, more or less similar to Nautilus. It doesn't have to be as fancy. When displaying it, we could use the |
Note: macOS generally uses a command key instead of a control key, so handling for macOS would probably need to be different from Linux and Windows. We also probably want to consider which of the commands from Nautilus overlap with the functionality of Windows and macOS also. (I'd imagine GNOME folks already thought of that and are using the common shortcuts that are also in Windows and macOS.) We could (and probably should) start small and expand the list of useful shortcuts. |
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: go into currently selected directory - `F2`: rename selected file - `ctrl + a`: select all files - `N`: create new directory - `L`: focus files breadcrumbs to manually edit it Alt + arrow left/right is already supported by cockpit files browser history. What is probably good for a discussion is if we want to override default browser behavior for `ctrl + l` which focuses the Address Bar to "focus files breadcrumbs to manually edit it" or use the keybind that I set (`L` aka `shift + l`).
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: go into currently selected directory - `F2`: rename selected file - `ctrl + a`: select all files - `N`: create new directory - `L`: focus files breadcrumbs to manually edit it Alt + arrow left/right is already supported by cockpit files browser history. What is probably good for a discussion is if we want to override default browser behavior for `ctrl + l` which focuses the Address Bar to "focus files breadcrumbs to manually edit it" or use the keybind that I set (`L` aka `shift + l`).
Our keyboard shortcut reference modal would look something like this: Each section would have a header. We'd use something like this HTML for the keyboard shortcuts, with kbd: <kbd class="shortcut"><kbd class="key">Ctrl</kbd> + <kbd class="key">A</kbd></kbd> ...which will probably need some special CSS to add a background color, border, and roundedness, to look like a key. |
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: go into currently selected directory - `F2`: rename selected file - `ctrl + a`: select all files - `N`: create new directory - `ctrl + L`: focus files breadcrumbs to manually edit it Alt + arrow left/right is already supported by cockpit files browser history. What is probably good for a discussion is if we want to override default browser behavior for `ctrl + l` which focuses the Address Bar to "focus files breadcrumbs to manually edit it" or use the keybind that I set (`L` aka `shift + l`).
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: go into currently selected directory - `F2`: rename selected file - `ctrl + a`: select all files - `N`: create new directory - `ctrl + L`: focus files breadcrumbs to manually edit it Alt + arrow left/right is already supported by cockpit files browser history. What is probably good for a discussion is if we want to override default browser behavior for `ctrl + l` which focuses the Address Bar to "focus files breadcrumbs to manually edit it" or use the keybind that I set (`L` aka `shift + l`).
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: go into currently selected directory - `F2`: rename selected file - `ctrl + a`: select all files - `N`: create new directory - `ctrl + L`: focus files breadcrumbs to manually edit it Alt + arrow left/right is already supported by cockpit files browser history. What is probably good for a discussion is if we want to override default browser behavior for `ctrl + l` which focuses the Address Bar to "focus files breadcrumbs to manually edit it" or use the keybind that I set (`L` aka `shift + l`).
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: go into currently selected directory - `F2`: rename selected file - `ctrl + a`: select all files - `N`: create new directory - `ctrl + L`: focus files breadcrumbs to manually edit it Alt + arrow left/right is already supported by cockpit files browser history. What is probably good for a discussion is if we want to override default browser behavior for `ctrl + l` which focuses the Address Bar to "focus files breadcrumbs to manually edit it" or use the keybind that I set (`L` aka `shift + l`).
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: go into currently selected directory - `F2`: rename selected file - `ctrl + a`: select all files - `N`: create new directory - `ctrl + L`: focus files breadcrumbs to manually edit it Alt + arrow left/right is already supported by cockpit files browser history. What is probably good for a discussion is if we want to override default browser behavior for `ctrl + l` which focuses the Address Bar to "focus files breadcrumbs to manually edit it" or use the keybind that I set (`L` aka `shift + l`).
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: activate selected item, enter directory - `Enter`: activate selected item, enter directory - `ctrl + shift + L`: focus files breadcrumbs to manually edit it - `F2`: rename selected file - `shift + N`: create new directory - `ctrl + c`: copy file/directory - `ctrl + v`: paste file/directory - `ctrl + a`: select all files Alt + arrow left/right is already supported by cockpit files browser history.
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: activate selected item, enter directory - `Enter`: activate selected item, enter directory - `ctrl + shift + L`: focus files breadcrumbs to manually edit it - `F2`: rename selected file - `shift + N`: create new directory - `ctrl + c`: copy file/directory - `ctrl + v`: paste file/directory - `ctrl + a`: select all files Alt + arrow left/right is already supported by cockpit files browser history.
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: activate selected item, enter directory - `Enter`: activate selected item, enter directory - `ctrl + shift + L`: focus files breadcrumbs to manually edit it - `F2`: rename selected file - `shift + N`: create new directory - `ctrl + c`: copy file/directory - `ctrl + v`: paste file/directory - `ctrl + a`: select all files Alt + arrow left/right is already supported by cockpit files browser history.
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: activate selected item, enter directory - `Enter`: activate selected item, enter directory - `ctrl + shift + L`: focus files breadcrumbs to manually edit it - `F2`: rename selected file - `shift + N`: create new directory - `ctrl + c`: copy file/directory - `ctrl + v`: paste file/directory - `ctrl + a`: select all files Alt + arrow left/right is already supported by cockpit files browser history.
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: activate selected item, enter directory - `Enter`: activate selected item, enter directory - `ctrl + shift + L`: focus files breadcrumbs to manually edit it - `F2`: rename selected file - `shift + N`: create new directory - `ctrl + c`: copy file/directory - `ctrl + v`: paste file/directory - `ctrl + a`: select all files Alt + arrow left/right is already supported by cockpit files browser history.
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: activate selected item, enter directory - `Enter`: activate selected item, enter directory - `ctrl + shift + L`: focus files breadcrumbs to manually edit it - `F2`: rename selected file - `shift + N`: create new directory - `ctrl + c`: copy file/directory - `ctrl + v`: paste file/directory - `ctrl + a`: select all files Alt + arrow left/right is already supported by cockpit files browser history.
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: activate selected item, enter directory - `Enter`: activate selected item, enter directory - `ctrl + shift + L`: focus files breadcrumbs to manually edit it - `F2`: rename selected file - `shift + N`: create new directory - `ctrl + c`: copy file/directory - `ctrl + v`: paste file/directory - `ctrl + a`: select all files Alt + arrow left/right is already supported by cockpit files browser history.
fixes: cockpit-project#451 For now this adds following keybindings: - `alt + arrow up`: go up one directory - `alt + arrow down`: activate selected item, enter directory - `Enter`: activate selected item, enter directory - `ctrl + shift + L`: focus files breadcrumbs to manually edit it - `F2`: rename selected file - `shift + N`: create new directory - `ctrl + c`: copy file/directory - `ctrl + v`: paste file/directory - `ctrl + a`: select all files Alt + arrow left/right is already supported by cockpit files browser history.
Congrats! It needs a follow-up for Apple OS support (macOS, iPhone, iPad) for proper support there: (I wrote some details with screenshots and provided some code at the bottom which can be used to solve the issue. It should be relatively straightforward to add. I can test on my ancient Mac, we can peek at a VM, and/or we can ask Matej or anyone else with a modern Mac to confirm it's fine.) |
In addition to an obvious keyboard shortcut for editing the bar, we should also have other shortcuts.
But we need to determine what they are, if we can use them, and so on.
To kick off the discussion, here's what Nautilus has:
I couldn't find it in KDE, but did find a list of some common ones in their docs @ https://docs.kde.org/stable5/en/khelpcenter/fundamentals/kbd.html#kbd-files (but it's not very detailed).
Dolphin itself (which is installable via Flathub, BTW) has a keyboard shortcut configuration dialog that has a ton of defaults.
The text was updated successfully, but these errors were encountered: