Live data from Hacker News

Antonmedv/walk: Terminal file manager

github.com

31–40 of 40 posts

Re: Antonmedv/walk: Terminal file manager

#31
post #22
post #12

Shameless plug: Elvish is a shell with a filesystem navigator built in - you can see it in demo 5 on the homepage https://elv.sh

i have been looking at elvish from time to time (ever since we met in beijing :-). but i am missing two key features: autosuggestion: type something and then suggest a command from the history that matches what i typed. non-incremental history: if the autosuggestion is not the right one, use arrow keys to search for a better one. fish has both. zsh has a module for autosuggestion. but if the suggestion is wrong then…

my home grown response to the rename use-case:

https://github.com/bAndie91/tools/blob/master/user-tools/rn

and

https://github.com/bAndie91/tools/blob/master/user-tools/ren...

Re: Antonmedv/walk: Terminal file manager

#32
post #22
post #12

Shameless plug: Elvish is a shell with a filesystem navigator built in - you can see it in demo 5 on the homepage https://elv.sh

i have been looking at elvish from time to time (ever since we met in beijing :-). but i am missing two key features: autosuggestion: type something and then suggest a command from the history that matches what i typed. non-incremental history: if the autosuggestion is not the right one, use arrow keys to search for a better one. fish has both. zsh has a module for autosuggestion. but if the suggestion is wrong then…

> having to retype the whole filepath when using mv can lead to errors.

If you use bash, or any readline-based command line (in emacs mode):

  mv long.file.name |^W^Y^Y
results in

  mv long.file.name long.file.name |
(| is the cursor). Then, you just edit the second copy of the filename. BTW, M-C-b/M-C-f will move by one whole "argument" (even if it contains escaped spaces).

edit: and if your filename has spaces, replace the ^W above with M-C-b C-k

Re: Antonmedv/walk: Terminal file manager

#33
post #22

Earlier quoted context omitted.

i have been looking at elvish from time to time (ever since we met in beijing :-). but i am missing two key features: autosuggestion: type something and then suggest a command from the history that matches what i typed. non-incremental history: if the autosuggestion is not the right one, use arrow keys to search for a better one. fish has both. zsh has a module for autosuggestion. but if the suggestion is wrong then…

my home grown response to the rename use-case: https://github.com/bAndie91/tools/blob/master/user-tools/rn and https://github.com/bAndie91/tools/blob/master/user-tools/ren...

neat.

that's pretty much what i had in mind, but only for a single rename.

i just did a search and embarrassingly discovered imv which is part of the renameutils package which also contains qmv, a tool to batch rename lots of files by loading the list into an editor. embarrassed because qmv is my favourite tool for batch renaming, and so i have it already installed.

imv is exactly what i am looking for, for the single file rename case: "The imv ("interactive move") program, is trivial but useful when you are too lazy to type (or even complete) the name of the file to rename twice. It allows a file name to be edited in the terminal using the GNU Readline library."

so we can consider this problem solved.

back to alternative shells: i am just spoiled by fish (no the fish isn't spoiled): autosuggestion and non-incremental search like fish are a requirement for me to consider any other shell now.

btw: autosuggestion for elvish is being discussed here: https://github.com/elves/elvish/issues/322 and apparently it has some of that search feature too (from a comment): "type the beginning of a command and press Up and cycle through all the commands that start with the string I typed."

i am going to have to try that.

Re: Antonmedv/walk: Terminal file manager

#36

"Esc Exit with cd" key binding is a bit off IMO, people usually expect Esc calcels or dismisses things not doing forward action. considering that "Enter" is already taken, it's a hard choice i admit.

don't see the cursor under vt100 nor xterm… accidentally hit "dd" on a directory… unexpected "(u)ndo in 5… 4… 3…" message pop up… muscle memory kicked in "Ctrl–C Ctrl–C Ctrl–C" but no avail. prophetically it was walk's directory itself. turned out the Esc key binding was the least of the issues.

Re: Antonmedv/walk: Terminal file manager

#37
post #5

Neat project! Thanks for sharing! "broot" also lives in this space, but is rapidly getting too complex for me to memorize without consulting the help page.

What's too complex ?

I'd like to get more information on what is less obvious than it was at the beginning and any hint on how to fix that. Broot's chat is always open for that.

Re: Antonmedv/walk: Terminal file manager

#38
post #33

Earlier quoted context omitted.

my home grown response to the rename use-case: https://github.com/bAndie91/tools/blob/master/user-tools/rn and https://github.com/bAndie91/tools/blob/master/user-tools/ren...

neat. that's pretty much what i had in mind, but only for a single rename. i just did a search and embarrassingly discovered imv which is part of the renameutils package which also contains qmv, a tool to batch rename lots of files by loading the list into an editor. embarrassed because qmv is my favourite tool for batch renaming, and so i have it already installed. imv is exactly what i am looking for, for the singl…

Autosuggestion is one of those features that I never bothered to implement and have learned to live without. Maybe some day :)

There's also Ctrl-R for searching through history, and unlike other shells it has a list UI (like fzf). If you've typed something and then press Ctrl-R, it gets used as the filter.

Re: Antonmedv/walk: Terminal file manager

#39
post #37
post #5

Neat project! Thanks for sharing! "broot" also lives in this space, but is rapidly getting too complex for me to memorize without consulting the help page.

What's too complex ? I'd like to get more information on what is less obvious than it was at the beginning and any hint on how to fix that. Broot's chat is always open for that.

The problem is that my brain is too small to remember all the commands. You're inspiring me to make some flash cards -- that'll sort my concern out.

(Thanks for your work on broot btw! It really is a great tool)

Post reply on HN