24 ms·
Mac keyboard shortcuts
- ramblerman 6y agoI dislike the way mac makes almost all shortcuts start with the apple key. Granted windows has a few, they are mostly OS specific, like windows-e to open explorer. on OSX even something as standard as ctrl-c / ctrl-v uses the cmd key. I have much less difficulty switching between windows and ubuntu than to mac when it comes to shortcuts.
- lewisflude 6y agoI feel quite the opposite! The fact that so many shortcuts involve the CMD key makes them easier to remember and use. I can understand the frustration moving between systems, but I think whichever one feels "right" is largely due to where you spend most of your time.
- gempir 6y agoAlso most Linux/Windows shortcuts feel way more natural than on macOS For a new tab in chrome Ctlr + T is easily done on Linux/Windows. On macOS for Cmd + T you need to weirdly bend your thumb under your hand while also hitting T somehow. Or you need to move your entire hand 2 columns of keyboard layout to the right to be able to hit cmd with your pinky.
- diegof79 6y agoI think that “feels natural” is not the right adjective to describe that it breaks your habits. With Apple keyboards the Cmd key is easy to access, I only had that problem using Windows keyboards. The Win key is not used much so some manufacturers make it smaller. I use Macs since 2007 and it “feels natural” to me, but this is because I’m used to Apple keyboards. For me the Ctrl key feels far away, and hitting Cmd plus key comes as the first reflex.
- projektfu 6y agoMy favorite “feels natural” thing on Apple keyboards was putting raised dots on D and K, on the Keyboard II and Extended Keyboard II. This goes under the middle finger, just like on the numeric keypad. Eventually they relented and put the dots under F and J like the rest of the PCs.
- macintux 6y agoApple also, along with Sun, used to put the control key in the correct location. They finally caved and put caps lock there. PCs have a lot of crimes to answer for.
- projektfu 6y agoThe Apple IIplus Keyboard looked a lot like the ADM3a keyboard on the left side. Also in the placement of symbols.
- cesarb 6y agoPutting the Caps Lock key above the Shift key came from typewriters, where it was a "Shift Lock" key (it physically locked the Shift key below it in the pressed position). If you have to blame something, blame typewriters.
- kps 6y agoJef Raskin's 1994 article Intuitive equals familiar remains worth reading.
- Hackbraten 6y agoSpy from another planet with no opposable thumbs detected.
- fabianmg 6y agoIn this forum you're going to get very very downvoted with anything that goes against Apple. Let's see. Unix - Ctrl + c Linux - Ctrl + c Win - Ctrl + c Mac - Option + c Clearly the standard and natural way is the Apple way of doing things...
- sbuk 6y agoGot nothing to do with it. Computing wasn't invented in 1990. Ctrl-c/v is a essentially a kludge introduced into Windows because the IBM Model M keyboard and similar didn't have a Meta key. It wasn't until Windows 3.1 that we see Ctrl-C and Ctrl-V being a 'thing'. Before then it was all about IBMs CUA. Apple had CMD-C/V/X on the Lisa 9 years before. I'm not sure what Xerox did on the Alto or if it even used keyboard shortcuts, but they did refer to the operation as Copy/Paste (coined by Larry Tesla who went on to work at Apple).
- bobthedino 6y agoBut on Unix and Linux pressing Ctrl-C in a terminal will send SIGINT (unless special measures are taken by your terminal emulator). I think this another benefit of the Mac using Command-C for copy: when the UNIX-based Mac OS X was introduced you could copy from termainl windows without accidentally stopping the running program!
- kps 6y ago> Unix - Ctrl + c Which Unix would that be? The closest thing to a common Unix desktop environment, the Common Desktop Environment, didn't steal Control because they had enough sense to know that people needed it to type control characters. > Linux - Ctrl + c The Linux desktop crowd has always been obsessed with cloning Windows.
- danaris 6y agoOption-c types a ç character; the Mac doesn't (by default) use Option alone as a shortcut modifier key. You're thinking of Command.
- pseudalopex 6y agoKeyboards have modifier keys on both sides because you would have to stretch or move your fingers out of position to type most combinations with one hand. The Command keys on Mac keyboards are wider and closer to the center than the Alt or Windows keys on PC keyboards.
- harshitaneja 6y agoI felt the same when I initially shifted to macOS but even though I don't like a lot about macOS, this has grown on me. Cmd key is more centrally located on the keyboard and requires less flex in your hand to reach.
- spanhandler 6y agoI was a late switcher, only after 20ish years of Windows, Linux, and a little BeOS. I now wish everyone else would just copy apple’s layout exactly for their default English keyboard & system shortcuts. It’s way, way better. Let dwm users and such remap if they like, of course, but that should be the default. It’s so good it’s fair, so long as no one else has copied it (why not!?) to call it a feature, and one providing significant “stickiness” for their platform (ditto Preview—sometimes, it’s the little things that matter, if they’re done exceptionally well)
- jbc1 6y agoCmd T is super comfortable. What do you mean somehow? The T is right there next to F, the default resting area for your index finger. Ctrl is the uncomfortable key. Requires bringing the pinky in to play.
- robertoandred 6y agoWhat? The Command key is instantly and reliably accessible with your thumb. The Control key is what's super awkward.
- swebs 6y agoI actually prefer the Mac way since I often find myself accidentally killing terminal programs when trying to copy something. The fact that Ctrl-C is context dependent makes it a big pain usability wise.
- simion314 6y agoMaybe you could remap the keys and swap Cmd and Ctrl, I remap the keys around on my Linux machine to have them more ergonomically pressed, for example I don't use Alt as much so I make left Alt a Ctrl btn, I never use the Meta btn so I make that one an Alt btn.
- flohofwoe 6y agoThat's entirely subjective though, after I worked a while on Mac, copy/pasting via Ctrl feels weird for a few minutes (and vice versa). macOS has a handy setting though where you can reassign the modifier keys which helps to ease the pain when switching between platforms often: System Preferences => Keyboard, on the Keyboard tab click the "Modifier Keys..." button in the bottom right corner.
- sukilot 6y agoThat doesn't really help because it just swaps the keys; it doesn't remap the shortcuts, so most shortcuts are still wrong which ruins flow.
- bobthedino 6y agoHard to see Apple changing this, since the Mac has been using the Command key for shortcuts since 1984. You could even argue that the "standard" you mention of using the Control key actually came along after the Mac!
- fabianmg 6y agoI seriously doubt it... https://unicheck.com/blog/who-invented-copy-and-paste https://unicheck.com/blog/who-invented-copy-and-paste "The person most widely credited with Copy and Paste, Larry Tesler, did work for Apple starting in 1980. However, he created the command while working for Xerox Palo Alto Research Center at some point between 1973-1976 " So, the Ctrl + c was BEFORE the Apple way.
- pseudalopex 6y agoThe Xerox Star had a Copy key.[1] IBM used Ctrl+Insert in the 1987 CUA standard.[2] [1] http://www.digibarn.com/friends/curbow/star/keyboard/index.html http://www.digibarn.com/friends/curbow/star/keyboard/index.h... [2] https://en.wikipedia.org/wiki/IBM_Common_User_Access https://en.wikipedia.org/wiki/IBM_Common_User_Access
- projektfu 6y ago‘In Gypsy, the user could select the source text, press the "Copy" function key, select the destination text or insertion point, and press the "Paste" function key.’ https://en.wikipedia.org/wiki/Gypsy_(software) https://en.wikipedia.org/wiki/Gypsy_(software) Before the Mac, all the computers I remember used function keys or their own various commands. Even after, IBM published “Common User Access” using ctrl-insert and shift-insert. Apple, as far as I know, introduced the familiar ZXCV shortcuts.
- bobthedino 6y agoFurther to other comments, looking here it seems that C, X, V for Copy, Cut, Paste were first used by Apple in the Lisa in 1983 and then later adopted by Microsoft for Windows: "The IBM Common User Access (CUA) standard also uses combinations of the Insert, Del, Shift and Control keys. Early versions of Windows used the IBM standard. Microsoft later also adopted the Apple key combinations with the introduction of Windows, using the control key as modifier key. For users migrating to Windows from MS-DOS this was a big change as MS-DOS users used the "copy" and "move" commands." https://en.wikipedia.org/wiki/Cut,_copy,_and_paste#Popularization https://en.wikipedia.org/wiki/Cut,_copy,_and_paste#Populariz...
- Stratoscope 6y agoI hear you on switching between Windows/Ubuntu vs. Mac. Especially with Cinnamon which I used at an Alphabet company, the shortcuts were pretty much the same as Windows. On the Mac, the preference for the Command key is stated explicitly in the human interface guidelines: • Prefer the Command key as the main modifier key in a keyboard shortcut. • Prefer the Shift key as a secondary modifier when a shortcut complements another shortcut. • Use the Option key as a modifier sparingly. • As much as possible, avoid using the Control key as a modifier. https://developer.apple.com/design/human-interface-guidelines/macos/user-interaction/keyboard/ https://developer.apple.com/design/human-interface-guideline... We may like or dislike this, but Apple's preference is pretty clear.
- kps 6y ago> … something as standard as ctrl-c / ctrl-v In the standard I rely on continually, ctrl-c and ctrl-v are control characters.
- robertoandred 6y agoCommand is much easier to use than Control. It's right there next to your thumb.
- s_dev 6y agohttps://www.cheatsheetapp.com/CheatSheet/ https://www.cheatsheetapp.com/CheatSheet/ Holding a button will bring up a list of available keyboard shortcuts.
- Austin_Conlon 6y agoHuman Interface Guidelines for the keyboard: https://developer.apple.com/design/human-interface-guidelines/macos/user-interaction/keyboard/ https://developer.apple.com/design/human-interface-guideline.... I wish more developers of cross-platform Mac apps (built with Electron, Mac Catalyst, etc) put these into practice. Any iOS developer whose apps will be on Macs with Apple Silicon should also read it.
- sixstringtheory 6y agoThis is my #1 gripe for cross platform apps. Just let me stay on home row and use existing muscle memory!
- kozhevnikov 6y agoThe main shortcut to remember is ⌘⇧? (or ⌘⇧/ on some layouts) which focuses Search under Help. It searches through all menu items and pressing down arrow will highlight it and show its shortcut. Pressing enter will execute it, but I prefer to cancel and use the direct shortcut to build up muscle memory.
- Kovah 6y agoI just tried this in Firefox and instead of focusing search in the menu bar, it took me to the Firefox help page on mozilla.org.
- xattt 6y agoThe benefit is that it’s basically a command line for any app.
- Hackbraten 6y agoNote for users with a German keyboard layout: Given that the ? character is only reachable by pressing Shift, the ⇧? combination won’t work for us. Which is why for German keyboards, Apple made ⇧⌘/ the Search shortcut. Which also makes no sense. Because surprise, we can’t use / either without pressing Shift at the same time. Oh, the burden of an ÄÖÜ-bearing language.
- roland35 6y agoMy favorite Mac shortcut is now option-command B, which I connected to an automator app which changes my external monitor brightness. It calls ddcctl which is a command line script which communicates over the displayport connection to control the monitor. This is a huge improvement over the annoying on screen monitor menu!
- vikbytes 6y agoThis sounds like something I'd find very useful, do you mind sharing a link on how to set this up or where I can find more information on this? Thanks!
- davea37 6y agoMonitorControl achieves the same thing but using the existing keyboard keys: https://github.com/MonitorControl/MonitorControl https://github.com/MonitorControl/MonitorControl (recent discussion on HN: https://news.ycombinator.com/item?id=23785291 https://news.ycombinator.com/item?id=23785291)
- roland35 6y agoI did this before learning about other tools! But you can download ddcctl from GitHub, then create an automator "quick action" with no input from any application. Then I created a flow of "Ask for text" (brightness), "run shell script" (/path/ddcctl -d 1 -b "$1/" Once you have that saved you can go to your Mac keyboard settings and add this new automator app as a new shortcut! Or, use an existing app :)
- gargs 6y agoTry Lunar https://lunar.fyi/ https://lunar.fyi/ Love it!
- TwistedWave 6y agoI use an USB light sensor to automatically adjust the display brightness with ddcctl. http://www.yoctopuce.com/EN/products/usb-environmental-sensors/yocto-light-v3 http://www.yoctopuce.com/EN/products/usb-environmental-senso...
- whywhywhywhy 6y agoIt's shocking to me how far ahead MacOS is in terms of keyboard shortcuts compared to all other operating systems. There absolutely has been some people there who deeply care and think long and hard about how experts use their systems even if the actual main company doesn't care so much about that segment anymore. Everything just makes sense logically and mnemonically like using shift to invert actions like cmd+z and cmd+shift+z rather than having ctrl+z and ctrl+y for undo/redo. Then add to this the ability to rebind any shortcuts in any app at an OS level. It's a little frustrating because I'm trying to move my computing away from Apple because I'm no longer convinced they care about Macs in the long term but just really wish either Microsoft would have the guts to throw a lot of their legacy out and fix all this stuff or that there were some way to actually achieve this level of coherence across the whole system on Linux.
- beefield 6y ago> It's shocking to me how far ahead MacOS is in terms of keyboard shortcuts compared to all other operating systems Yes, my all-time favourite is the shortcut fn-backspace for delete. How handy to not need to use a distinct delete button. Who would use that anyway? (sarcasm included)
- awakeasleep 6y agoFor the record, layout choice on Apple's 60% keyboards is a different topic than operating system support for keyboard navigation. Also, I wish you luck on the quest for the perfect 60% keyboard. I'm on the same hunt, although I can make myself happy most anywhere if I have https://karabiner-elements.pqrs.org https://karabiner-elements.pqrs.org installed
- saagarjha 6y ago⌃D
- antipaul 6y agoExactly. That's where those global so-called "readline" shortcuts come in ctrl - d for forward delete and then your fingers are close to all these other useful ones: ctrl - a, ctrl - b, ctrl -f, etc
- WrongThinkerNo5 6y agoIt is curious how something like this gets published with inaccuracies like that Command-L will create an alias in Finder, when it is actually Control-Command-A.
- pseudalopex 6y agoIt looks like that changed in Mojave.
- Austin_Conlon 6y agoI emailed Greg Joswiak about this (it’s cool how some of their leadership will respond to strangers’ emails: https://news.ycombinator.com/item?id=24055149 https://news.ycombinator.com/item?id=24055149) and he said the command had previously changed. It’ll be fixed soon on the site. Are there other inaccuracies?
- robin_reala 6y agoThe biggest keyboard ability that macOS gives me is built-in combining characters. alt + a bunch of different characters gives you the ability to write seamlessly in multiple languages (in my case English, French, German and Swedish) without having to memorise altgr character codes or pop up an input panel.
- steve_adams_86 6y agoThis is one of the features I miss most when using other systems. Text navigation and generation are incredibly easy on a Mac (comparatively, for me). It’s a joy to come back to.
- spanhandler 6y agoYou need a lot of those to write fluently in English, too, thanks to all the loan words and phrases we have. Particularly French, but quite a bit of German, too. Having some common currency symbols available is nice. Enough punctuation to write the occasional quotation or passage in French or (especially in the US) Spanish. Even m-dash and a variety of other useful English punctuation and symbols are easier to comfortably type on macOS than anywhere else. I’d buy Apple machines if I wrote for a living for that reason. Which is silly. You’d think every default English layout would be fairly good for writing English, but I’ve not seen one nearly as good as Apple’s. You can use AltGr or US International, but they’re both much worse for general-purpose English writing. Why other operating systems have’s stolen their alt/option-based typing layout is a mystery, to me. Nothing else I’ve seen comes close for composing English-language text. Certainly no other default layout. [EDIT] to wit (I don't know how HN will handle some of these, I'll remove it if it's a disaster...): • Bullets. — m-dashes. 90° Divers mots français, n'est pas difficile. « Avez-vous un résumé? » (sorry, my French is garbage). Would you like your change in $, ¢, £, or €, or ¥? ¿Donde esta el baño? (my Spanish is even worse than my French, again, sorry) ∑ π ≤ ≥ and so on. Straßburg And on and on. Most of these I remembered despite rarely using them because the layout is semi-intuitive, and the couple I had to hunt for made some sense once I found them and if I had to use them more than a couple times a year, I'd remember. No modifier + 1234 garbage, no common keys used as deadkeys screwing with normal typing, and none of it gets in the way of programming. Every other OS, please just copy this layout for your default English keyboard.
- freetonik 6y agoThe consistency of macOS keyboard shortcuts is one of the main reasons I have huge problems switching to Linux or Windows. Despite the non-trivial amount of tweaking and customization, I could never achieve the same level outside of macOS. Just to name a few: - CMD+left/right: start/end of line - CMD+up/down: start/end of file - CMD+Shift+arrows: corresponding selection - Alt+left/right: word movement - Alt+Shift+arrows: corresponding word selection - CMD+a: select all - CMD+1,2,3: switch between tabs in browsers/iterm/IDEs/editors (surprisingly and infuriatingly, this does not apply to native macOS tabs; e.g. in Finder Cmd+1/2/3 changes the view, but not tabs) All that + the fact that clipboard, undo/redo, app and windows switching are ALL done via CMD makes it truly a modern hyper button. And you still have Control for Emacs bindings, which also work in most Cocoa text fields. If you're interested, this [1] is one of the best attempts to bring macOS keybindings to Linux (in particular, Elementary OS). It's a set of settings for Autokey [2]. There is also Kinto [3], which solves one particular problem: copy-paste from terminal with consistent shortcuts. 1. https://github.com/roymckenzie/macos-autokey-phrases https://github.com/roymckenzie/macos-autokey-phrases 2. https://github.com/autokey/autokey https://github.com/autokey/autokey 3. https://github.com/rbreaves/kinto https://github.com/rbreaves/kinto UPD: edit formatting
- donarb 6y agoThe other thing that bugs me when using apps that don't use Mac widgets is single line text fields. If your cursor is at or near the end of the line, pressing the up arrow moves the cursor to the beginning of the line. Same with the down arrow when the cursor is at or near the beginning of the line. Any Mac app that doesn't do that is not using native text fields.
- eitland 6y ago> The consistency of macOS keyboard shortcuts is one of the main reasons I have huge problems switching to Linux or Windows. When I left Mac 8 years or so it was quite the opposite: - home and end depended on application, the only one that worked consistently was ctrl - e and ctrl - a but they didn't work with shift so select to end of line was hit and miss - one of the shortcuts that sometimes worked was cmd - left, unfortunately that was mapped to go-back-one-page in Safari. Kknd of annoying when you try to select a sentence in a form and end up losing all your carefully crafted edits. - fn button in the place where ctrl is supposed to be, but only on laptop and small keyboards, not on the full size one. Not remappable (I understand this is fixed now). I struggled with that machine for three years. After that I realized that Macs are perfect - for Mac people, not for Linux peasants like me.
- kokey 6y agoI was surprised to discover by accident that many of these also work on an iPad with the smart keyboard.
- deleted 6y ago[deleted]
- chrisBob 6y agoSome of my favorites are pretty far down the list: I was using Control-A and Control-K a lot on the command line to jump to the beginning of the line, and then erase the rest of the line and tried it once somewhere else and it worked! The other way to do this same sequence (Cmd-right Cmd-Shift-Left)doesn't work in the terminal, and would require me to take my hands off the home row to use the arrow keys (until recently [1] ) Option+arrow to jump by a word is also handy, but I almost never land exactly where I want relative to punctuation the first time. [1] I am currently using a Kinesis Freestyle Pro with arrows mapped to right-spacebar + [IJKL]. They are still working out some issues for me where it fails if I press Command before Fn (mapped to right space bar). If anyone has a split keyboard recommendation where this would currently work without the order dependency issues with the modifier keys please let me know!
- second--shift 6y ago> I was using Control-A and Control-K a lot on the command line to jump to the beginning of the line, and then erase the rest of the line and tried it once somewhere else and it worked! This is the behavior of emacs; I'm very happy as I spend most of my time in a terminal window that I can use c- shortcuts both in emacs and in the OS natively.
- jiripospisil 6y ago> Control-K: Delete the text between the insertion point and the end of the line or paragraph. There's also "Command+Delete" that deletes the text between the insertion point and the start of the line or paragraph.
- saagarjha 6y ago⌃K actually kills the text.
- chrisBob 6y agoA related Mac feature is that you can remap keys at the OS level so that the mapping works across any keyboard or app: https://developer.apple.com/library/archive/technotes/tn2450/_index.html https://developer.apple.com/library/archive/technotes/tn2450... I have Caps Lock remapped to Backspace, even when I don't have a programmable keyboard plugged in. I know Caps to Esc is also very common for Vim users, but I find I make typos a lot more often than I use Vim. Using launchd you can even do this before login so that it works in the login window.
- agustif 6y agoCheatsheet is helpful https://mediaatelier.com/CheatSheet/ https://mediaatelier.com/CheatSheet/ I customized the theme to dark once.
- yreg 6y agoI have this running, but almost never use it (it usually pops up while I'm holding cmd and e.g. reading the last few words on a website before I hit cmd+w). In what situations do you consciously decide to open cheatsheet and learn some new shortcuts related to the app?
- agustif 6y agoI don't know what to say, I almost never use it conciously. If I hang in doubt on cmd it pops. Not working on big sur right now though
- kyranjamie 6y agoDoes not mention: - CTRL + CMD + ALT + SHIFT + W = Generates 300MB WiFi diagnostics file (as of Catalina) - CTRL + CMD + ALT + SHIFT + . = Generates System debug file
- second--shift 6y agoI must say, the single feature that made me switch to macOS (or that made me comfortable with the switch) was the built-in emacs keybindings. I mapped Caps Lock to Control and can finally stick with sane killing & yanking text, as well as jumping around (front,end,back/fwd a char or word). Gnome/GNU/Linux provides a compatibility layer that isn't as good as macOS's emacs bindings.
- StringyBob 6y agoCaps lock mapped to escape for Touchbar laptop owners - still great for emacs!
- second--shift 6y agoThis one is great for Vim users, but we don't talk to them much ;)
- 3JPLW 6y agoI've gone further to support meta-keybindings for whole-word movement. Control-b goes back one character, option-b goes back a whole word. It's really easy to add and customize: http://www.hcs.harvard.edu/~jrus/Site/Cocoa%20Text%20System.html http://www.hcs.harvard.edu/~jrus/Site/Cocoa%20Text%20System....
- second--shift 6y agoUnless an app overloads the shortcut (looking at you Slack...) that seems to work by default for me: c-b and c-f behave as expected. M-b and M-f work sometimes too, but these two get intercepted for ∫ and ƒ respectively in Slack, Firefox, etc.
- 3JPLW 6y agoM-b and M-f work for me in slack with my custom defaultkeybinding.dict. It only requires the app to use OS-native text inputs.
- 6y ago
- adrianmsmith 6y agoOne item on that list I cannot understand: Ctrl-Command-Power does an immediate reboot. Loses any unsaved documents. Doesn't shut down cleanly so potentially damages the filesystem. No "are you sure?". That's great: they thought the feature of "damage your computer" was so useful they should make a keyboard shortcut for it. It's one key away from Alt-Command-Power which I use all the time to put the computer to sleep. So the feature is not only convenient, it's very "discoverable". I certainly discovered it yesterday. Windows laptops solve the problem by making you hold down the power button for 5 seconds, to prevent you from doing it accidentally. WTF Apple. That’s just insane.
- PascLeRasc 6y ago[deleted]
- dvtrn 6y agoThose should be illegal. Surely hyperbole for a few chuckles, right?
- the_af 6y agoIt takes a lot to type "sudo reboot" by mistake. Shortcut key combinations are something you can press by mistake, especially since there are so many of them and you can be absent-mindedly thinking of a different combination!
- dognotdog 6y agoI have never, in the past at least 15ish years of working daily on a mac, triggered this accidentally. But, I have needed to perform it a handful of times.
- neonblurb 6y agoMore than 23 years here. And 23 years ago I used it an awful lot more in the dark days of System 7 with no protected memory and cooperative multitasking.
- 6y ago
- MarcScott 6y agoPrior to me adopting Linux as my main OS, I used to love the keybindings on macOS. That many of the same bindings I used in Emacs, also worked in documents was amazing. That is except for Microsoft Office, which did not comply with the system binding. All too often I'd use Ctrl + a to go to the beginning of a line and start typing, and accidentally delete the entire content of the document.
- rimliu 6y agoI use ctrl+a, ctrl+e, ctrl+k all the time.
- FabHK 6y agoA few more: ctrl-W to delete a word, ctrl-U to delete a line, ctrl-y (yank) to paste the deleted thing back in.
- SanderSantema 6y agoI still accidentally try to use these on my linux machine, that’s one thing I really do miss. One consolation is that I can still use them in my shell :) Weirdly enough I never accidentally use these shortcuts while using vim. I’d guess my subconscious is somehow aware of the contexts in which I’d use these shortcuts and is able to differentiate between my browser, the commandline and vim but not between using a browser on a mac vs. a linux machine.
- saagarjha 6y agoI use nano exactly because I keep pressing ⌃E in vim ;)
- youngtaff 6y agoMy 'favourite' MacOS pain is Shift-Command- left/right arrow when renaming files in finder Instead of selecting the whole filename as in documents it switches tab After nearly a decade of using MacOS full time, it still catches me out every time
- chadlavi 6y agoshift-option-up/down does what you're talking about
- jnsie 6y agoI bought a MacBook Pro in 2012 and it has no symbol on the alt/option key or the control key. 8 years after coming from windows and I'm still confused when I see shortcuts with symbols. ⌥⌘v or ^⌘f The symbols are unintuitive and a ton of online and in-app resources use only symbols. It's weirdly inconsistent to me that some keys are labeled with symbols, others are not, and they are still commonly used in apple documentation and elsewhere.
- ptoomey3 6y agoFor me the option key was always the one that threw everything else off..since failure to recognize it made me doubt all the others :-). One "pneumonic" that helps for the option key is that it looks a bit like a "fork in the road" (i.e. "an option"). The ^ for ctrl goes back to linux, so "logical" for folks with that background. And, cmd is used so often I just got used to it.
- JadeNB 6y ago> One "pneumonic" that helps for the option key is that it looks a bit like a "fork in the road" (i.e. "an option"). Although I think that there's no official answer, there are other people who agree with your explanation: https://twitter.com/marcedwards/status/225601862756352001 https://twitter.com/marcedwards/status/225601862756352001 . (Also, I don't know if this was just an intentional joke, but you probably mean 'mnemonic', not 'pneumonic'.)
- Terretta 6y agoDoesn't it also look like a timeline, start pressing and hold one key down then also press a second key? The stories we tell ourselves to remember things.
- ben-schaaf 6y agoJust wait till you come across ⎋, ↖, ⇞ or ⌤!
- 6y ago
- SwiftyBug 6y agoThis page is terrible as a documentation/reference source. It's information is indexed by keyboard shortcut instead of the other way around, by functionality. Intead of: CMD + V: Paste stuff It should be: Paste stuff: CMD + V Description of what it means to "paste stuff"
- catacombs 6y agoYou're overthinking it. What more do you want from "paste stuff?"
- chb 6y agoCan't wait to read the n-gate summary for this post.
- albybisy 6y agothere is a key to "simulate" the left click of the mouse/touchpad (without 3rd app)? i have my left click touchpad broken and i have problem with long-press mouse actions like moving files etc...
- wtallis 6y agoThere's an "enable dragging" option in the Accessibility settings, which lets you double tap on an object to start a drag without needing to use the physical button. You can choose whether the drag ends when you pick up your finger, or if it continues until canceled with a tap. You can also set it to start a drag with a three finger gesture instead of a double tap with one finger.
- ashton314 6y agoMac keyboard shortcuts is one of a handful of features keeping me close to macOS instead of switching to Linux. I started using Emacs when I was around 6 or 7 years old. CTRL-[aeknpbfl] etc. are hard-wired into my muscle memory, and they all work everywhere on every app when editing text. All the other shortcuts use the Command key. This brilliant distinction made the transition between FreeBSD’s command line (what I grew up on) and the macOS GUI an easy one. I’ve lost count of the times I’ve had to use a Windows machine where I’ve hit `ctrl-a`, started typing, and lost my document. (Just an undo away, but still.) So frustrating. I recently discovered the KDE desktop. I thought, “oh, this is pretty and really customizable! I could switch to this.” And then I learned there was no easy way to use Emacs keybindings everywhere. (Gnome has an option to do this and it works pretty well.) If anyone knows of a way to get most of the core Emacs keybindings in KDE, please let me know.
- SeanLuke 6y agoIt would interest you to know that the emacs keybindings in MacOS came from NeXTSTEP. See Figure 4-9 on page 4-7 of http://www.nextcomputers.org/NeXTfiles/Docs/Software/OPENSTEP/802-2110.pdf http://www.nextcomputers.org/NeXTfiles/Docs/Software/OPENSTE...
- gerjomarty 6y agoOne shortcut that I actually miss from Windows is the one that effortlessly moves windows left and right between monitors/screens. I use Divvy to tile windows, but I really liked being able to flick a window very quickly over to another screen.
- DanielDe 6y agoI made an app called Window Flicker that may suit your needs! https://danielde.dev/window-flicker/ https://danielde.dev/window-flicker/ Would love to hear what you think
- armagon 6y agoTangential to the topic: is there somewhere I can buy keyboard stickers with the macOS shortcut symbols on them? I couldn't find them when I looked in the past, and it is frustrating looking at my external keyboard (or even many internal keyboards) and trying to figure out which key matches which funky symbol.
- chadlavi 6y agoit would be really cool to have a keyboard (a physical one) where each key had a tiny display on it, and the key's label changed to reflect what it will do based on the modifiers currently depressed
- occamschainsaw 6y agoI was really excited about this (super expensive) keyboard in the mid oughts. https://www.artlebedev.com/optimus/maximus/ https://www.artlebedev.com/optimus/maximus/
- crazygringo 6y agoTruly. The fact that menus use all these crazy arcane symbols for keys like Esc, Del, Tab, and so on, but they're not on the keyboard itself, has always baffled me. Cmd, Opt, and Ctrl all have symbols on the keyboard. For the rest of the keys, why don't menus just literally spell out "Esc", "Tab", "Del"?
- 1-more 6y agoOption and Control didn't even have these symbols until pretty recently, maybe 5ish years? Annoying.
- chadlavi 6y agoBy far the most important keyboard shortcut in my work life is "shift-esc", which marks all channels as read in Slack. Not a system-wide one, of course, but very useful.
- wallflower 6y agoSuch an exhaustive list... yet it omits one of my favorite timesaving shortcuts. In Terminal, option + click will move your terminal cursor to anywhere you want in the current line.
- fauigerzigerk 6y agoShift-Cmd-. shows hidden files in Finder. Also works in file selection dialogs.
- xhrpost 6y agoA bit of a rant, but could be worth getting some input. Coming from mostly a Windows background, it feels like Mac's despite all these shortcuts, still don't have "alt-tab" working properly. The equivalent on Mac is Command-tab, but it doesn't work when going from a desktop app (ie, not maximized) to a maximized window. I can go the other direction just fine, and between maximized windows, but choosing a max window from a desktop app just does nothing. Am I using it "wrong"? Should I only use maxed windows or only desktop un-maxed windows and not both at the same time? I've googled this multiple times and found little help.
- Swizec 6y agoAs a longtime mac user, max windows are for movies and video games. They create a new virtual desktop and are sort of not really windows.
- meristem 6y agoAnd behave in unpredictable ways.
- machello13 6y agoThey're predictable, but you do have to know the rules.
- meristem 6y agoFair statement.
- pazimzadeh 6y ago"Command" + "~" will switch between windows of the app currently in focus. Not the same behavior as Alt-Tab, but together with Command+Tab it works well. If you hold Command down after doing Command+Tab, you can also use "~" and "Tab" to select the app to the left or right in the list of recent apps.
- mindfulhack 6y agoThe existence of this thread, with no mention of the Touch Bar yet, but we're seeing keen enthusiasm over shortcuts with as much as 3 keyboard keys involved, demonstrates exactly how useless the gimmick of the Touch Bar is. It provides no snappiness in tactility or aurality, which is a key part of why keyboard shortcuts are so useful and memorable. My Touch Bar even froze up the other day, though that was almost the first time it's happened in my 3 years of using 3 generations of Touch Bar MBPs. Long live the keyboard, and I hope Apple phases out the Touch Bar soon.
- roland35 6y agoThe touch bar is an interesting concept, but I hardly use it as a new Mac user (got a MacBook pro for the first time ever this year), as cool as I thought it was at first. I wish it had a few features to improve the experience: - ability to lock an app. It would be nice to have zoom controls available like unmute when I don't have zoom window active - hard buttons, with led screens. This would make things like debugging easier where I need to hit the "step over" button repeatedly - easier customization without paid apps or scripting. I can only change a few defaults around
- spanhandler 6y agoI think the touchbar would have been vastly more useful as a companion app for iPhone and iPad. As implemented, I can't afford to become used to it even if I wanted to unless I plan to be not just on a Mac, but specifically on a MacBook Pro with no external keyboard most of the time.
- ProbablyRyaan 6y agoHaving no stand-alone esc key is brutal (I know newer models have one now).
- geerlingguy 6y agoHaving the esc key on my 2019 model is good. But I hate how the touch bar offers zero tactile feedback, and reacts to even the slightest brush from the edge of a finger. I've deleted all buttons except volume control and mute on mine, and I still end up inadvertently hitting mute sometimes when typing numbers and symbols.
- jetpackjoe 6y agoSeriousish question: Is there any linux distro (or option) to use Mac style shortcuts?
- kps 6y agoNot that I've found. You can mostly do it with KDE and a lot of shortcut setting, but there are a lot of unconfigurable programs hardcoded to use Windows shortcuts. Web browsing is a big one; Firefox used to let you do it be setting ui.key.accelKey, but it's been buggy since the Quantum transition.
- sgt 6y agoUsing most of these on a daily basis. It's great that Apple paid attention to this type of requirement from power users. One shortcut I didn't know about though: option-command-eject (my bluetooth Apple keyboard does have an eject button on it) allows me to put the Mac to sleep within 0.1 seconds. When logging off in the evenings I've always used the menu bar's -> Sleep, and then carefully not moving the mouse afterwards so that I inadvertently wake it up again.
- timemct 6y agoShout out to Cheat Sheet. Hold down Command for a few extra seconds and an overlay pops up showing you all the keyboard shortcuts for whatever app is in focus. https://www.cheatsheetapp.com/CheatSheet/ https://www.cheatsheetapp.com/CheatSheet/
- jeppesen-io 6y agoUntil you can move windows/apps with the keyboard like chromeos, windows and most linux wms, I'm going to be frusterated.
- jorge-fundido 6y agoKiller keyboard feature for me is ~/Library/KeyBindinds/DefaultKeyBinding.dict - all text controls honor that. Very nice way to get basic emacs shortcuts defined. I've yet to find something half as simple & effective as that in linux desktop land, probably because of the variety of gui toolkits that isn't present in osx.
- aasasd 6y ago> all text controls honor that Except Qt apps, of course.
- breatheoften 6y ago> Command-P: Print the current document Can we please remove this one ...
- donarb 6y agoWhy is that?
- breatheoften 6y ago1. Bringing up the print dialogue is a slow process so its annoying when you hit cmd-p on accident 2. Print operation is done very rarely and not frequently invoked in the middle of a keyboard-centric workflow -- how often would it not be more or less equivalent keyboard interruption to use the Print Menubar Action vs cmd-p? 3. It would be nice to steal the shortcut from all apps and remap it to something useful ...
- GnarfGnarf 6y agoThe thing I miss the most on macOS is the equivalent of Shift + Windows key ⊞ + right or left arrow, to move a window from one monitor to the other. This is useful for apps like Excel and MS Word, which can't be dragged if they're maximized. I have set up a PC and a MacBook to share a screen, keyboard and mouse (KVM switch). If I'm switched to the PC and I want to look at a window on the Mac, and the Mac's window was on the shared monitor previously, there is no way to shift the window to the built-in Retina screen without switching back to the Mac, which has its own set of problems (I can't reliably switch back to the PC, despite using a top-of-the-line Aten KVM). I have configured Shift-Command ⌘ + ← left arrow to move the window on the Mac, but it only works for apps with a Window option on the menu. Some of my favourite keystrokes: Finder: Command ⌘ + Shift + G: Explicitly paste path Right-click, Option ⌥ to "Copy as path" Command ⌘ + Shift + . (period): show hidden files Command ⌘ + ↑ (up arrow): Go up one level in the directories Terminal: Command ⌘ + K: clear screen Everywhere: F11: Hide all windows
- deepGem 6y agoTermial: ctrl + L also clears the screen
- GnarfGnarf 6y agoNo Ctrl + L does not clear the screen. It merely inserts enough blank lines (CR) until the stuff is moved out of sight. It's still there if you scroll up.
- tcoff91 6y agoYou should use an app like Spetacle or Rectangle to achieve this. I use spectacle personally. I can move apps from one monitor to another with command-control-option-arrow_key
- occamschainsaw 6y agoI set up shortcuts in magnet app[1]. Cmd+Ctrl+(left/right) moves the window to that half of the current scree, and Cmd+Ctrl+(up/down) moves it across monitors. [1]: https://apps.apple.com/us/app/magnet/id441258766?mt=12 https://apps.apple.com/us/app/magnet/id441258766?mt=12
- Exuma 6y agoI highly recommend everyone learn the readline keys. They apply everywhere, in chrome, messengers, etc. They're the most valuable hotkeys that I've learned other than learning vim. I set them as the Message Of The Day in my .zshrc (or .bashrc if you don't use zsh) until I memorized them. <c-f> is genric formatting for hotkeys, where c stands for control and you type "f" at same time. IMPORTANT: For these to be level extremely effective you MUST REMAP your caps lock key to a control key. System Prefs > Keyboard > Modifier Keys button at bottom right # MOTD function echo_color() { local color="$1" printf "${color}$2\033[0m\n" } echo_color "\033[0;90m" "c-f Move forward" echo_color "\033[0;90m" "c-b Move backward" echo_color "\033[0;90m" "c-p Move up" echo_color "\033[0;90m" "c-n Move down" echo_color "\033[0;90m" "c-a Jump to beginning of line" echo_color "\033[0;90m" "c-e Jump to end of line" echo_color "\033[0;90m" "c-d Delete forward" echo_color "\033[0;90m" "c-h Delete backward" echo_color "\033[0;90m" "c-k Delete forward to end of line" echo_color "\033[0;90m" "c-u Delete entire line" Imagine you want to go up 2 lines to edit a HN comment. You could move your right hand to arrow key, or you can simply press caps with your pinky and type "p" with your other pinky. So much faster! Now you can see why these are so effective, and are really my favorite. Note that as you start to use these you will be pleased to see they apply in a lot of applications. For example, type command+L in chrome to jump to the address bar and highlight it, now type "news" in the address bar. The autocomplete dropdown will pop up. Now type control+n (readline move down) and you can scroll through the list. I'm obsessed with optimizations and efficiency and the 2 things mentioned above are the absolute gems. Also, I highly recommend: https://medium.com/vunamhung/set-a-blazingly-fast-keyboard-repeat-rate-3d122ddac536 https://medium.com/vunamhung/set-a-blazingly-fast-keyboard-r... `0` is a little to fast for me so I prefer speed `1` and it's perfect.
- exabrial 6y agoI love osx but the world needs another company that makes great hardware and combines it with a Unix based operating system. I would love to see some competition for Apple.
- Razengan 6y agoOne of the best things I love about macOS is the sheer beautiful consistency, which although not perfect, is a breath of fresh air compared to Windows. App-level shortcuts almost always use the Command key, global shortcuts generally use Control, and Option/Shift are modifiers. On Windows sometimes it’s Control, sometimes Alt, and sometimes the same task has different shortcuts in different apps.
- johnnyfaehell 6y agoWhat? I think macs being more consistent is in your head. It suffers the exact same issue as Windows and Linux. The issue can't be solved since app developers choose which the shortcuts and not os developers.
- Razengan 6y ago> I think macs being more consistent is in your head. I've used both. > It suffers the exact same issue as Windows and Linux. The issue is worse on Windows. > The issue can't be solved since app developers choose which the shortcuts and not os developers. Wrong. macOS/AppKit/Cocoa define a lot of standard menu items and shortcuts and provide them to all native apps "for free". If you look at the shortcuts list for a random Windows app, some shortcuts will use Alt, some will use Control. On macOS, almost all shortcuts use Command, and Option/Control are only modifiers. Finally, on macOS, you can define custom shortcuts and edit existing shortcuts for any app, from the global Keyboard Preferences. And you can add your own menu items as well via Automator etc.
- michens 6y agoOne thing I love about macOS terminal is the distinction between Command-C and Control-C in the Terminal. One copies a text under cursor and the other sends a SIGINT. I absolutely hate using Control-Shift-C to copy a text in Linux terminal and Control-C anywhere else.
- Hackbraten 6y agoWhile I like that distinction too, I wonder why Linux terminals can’t tell whether something is currently selected or not, and have Control-C do the right thing depending on it? I’ve been double-mapping Control-C on WSL for a few months (using ConEmu as a terminal) and it works surprisingly well for me.
- chmln 6y agoSome terminals can, kitty for instance.
- the_lucifer 6y ago100% the best thing that Mac does with respect to keyboard shortcuts is the fact that the `Meta` key is the de-facto shortcut key. That makes so many shortcuts consistent across the command line and the OS
- chin7an 6y agoCmd+Shift+<square_brackets> - i.e '[' and ']' switch to the previous and next tab respectively I use this a lot, but is missing from this page. I'm pretty sure I didn't have to customise it in the settings myself. Not sure how I stumbled on this, but it works for me in all applications, native or electron (VS code is the only one I have installed).
- gouggoug 6y agoOne keyboard shortcut I haven't been able to find/create is one that moves my mouse cursor from one monitor to another. I often need to move my cursor from my third monitor on the left all the way to my monitor on the right. Anyone has a way of doing this?
- makz 6y agoA bit off-topic but, I've found I never use minimize, what's the use case for that?
- ivanmaeder 6y agoThanks for posting this. I had no idea files could be moved without the mouse! Option-Command-V: Move: Move the files in the Clipboard from their original location to the current location.
- spfjefe 6y agooh snap command shift fiiivvvvee, that's a new one for me.
- samstave 6y agoWow, I am surprised at how many I knew, and how many I didnt know!
- thomasfl 6y agoSince the first Macintosh was released in 1984, Apple has continued to add keyboard shortcuts. The list of keyboard shortcut has now become ridiculously long. By the way. Many of this shortcuts also work on iPad with a physical keyboard connected to it.
- sixstringtheory 6y agoAnother tip if you are mousing through a native app's menus in the menu bar, holding ⌘, ⌥, ^ and ⇧ (or combinations of them) will show you the alternate options in that menu that those extra keys in the combo perform. One of my favorite things about the macOS shortcut system is this idea of variations on operations using variations on shortcuts. They've kept the system remarkably consistent. Last tip is that if you want a quick way to type keyboard shortcuts, set up keyboard text expansions for things like "commandkey", "optionkey", "shiftkey" etc that resolve to those symbols. I found it slightly fast than bringing up the emoji picker with ^ + spacebar and typing e.g. "place name" for ⌘. (What is the icon for spacebar??)
- zonabey 6y agoThey're pretty good but try toggling back and forth between two windows from different applications (NOT ENTIRE APPLICATIONS JUST TWO DIFFERENT WINDOWS)
- efxhoy 6y agoAnother thing that Mac does well is the Swedish layout. ~ [] | \ {} are IMO much better placed on the Swedish Mac layout than in Linux or Windows. In some games in windows I can't even bring up the terminal with ~ as it requires a space to be typed in after so the game doesn't register it as a keystroke. Wtf.
- wodenokoto 6y agoFunny. They are terrible on Danish and Norwegian layouts. Like, the pipe is command+i and I always have to look up square and squiggly parens. I think they are on top of normal parens .. or next to. But they are not indicated on the keyboard and they take a modifier, but if you use the wrong modifier, you'll change tab in your browser window. ~ is also not printed on the keyboard and takes a modifier, causing a clash with the command-~ shortcut for changing between windows in the same application. I am utterly unimpressed and I want to sell my laptop just to buy a new one with US layout.
- namelosw 6y agoMacOS is bloated and glitchy nowadays. But I keep coming back to MacOS. It's funny but the No.1 reason for me is the readline shortcuts. The No.2 reason is rendering.
- dnhz 6y agoOne strange behavior is that in Finder (in list view for instance), page up and page down (or Fn-Down, Fn-Up) move the view up and down, but the selected item remains unchanged so that hitting the arrow keys returns the view back to the selected item. In order to select a different item, I either use the mouse/trackpad, hold down the arrow key to my desired item, or press Option+Up/Down to move the selection to the beginning or end of the list of files. I don't know of a way to move the cursor by one page view. It's a behavior that I can get used to, but what I find inconsistent is that the behavior is different in iTunes. It seems like in iTunes, the only way to move the selection is either arrow keys or the mouse. Option+Up/Down doesn't do what it does in Finder.
- sawaruna 6y agoI need a keyboard shortcut expert to help me out with something specific in Safari. If I type a term into the URL bar, the bottom list of suggestions is for 'Bookmarks and History'. If arrow down to select one of these, it places it in the URL bar, but the only text I can edit here is the title of the page, I can't actually edit the URL. Is there a way to make the URL here editable without actually visiting the page first? I could just press enter then Command-L to edit it, but I'm looking for a way to append the URL first.
- bjoli 6y agoI was forced to use OSX due to some.unlycky life circumstances and I found it to actually be a half way decent OS! Having used Linux since I was 11, it took surprisingly little tweaking before I felt at home. However: I had serious issues with keyboards. Alt gr (right alt, used for typing a lot of special signs useful for programming. Brackets, @ and such) stopped working more times than I care to count. I ended up having to use karabiner to work around it. There was an issue where the paragraph key magically disappeared. That would have been fine, if it hadn't been my Emacs leader key. I have had issues with some keyboard shortcuts just magically not work due to me using Swedish as a system language, which is something I did not have to deal with in any other OS. It just made the whole experience feel rather unpolished. Then Catalina came and I switched back to Linux. Now my 2015 iMac is just collecting dust, and since they removed support for target display mode I can't even use it as a second display, which is sad since the 4k 500candela display is the only thing I really miss.
- blackrock 6y agoHow do you activate the top system menu bar, to navigate through it via keyboard only? I always thought Mac designers were retarded for not making this critical feature obvious. Another peeve is the lack of dedicated keyboard keys. Like the printscreen key. On Mac you have to press something like Command-shift-4. Often times I notice, the Mac designers try to simplify things for the sake of design, but they end up making the damn thing harder to use.
- mayankkaizen 6y agoI've been Windows user all my life and recently got to use Macbook. So far I've been unable to find a key shortcut to minimize ALL open windows (like windows key + M in Windows). It is very annoying. Also, coming from Windows, cut copy paste operation is also annoying on Macbook.