> "Tere" means "hello" in Estonian. It also feels nice to type. I really thought it was initially a typo on "tree" (the tool's purpose is to navigate the folder tree) that the author decided to keep.
I think the origin might be ”[ter]minal file [e]xplorer”, though the author might correct me here. ”Tere” is also, perhaps unsurprisingly, used in Finnish.
Show HN: tere – A Faster Alternative to cd+ls
41–50 of 206 posts
Re: Show HN: tere – A Faster Alternative to cd+ls
#42I strongly dislike the idea of automatically jumping into a folder when there’s only one match: it feels like a feature optimised for very slow typers that actively penalises fast typers, because it makes things generally unpredictable: will one character be enough to navigate, or two, or three? It depends on the siblings, and if you type more characters than are required, you will be penalised by ending up somewhere…
I'm a fast typer, and I understand where you're coming from! But note how there's a small (200ms by default but can be configured) delay when the auto-cd happens. This is actually pretty important, because otherwise it's impossible to see where you cd'd to. Importantly, during this delay, the keystrokes are eaten (so they are not fed down to the next level), and from my experience this is enough to basically never ac…
Re: Show HN: tere – A Faster Alternative to cd+ls
#43https://github.com/antonmedv/llama
But with fuzzy searching.
Re: Show HN: tere – A Faster Alternative to cd+ls
#44Re: Show HN: tere – A Faster Alternative to cd+ls
#45I also created a such tool llama: https://github.com/antonmedv/llama But with fuzzy searching.
Re: Show HN: tere – A Faster Alternative to cd+ls
#46I also submitted few days ago here on HN: https://news.ycombinator.com/item?id=32081263
Re: Show HN: tere – A Faster Alternative to cd+ls
#47Congrats for getting this out! > I also wanted an excuse to learn This is the best reason ever, and not just for you: seeing your GIF I thought "could I achieve that with fzf?". Turns out, yes I can: function fcd() { local dir; while true; do # exit with ^D dir="$(ls -a1p | grep '/$' | grep -v '^./$' | fzf --height 40% --reverse --no-multi --preview 'pwd' --preview-window=up,1,border-none --no-info)" if [[ -z "${dir}…
Re: Show HN: tere – A Faster Alternative to cd+ls
#48Also typical hacker news - "why don't you just use Vim"? Ha. Ignore the naysayers.
Re: Show HN: tere – A Faster Alternative to cd+ls
#49Congrats for getting this out! > I also wanted an excuse to learn This is the best reason ever, and not just for you: seeing your GIF I thought "could I achieve that with fzf?". Turns out, yes I can: function fcd() { local dir; while true; do # exit with ^D dir="$(ls -a1p | grep '/$' | grep -v '^./$' | fzf --height 40% --reverse --no-multi --preview 'pwd' --preview-window=up,1,border-none --no-info)" if [[ -z "${dir}…
Thanks for the kind words! :) While digging up alternatives (of course after I had already written most of the functionality), I briefly tried out fzf. I think at that time I couldn't find an example snippet like yours to do the cding, so I didn't look into it much more. With some basic settings, it was also not easy (or even possible?) to go up in the folder tree, but I see that your example handles that. If you're…
Well, fzf is only a selection tool, it's more about the tool that feeds fzf data ;) That's why I used a dumb ls in my example. Maybe a difference with yours is that it does perform cd on each loop, and there's no way to bail out and not cd.
> it might take a while for it to scan all subfolders.
Haha yeah, for recursive cases I was using ripgrep as fzf default command:
rg --files --no-ignore --hidden --follow --glob "!{.git,node_modules}/*" | fzf
And now I just discovered fd[0]: fd --no-ignore --hidden --follow --strip-cwd-prefix | fzf
(...at least essentially, my setup is a bit more tunable and complex, I have a few of these with varying flags depending on the situation and goal)Re: Show HN: tere – A Faster Alternative to cd+ls
#50This looks very cool. The demo has convinced me to try it, well done! Also typical hacker news - "why don't you just use Vim"? Ha. Ignore the naysayers.