Sometimes when working in deeply nested file hierarchies (e.g. Java code) I find it annoying to traverse from one leaf to another. My usual cd-up looks like:
$ cd ../../..
# Oops, not enough
$ cd ..
# one more
$ cd ..
If I want to edit a file I can vim dir
and interactively open desired file.
Is there some utility that allows to interactively change directory? Explorers/commanders (mc
, vifm
) are too heavy for such a task.
I have searched the internet, but my keywords seem to return nothing of relevance.
Added to clarify:
I am searching for an utility (let's call it vcd
) that presents me an interactive directory tree which I can traverse and select where to cd.
From user perspective vim .
calls hypothetical vcd
which in the end executes vim $filename
. I would like similar functionality (directory browser), just in the end to end up with CWD
changed to interactively selected directory. I hope this makes my intentions more clear.
cd ..; ls
is executed like how you use-
command in vim directory browsing? – nitishch Jun 25 '15 at 08:59edbrowse
you can do this w/ dirs, google.com, email, files, databases... maybe other stuff? – mikeserv Jun 25 '15 at 13:08