Visit Directory inside a Set of Directories23 Feb 2015, by Artur Malabarba.
Almost every directory I work with, is either directly under “~/Dropbox/” or
under “~/Dropbox/Work/”. However, I never actually visit these two directories,
only the directories inside them. The number of possible targets for
is approaching the outer borders of two-digit land, so there's no hope for my
brain to remember registers for all of these.
The best solution I've found is to compile a list of all possible targets (directories inside those directories) and offer them using ido. This is somewhat similar to using a bookmark for each possible destination, except it it's always up to date with the directory contents and doesn't clog up my actual bookmarks.
Some random notes:
- Having a quick key for this is fantastic. Whenever I want to get work done, I just hit C-x d and I'll my options are presented before me.
- With a prefix argument it also shows files instead of just directories.
- If ido is not your completion engine of choice, that's trivial to change.
- This works best when combined with