{"id":6434,"date":"2017-07-17T11:28:00","date_gmt":"2017-07-17T15:28:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=6434"},"modified":"2017-07-17T11:28:42","modified_gmt":"2017-07-17T15:28:42","slug":"collapsing-empty-dired-paths","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=6434","title":{"rendered":"Collapsing Empty Dired Paths"},"content":{"rendered":"<p> One annoying feature of many modern development systems and sometimes even single programs is that they hide files or directories in a long, nested series of otherwise empty directories. That is, each directory other than the last contains only a single entry. GitHub has a nice solution for this: they collapse the entire path of otherwise empty directories into a single path. That makes it easy to get to the target without navigating through a bunch of essentially unused directories. <\/p>\n<p> <a href=\"https:\/\/fuco1.github.io\">Fuco1<\/a>, who has little tolerance for such infelicities, has introduced <code>dired-collapse-mode<\/code> <a href=\"https:\/\/fuco1.github.io\/2017-07-15-Collapse-unique-nested-paths-in-dired-with-dired-collapse-mode.html\">to bring the same functionality to dired<\/a>. Follow the link to Fuco1&rsquo;s post to see an example of the mode in action. It&rsquo;s on <a href=\"https:\/\/melpa.org\/#\/dired-collapse\">Melpa<\/a> so it&rsquo;s easy to install and try out. If you have a lot of these nested directories ending in a single target, you should give <code>dired-collapse-mode<\/code> a try. You having nothing to lose but your frustration. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>One annoying feature of many modern development systems and sometimes even single programs is that they hide files or directories in a long, nested series of otherwise empty directories. That is, each directory other than the last contains only a &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=6434\">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],"class_list":["post-6434","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6434","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=6434"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6434\/revisions"}],"predecessor-version":[{"id":6435,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6434\/revisions\/6435"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}