Ask HN: Programs that saved you 100 hours?
629 pointsI learned about a ton of useful CLIs, desktop apps, and SaaS products from this thread (https://news.ycombinator.com/item?id=13887237).
But it was posted 3 years ago, and perhaps some useful stuff has emerged in the interim, hence my starting this thread.
Comments (516) 196 threads
Show all comments
Showing thread 1 of 196
https://github.com/rupa/z
It's one of those rare tools that interacts with my stream of consciousness which is one step away from mind reading.
I know this is OT but one of the reasons I've switched is history search that actually works.
Since I also love ranger as a file manager, I wrote my own integration of both: https://github.com/fdw/ranger-autojump . It remembers where I went in ranger, and I can also call autojump in ranger.
> autojump is a faster way to navigate your filesystem. It works by maintaining a database of the directories you use the most from the command line.
1. Scan an eternal history file for `cd` with absolute path except for /tmp/*
[0]: https://github.com/junegunn/fzf2. Sort and filter out duplicates
3. Call fzf and let user pick the desired result
4. Upon selection don't enter the directory but instead type `cd ` into the prompt so that the user can navigate further using .
What's nice about this approach is that it automatically builds your bookmarks, but only from `cd` commands where you deliberately used an absolute path.
Here's the code. It has some prerequisites (fzf[0] and ~/.eternal_bash_history[1]) and probably only works with my terminal (Xfce Terminal); it took a bit of tinkering to get it to work.
[1]: https://stackoverflow.com/a/19533853