Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
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 actually wrote some instructions for myself so I remember how I did it if I want to update the gif: https://github.com/mgunyho/tere/blob/master/demo/README.md
I use cd+ls all the time, even though double tab or fzf [1] in theory work better.
[1]: https://github.com/junegunn/fzf#key-bindings-for-command-lin...
This feels a lot like Vim's built in file explorer (netrw).
I find these kinds of text based, keyboard centric explorers to be far superior for navigating around a codebase, then giving you back your screen space as soon as you're found what you're looking for.
I implemented something similar but for VSCode: https://github.com/danprince/vsnetrw
(...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)
[0]: https://github.com/sharkdp/fd#using-fd-with-fzf
Looks great! I was thinking of a rusty pet project for the same thing :)
I haven't seen it mentioned yet, but Ranger is a great alternative tool, it can even be integrated into vim
[0]: https://github.com/ranger/ranger
xplr author here (xplr.dev). Nice tool. Note that there's a plugin https://github.com/sayanarijit/type-to-nav.xplr that does something similar. But I just realized that tere can also be used as a more generic type-to-nav helper for xplr.
xplr.config.modes.builtin.default.key_bindings.on_key.T = {
Similar idea for Windows:
https://github.com/seligman/ccd
ccd is more concerned with an edge-first search, and since it's Windows, actually changing the directory involves a thread insertion in the cmd process to do the work ... which somehow works.
I like it. Would be nice to see orderless-style (https://github.com/oantolin/orderless) completion, and a config not to enter the directory by narrowing the completion to one, requiring enter to be pressed.
Heh, I implemented almost exactly this same thing several years ago in Python[1], with the main difference just being the amount of polish and feature set. (I was, and continue to be, a very distractible person)
Good to see the idea getting more traction!
[1] https://github.com/fouric/lightning-cd