Command-e, put the selected text on the find clipboard. Then command-e, command-g (find next) will search for the selected text without sacrificing the copy/paste clipboard. Also, the find clipboard is shared between apps, so you can command-e in Safari, then command-g in Xcode.
Ask HN: The most useful Mac keyboard shortcuts?
71–80 of 140 posts
Re: Ask HN: The most useful Mac keyboard shortcuts?
#72Spectacle ( https://github.com/eczarny/spectacle#keyboard-shortcuts ) will change your life with better/faster window management. And Karabiner Elements ( https://github.com/tekezo/Karabiner-Elements ) to remap keys to something more useful (who uses Caps Lock anymore?)
It looks like someone else is currently working on a Swift rewrite. https://github.com/rxhanson/Rectangle
Re: Ask HN: The most useful Mac keyboard shortcuts?
#73Probably the most important knowledge is to learn the Mac modifier key symbols, since they'll help you learn more shortcuts from the menu items you use.
⌃ Control ⇧ Shift ⌥ Option ⌘ Command
——— SCREENSHOTS ———
[⌃⇧⌘4] Copy screen selection to clipboard. In this mode:
- Press [space] to capture a single window.
- Hold [⌥] to toggle whether to include window shadow.
[⇧⌘5] Show extra options, including screen record (10.14+)
——— MISSION CONTROL ———
[⌘MissionControl] Show desktop
[⌘Tab] Switch between apps. In this mode:
- Press Tab to go highlight the next app.
- Press [⇧Tab] or [`] to highlight the previous app.
- Press [Q] to quit the highlighted app.
- Press [H] to un/hide the highlighted app.
[⌘`] Switch between windows of the current app
——— TEXT EDITING ———
[⌥Delete] Delete word
[⌥⇠]/[⌥⇢] Move cursor to next word
[⌥⇡]/[⌥⇣] Move cursor to next paragraph
[⌘⇠]/[⌘⇢] Move cursor to start/end of line
[⌘⇡]/[⌘⇣] Move cursor to start/end of text field
——— FINDER ———
[⌘Delete] Move to trash
[Enter] Rename selected file
[⌥⌘V] Move copied file here
- You can see this option if you open the Edit menu and hold down [⌥].
——— DRAGGING ———
- You can drag the "document proxy" icon in any titlebar. Make sure to hold the icon for a bit before dragging. (This delay is probably to prevent people who want to move the window from dragging the icon.)
- If you're dragging a file into a folder, press [Space] to immediately open the "spring-loaded" folder.
- In many apps, hold down [⌥] to duplicate instead of move.
- In Finder, dragging a file across filesystems will duplicate by default. Hold down [⌘] to move instead.
- You can [⌘Tab]/[⌘`] while you're dragging an item.
- To navigate a open/save dialog to a particular place, drag the folder or file into the edges of the dialog. Be careful not to drag it into the middle white area of the dialog, as in some cases it might move/copy the file.
- To open a Finder window at the same location as an open/save dialog, use [⌘R] (R for "reveal").
———
(Note: There are many more shortcuts in each category. These are just the ones that I find the most useful.)
Re: Ask HN: The most useful Mac keyboard shortcuts?
#74Lock screen
Re: Ask HN: The most useful Mac keyboard shortcuts?
#75Re: Ask HN: The most useful Mac keyboard shortcuts?
#76Earlier quoted context omitted.
If you have a touchbar remap it to esc. I swapped my MBP for an air but kept the remapping.
with Karabiner, you can make it so that a tap of caps lock emits an escape, while still being able to use it as a ctrl modifier when pressed in conjunction with other keys: https://pqrs.org/osx/karabiner/document.html#configuration-c...
Re: Ask HN: The most useful Mac keyboard shortcuts?
#77Earlier quoted context omitted.
I use Karabiner to map symbols to the home row with a Caps Lock modifier. It's really nice to use k for "(" and l for ")". I don't have to reach up two rows.
FWIW, I use the Double Use Shift for parantheses. Tap left Shift for (, tap right Shift for ), and shift works as usual for normal typing and shortcuts. Karabiner is really an essential tool for me, especially this shortcut.
Re: Ask HN: The most useful Mac keyboard shortcuts?
#78macOS: * command+O: open file * command+shift+3/4/5: screenshot tool (one of the best shortcut on macOS in my opinion) * command+alt+space: switch keyboard input source * "=", ">", " Apps: + Safari: command+shit+\ (show tab overview) + FileMerge: command+D to jump to next conflict + VSCode: control+shift+E: toggle focus + iTerm2: command+] to switch between panes + iTerm2: command+K: clear buffer + Dash: command+shif…
Re: Ask HN: The most useful Mac keyboard shortcuts?
#79Spectacle ( https://github.com/eczarny/spectacle#keyboard-shortcuts ) will change your life with better/faster window management. And Karabiner Elements ( https://github.com/tekezo/Karabiner-Elements ) to remap keys to something more useful (who uses Caps Lock anymore?)
Spectacle is great but abandoned. It hasn't been updated in years. Bug reports and PRs are piling up. It looks like someone else is currently working on a Swift rewrite. https://github.com/rxhanson/Rectangle
> Spectacle used it's own keyboard shortcut recorder, while Rectangle uses MASShortcut [1], a well maintained open source library for shortcut recording in macOS apps. This cuts down dramatically on the number of bugs that were only in Spectacle because of the custom shortcut recorder.