How to Give Any Menu Command a Keyboard Shortcut on a Mac
You use a command ten times a day and it has no keyboard shortcut. Or it has one that clashes with another app, or one your fingers never remember. macOS lets you add shortcuts to menu commands, with a few catches; and in a file manager, many useful commands live only in the right-click menu, where no shortcut can reach them.
The short answer: for any app, use System Settings › Keyboard › Keyboard Shortcuts… › App Shortcuts and type the menu command's exact name. In Folia Files 1.4, open Settings › Shortcuts › Menu Shortcuts, click the shortcut next to a command and press the keys you want; the commands of the right-click menu are now in the menu bar too, so they can have one.
For any app: macOS's App Shortcuts
- Open System Settings and click Keyboard.
- Click Keyboard Shortcuts…, then App Shortcuts in the list on the left.
- Click the add button (+).
- Choose the application, type the Menu title exactly as it appears in the menu, then click the Keyboard Shortcut field and press your keys.
- Click Done, then quit and reopen the app if the shortcut doesn't show in its menu.
It works in most apps, with its limits:
- The title must match exactly, down to the ellipsis (…) of commands that open a window. Use the app in another language, and you need another entry.
- A title that changes with what you select (the "Copy 3 Items" kind) won't match.
- Commands that exist only in a right-click menu can't be reached: App Shortcuts work on the menu bar.
- Nothing warns you when the shortcut is already taken by another command of the app.
In Folia Files: every command, in one list
- Choose Folia Files › Settings… (⌘,), then Shortcuts.
- Scroll to Menu Shortcuts. Every command of the menu bar is there, grouped by menu; unfold a menu to see its commands.
- To find one, type part of its name in the Command or keys field. To find what a shortcut does, click the keyboard button next to the field and press the keys.
- Click the shortcut next to a command (it says Type the keys…), then press the new keys. ⎋ cancels.
The menus show your shortcut at once, and Help › Shortcuts and Gestures… follows. Next to each changed command, a button puts its original shortcut back (or removes one it didn't have), and Reset All… puts every command back as it was.
The rules Folia applies for you
- A shortcut needs ⌘, ⌥ or ⌃, except F1 to F19, which can work on their own: a plain letter would take the typing away from text fields.
- The padlocked ones are the whole Mac's (⌘C, ⌘V, ⌘Z, ⌘Q…): they don't change.
- A shortcut already in use is refused with its owner's name: Already taken by “Show Hidden Files” (View). The old shortcut is kept. Take it off the other command first, then give it to the new one.
- Some keys are kept for their own use: ⌃⌘1 to 9 open your scenes, ⌃⌥1 to 9 your custom commands. And a menu shortcut can't also be one of the global shortcuts set on the same page (show or hide Folia, the clipboard history…).
Keys are kept as you typed them on your keyboard: on a French or German layout, the shortcut you press is the shortcut you get.
The right-click commands, now in the menu bar
Until now, many commands of Folia's right-click menu had no place in the menu bar. Since version 1.4 they do, without a shortcut of their own, waiting for yours:
- File: Open in New Tab, Note…, Show in Finder, Hide, Extract To…, Compress (with each format), Make Symbolic Link, Folder Background… and the new Tags menu.
- File › More Actions: opening a terminal in the folder, the picture and video actions (resize, convert, rotate…), Folder Tree as Text, Analyze Disk Space and more.
- Edit › Copy Path As: with
~, escaped for the Terminal, as a file URL, the name alone or the parent folder.
They act on what is selected in the active pane, like the right-click menu does. A few lists that change with what you select stay in the right-click menu: the apps of Open With (File › Open With…, ⇧⌘E, finds one by typing its name), the folders of Copy To and Move To (F5 and F6 copy and move to the other pane), and the Services.
Tags from the keyboard
The new File › Tags menu lists the Finder's seven colors in the Finder's order, from red to gray, then your other tags, then Remove All Tags. The colors come with shortcuts:
- ⌃⇧1 to ⌃⇧7: red, orange, yellow, green, blue, purple, gray.
- ⌃⇧0: Remove All Tags.
Pressing a color's shortcut tags the selected files; pressing it again when they all have that tag removes it. Each change can be undone with ⌘Z. Your own tags have no shortcut at first: give them one in Menu Shortcuts, where they're listed with the others. On a keyboard where the number keys type other characters, the menu shows the key's own character (on a French keyboard, ⌃⇧& for red): it's the same key.
A few ideas
- Give Show in Finder a shortcut if you still hand a folder over to the Finder now and then.
- Copy a path for the Terminal in one keystroke with Edit › Copy Path As › Path for Terminal (Escaped).
- Open in New Tab with a shortcut, when you keep opening folders next to the one you're in.
The right-click menu itself can be rearranged too: see How to Customize the Right-Click Menu on a Mac. And for the shortcuts Folia has out of the box for copying, moving and renaming, read Keyboard Shortcuts to Copy, Move and Rename Files on a Mac. Everything else you can make your own is on the Customization page.
