{"id":4170,"date":"2015-07-01T09:43:00","date_gmt":"2015-07-01T13:43:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=4170"},"modified":"2015-07-02T10:38:18","modified_gmt":"2015-07-02T14:38:18","slug":"org-goto","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=4170","title":{"rendered":"<code>org-goto<\/code>"},"content":{"rendered":"<p> I learned a really useful Org mode command from Artur Malabarba&#8217;s <a href=\"http:\/\/endlessparentheses.com\/how-i-blog-one-year-of-posts-in-a-single-org-file.html\">first anniversary post<\/a>: <code>org-goto<\/code>. The idea is that you want to navigate to somewhere else in the current Org buffer. You <i>could<\/i> fold the buffer and navigate to the proper subtree but often you want to leave the current subtree unfolded as well as the subtree you&#8217;re navigating to. The <code>org-goto<\/code> command, bound to \u3010<kbd>Ctrl<\/kbd>+<kbd>c<\/kbd> <kbd>Ctrl<\/kbd>+<kbd>j<\/kbd>\u3011 by default, allows you to do just that. An copy of the buffer is created with an overlay displaying the buffer in overview mode. You can navigate within that buffer and press \u3010<kbd>Return<\/kbd>\u3011 on the desired subtree which will take you back to the original buffer with the point at the new subtree. <\/p>\n<p> That may not seem too useful but see Malabarba&#8217;s post for a compelling use case. In my case, it&#8217;s useful because of the large Org files I use to store my data. When I load such a file via a bookmark or it gets reloaded during a sync from git, it will be completely folded. The files are too large to set them to be completely unfolded so I have to have some way of finding the proper place. I used to call <code>org-sparse-tree<\/code> and then do a regular expression search for the proper heading. With <code>org-goto<\/code>, I can simply display the headers, navigate to the desired one, and press \u3010<kbd>Return<\/kbd>\u3011 to navigate to the proper heading that will be conveniently unfolded. Very handy. <\/p>\n<p> It&#8217;s a bit hard to explain how <code>org-goto<\/code> works so you should experiment with it a bit to see how you can fold it into your workflow. If you use Org files to organize your data as I do, this command is very likely to be a win for you. <\/p>\n<p> <b>UPDATE<\/b>: There&#8217;s a really good discussion of <code>org-goto<\/code> and related  navigation methods in the comments. Be sure to take a look. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I learned a really useful Org mode command from Artur Malabarba&#8217;s first anniversary post: org-goto. The idea is that you want to navigate to somewhere else in the current Org buffer. You could fold the buffer and navigate to the &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=4170\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18,4],"class_list":["post-4170","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs","tag-org-mode"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4170"}],"version-history":[{"count":2,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4170\/revisions"}],"predecessor-version":[{"id":4172,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4170\/revisions\/4172"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}