cockpit-project / cockpit-files

A Featureful File Browser for Cockpit (Modernized and tested version of https://github.com/45Drives/cockpit-navigator)
GNU Lesser General Public License v2.1
53 stars 26 forks source link

Keyboard shortcut for editing the current path #450

Open garrett opened 5 months ago

garrett commented 5 months ago

We probably want a few different keyboard shortcuts (aligning to what file managers do, like Nautilus and Dolphin), but having a specific one for editing the path would be useful.

I'd suggest control-shift-L, which is similar to file managers and browsers (which use control-L). As we're in a browser, we cannot override the control-L, so having shift in the mix makes some sense.

This would be useful for not just quickly editing the path, but also for copying and pasting the path too. (That is, the shortcut, followed by control-c or control-v).

garrett commented 5 months ago

I've opened an issue for general keyboard shortcuts to discuss what other ones we might want, as well as a modal to show them. https://github.com/cockpit-project/cockpit-files/issues/451

But this one is obvious, and while we just have this one, the modal can be implemented separately, hence this being a separate issue for now.