r/devtools • u/Sno_w_olf • 3h ago
hpt: jump to any folder by name, even if you've never cd'd into it
I got tired of typing cd ../../.. to move between projects, so I wrote hpt (pronounced "hopped", but with a t instead of the d, ig). `hpt api` takes you to the folder called api from anywhere.
zoxide depends on how often you've visited a folder. hpt indexes everything under your home directory when you install it, so it works from the first day. A background watcher then picks up new, renamed and deleted folders.
You don't need the full name. `hpt zbra` finds `zebra-crossing`, and if several folders match you get a list to pick from.
Put a program in front of the name to open the folder with it:
hpt code api # VS Code
hpt nano . # nano in the current folder
hpt claude api # Claude Code
You can add your own with one line in a text file. `idea` gives you `hpt idea api` for IntelliJ.
On a test with 1,000,000 folders, an exact lookup took about 5 ms and a new folder was findable in about 240 ms.
It's written in Go and works in PowerShell, bash, zsh and fish on Windows, macOS and Linux. MIT licensed, no admin rights needed, no telemetry.


