News for hackers. Stuff that matters.
Re:Show HN: Teleport: Simple command line app tutorial writt... by mbel on Thursday December 22, 2016 @05:02PM (#13240766)
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.

Re:Show HN: Teleport: Simple command line app tutorial writt... by taeric on Thursday December 22, 2016 @05:13PM (#13240855)
Naming 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.

Re:Show HN: Teleport: Simple command line app tutorial writt... by iamdave on Thursday December 22, 2016 @05:28PM (#13240960)
Naming 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.

Re:Show HN: Teleport: Simple command line app tutorial writt... by taeric on Friday December 23, 2016 @10:31AM (#13245159)
Yeah, I was not intending my post as a counter. Just more discussion.
Re:Show HN: Teleport: Simple command line app tutorial writt... by bollu on Friday December 23, 2016 @12:40AM (#13243097)
what 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

Re:Show HN: Teleport: Simple command line app tutorial writt... by taeric on Friday December 23, 2016 @09:01AM (#13244717)
Main 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.