Does anyone know how I can set a keyboard shortcut to open a selected file in a particular application? For example, how can I have .html files set to open in a text editor by default, but set a keyboard shortcut to open one in Firefox if it’s selected?
I’m using the Nautilus file manager in GNOME 48 on Debian 13


If the file is already selected you can do this from the keyboard:
SHIFT+F10 -> h -> ARROW KEYS (to highlight Firefox) -> ENTER