Live data from Hacker News

Antonmedv/walk: Terminal file manager

github.com

11–20 of 40 posts

Re: Antonmedv/walk: Terminal file manager

#11
I built a "Control-P" feature for fish that would also be a good trigger for this tool. Basically, you activate the shortcut to run the program, then it will change the directory based on the selection, but restore your original command line after. So you can be halfway through a command before realizing you are in the wrong place. Also, can cd with one fewer keystroke. My version is at [0], but obviously modifiable for other tools like this one.

[0] https://github.com/CGamesPlay/dotfiles/blob/3560a5a92d475537...

Re: Antonmedv/walk: Terminal file manager

#14
post #2

Zsh has this out of the box. You just type the name of a directory and it will `pushd` to it. At least I think it's built-in. It could be oh-my-zsh I suppose.

It's not out of the box. It works on my omz shell, although I didn't do anything to specifically enable this since it never bothered me to type cd and I kinda hate "magic". On an out-of-the-ubuntu-box zsh, it doesn't work: % cd / % bin zsh: command not found: bin

This behavior is controled by the AUTO_CD option: https://zsh.sourceforge.io/Doc/Release/Options.html. To enable it yourself:

    setopt AUTO_CD

Re: Antonmedv/walk: Terminal file manager

#16
Nice. I ended up using fff + a little script that pops you to where you select, but I'll see if this is more elegant.

I don't know about y'all, but my biggest problem with these things is that I'm definitely faster when I remember to use them, but I have literal decades of slow muscle memory that makes me cd/autojump all the time instead.

(Relatedly, why is Dolphin apparently the only GUI file manager trying to make a serious attempt at shell integration? This seems weird? I might be missing something?)

Re: Antonmedv/walk: Terminal file manager

#17
Looks very similar to my tool, tere: https://github.com/mgunyho/tere. The main difference seems to be that I don't do any file manipulation, while walk has the option to delete files/folders. In my implementation, you don't need to type '/' for fuzzy search, just typing searches and jumps by default.

I also have a list of similar projects at the end of the README, I'll add this as well! edit: Oh I already had it in my list, the project has just been renamed from llama to walk.

Post reply on HN