4 ms·
I think the point of the linked page is to show how to implement a command line app in Haskell. Teleport is just an example, as such it doesn't really have to b
by mbel 10y ago
I think the point of the linked page is to show how to implement a command line app in Haskell. Teleport is just an example, as such it doesn't really have to be a great tool for everyday usage.
On the other hand, teleport seems to actually provide a much better UX than pushd/popd:
1. it's a hash-table not a stack (directories are named), so it allows random access to memorized directories.
2. it is possible to display the current state.
3. remembered directories are persistent between shell sessions.
- taeric 10y agoNaming directories seems like an odd choice. Sounds like aliases? Regardless, pushd/popd/dirs is a tough experience. Seems capable of a lot, but I only use it for bouncing between two directories, typically. The tool I like, but can't remember the name of is basically 'cd ${PWD:src/tst}'. Only, a little more terse. Haven't used it in a while either, since I've primarily switched to eshell.
- iamdave 10y agoNaming directories seems like an odd choice. Sounds like aliases? I definitely use aliases for multiple frequently accessed directories. `kdev` takes me to my work dev folder, `wpdev` takes me to my wordpress folder, etc. But I definitely see the points parent comment to yours made.
- taeric 10y agoYeah, I was not intending my post as a counter. Just more discussion.
- bollu 10y agowhat advantage does `eshell` have? And yes, the primary goal of writing this was to have a small CLI app in Haskell, but I've found that I use teleport a decent amount now to quickly zip between common folders
- taeric 10y agoMain eshell advantage is tramp integration. I can "cd /computer:" to change my directory to remote machine. From there, I can open a file as though it were local. Grep opens results in a buffer that acts as an index to the results. And my magit shortcut acts correctly. Meant to clarify, I was not defending pushd/popd. It is a tough experience. Not a tough experience to beat. And pedagogical is a perfectly fine motivation.