{"id":10,"date":"2008-03-13T03:32:06","date_gmt":"2008-03-13T08:32:06","guid":{"rendered":"http:\/\/vgable.com\/blog\/2008\/03\/13\/useful-mac-os-x-text-editing-shortcuts\/"},"modified":"2008-11-29T15:12:22","modified_gmt":"2008-11-29T20:12:22","slug":"useful-mac-os-x-text-editing-shortcuts","status":"publish","type":"post","link":"https:\/\/vgable.com\/blog\/2008\/03\/13\/useful-mac-os-x-text-editing-shortcuts\/","title":{"rendered":"Useful Mac OS X Text-Editing Shortcuts"},"content":{"rendered":"<p>Here is a handful of lesser-known Mac OS X keyboard shortcuts that I&#8217;ve found to be <em>very<\/em> useful for working with text.  They work in all standard text-fields, which means they work in <em>most<\/em> programs.  Sadly, they don&#8217;t work in Microsoft products, and a few other apps that use non-standard text fields.<\/p>\n<p><strong>option<\/strong> = you will see the mouse cursor into a + , and you can now select columns of text!  Unfortunately it only seems to work in editable text-fields, which is a great shame.<\/p>\n<p><strong>ctrl + d<\/strong> = forward delete, even if you don&#8217;t have it on your MacBook&#8217;s keyboard.<\/p>\n<p><strong>ctrl + a<\/strong> =  Go to the beginning of the line the insertion-point is on.<\/p>\n<p><strong>ctrl + e<\/strong> = Go to the beginning end of the line line the insertion-point is on.<\/p>\n<p><strong>ctrl + k<\/strong> = &#8220;kill the current line&#8221;, deletes everything from the right of the insertion point to the next newline.  This is very useful in Terminal, because you can delete the tail of a long command<\/p>\n<p><strong>command + delete<\/strong> = &#8220;Delete To Beginning Of Line&#8221;.  Just like ctrl+k, but backwards, not forwards.  (It even puts the killed text on the yank-pasteboard &#8212; don&#8217;t worry if that makes no sense, it&#8217;s an <a href=\"http:\/\/zoo.cs.yale.edu\/classes\/cs210\/help\/emacs.html\">emacs<\/a>-ism I don&#8217;t find useful.)<\/p>\n<p>And yes, that&#8217;s ctrl, not command, because these are shortcuts inherited from the old UNIX text-editor <a href=\"http:\/\/zoo.cs.yale.edu\/classes\/cs210\/help\/emacs.html\">emacs<\/a>.  There are more emacs &#8220;key bindings&#8221; that are available, but I have never found them useful.  This <a href=\"http:\/\/www.danrodney.com\/mac\/index.html\">long list of Mac OS X keyboard shortcuts<\/a> includes them.<\/p>\n<p><strong>command + ctrl + d<\/strong> = look up the word under the mouse in the dictionary.  I can&#8217;t believe that other operating systems haven&#8217;t done this for decades, it&#8217;s that useful.<\/p>\n<p>It is unfortunate when programs use text-fields that do not support commands the operating system should give to every application.  It&#8217;s always a mistake.  Fundamentally, not supporting ctrl+a (go to beginning) is no different then not supporting command+c (copy).<\/p>\n<p>If you find these commands useful, please teach them, and let developers know it&#8217;s a problem when you can&#8217;t use them.  That will improve computing for everyone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a handful of lesser-known Mac OS X keyboard shortcuts that I&#8217;ve found to be very useful for working with text. They work in all standard text-fields, which means they work in most programs. Sadly, they don&#8217;t work in Microsoft products, and a few other apps that use non-standard text fields. option = you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,10,9,8],"tags":[86,235,236,237],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-macosx","category-tips","category-unix","category-usability","tag-command-line","tag-emacs","tag-terminal","tag-text"],"_links":{"self":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":0,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vgable.com\/blog\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}