Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mgunyho
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
mgunyho
4y ago
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,
32.
▲
by
mgunyho
4y ago
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
33.
▲
by
mgunyho
4y ago
Tab completion with these settings takes some extra keystrokes: if there's only one match, you have to press tab twice to see what's in the subfolder. If you have several matches, you have to press tab, then enter to select the on
34.
▲
by
mgunyho
4y ago
Yeah, I'll admit that the basic idea is not novel (I have a list of similar programs in the README). But I bet your tool doesn't work exactly the way I like! :)
35.
▲
by
mgunyho
4y ago
To end up in the directory where you are, you just have to exit using esc or alt-q, assuming you have set up your shell config. I'll add ~ as a shortcut for the home directory, thanks for the good idea! (It conflicts with type-to-searc
36.
▲
by
mgunyho
4y ago
Note that setting up tere requires defining an alias in your shell config anyway, so you can choose any name you want with basically zero extra effort! Except for coming up with an abbreviation you remember, of course. But I agree, it is fa
37.
▲
by
mgunyho
4y ago
Funny, to me showing the keystrokes felt like a cliche in "modern"/flashy CLI app readmes :) I guess it's more often used in youtube videos. I used screenkey to display the keystrokes and Peek to record the gif. I actual
38.
▲
by
mgunyho
4y ago
I tried to avoid bloat as much as possible, and I would argue that the non-transitive deps are pretty essential. I'l look into tweaking some features as suggested in sibling to trim it further down. But you're right that it could
39.
▲
by
mgunyho
4y ago
It's true that vim probably contains all of the functionality of tere, but IME browsing with vim is still a bit more cumbersome (and I'm not sure if you can configure it to print the cwd on exit, though probably you can). The extr
40.
▲
by
mgunyho
4y ago
True, it's not a very smooth experience on non-qwerty keyboards, and the keyboard shortcuts can't be customized yet. But it's high on the todo list!
41.
▲
by
mgunyho
4y ago
That's mentioned in the readme! :) I'm pretty happy with the name choice, it's short, doesn't seem to clash with other CLI tools, it can be interpreted as "terminal explorer", and has a kind of cute meaning as
42.
▲
Show HN: tere – A Faster Alternative to cd+ls
(github.com)
378 points
by
mgunyho
4y ago
|
198 comments