You are not logged in.
I'll try to explain as best I can what I've been wanting to implement for the past 2 weeks now, so please bare with me. My goal is to be able to navigate the output of the tree command the same way I can navigate commands/aliases with autocomplete.
The following is what I picture the script will do.
1. type zt in terminal, it will do the following,
alias zt='cd $ALIASES; echo \ ; tree --dirsfirst --charset=ascii $ALIASES; echo \'
2. If I hit tab it will go to the next folder and skip any text files. Left arrow will go back 1 folder (I hope that is the correct term).
3. If I hit enter/right arrow it will go into the currently highlighted folder.
4. For text files if I hit c it will display the contents of that file below its name in the tree output.
5. If I hit e on a text file it will instead open that file in emacs
if emacs window already exists then it will open it in the current window
if it doesn't exist it will open it in a new emacs window
6. Ctrl-C will return to regular terminal.
Currently I'm just using aliases that have the hard coded paths of each file in the ~/zsh_files directory. Anything similar to what I described is also appreciated.
http://i.imgur.com/iLbRl1c.png
Last edited by jasonwryan (2016-10-08 04:21:00)
Offline
Don't post screenshots of text, paste the actual text. And read the Code of Conduct and only post thumbnails http://wiki.archlinux.org/index.php/Cod … s_and_code [jwr]
Offline