Hacker News new | ask | show | jobs
by kzrdude 1949 days ago
I'm mildly skeptical of any shortcuts that are based on "learning habits". I've already gotten enough of user interfaces that move items based on use all the time (The spotify playlist list is the worst offender - playlists move up and down in rank after every use, so there is never any spatial memory, startled every time).
3 comments

You press z, type a few letters and then hit tab until you get the thing you want. It's not spatial. If you use ctrl-r frequently it's similar.
The examples show "z someinput" and enter, so then going to some place based on learned location for someinput, no?

It's not spatial because it's text-based but a similar problem occurs if it can surprise you about which location is going to be used for each input.

Is there any advantage over CTRL-R?
With ctrl-R you'd presumably need a bunch of absolute path navigation commands in the past, with z you don't need to worry about that.

There may be more clashes, like picking up on filenames instead of directories.

Typing `z res` or whatever is also a bit faster than hitting ctrl-R then `res`.

I found the per-directory "suggest-while-typing" history in Fish (and Zsh with the right extension) very intuitive. It speeds up getting around the filesystem, and to common locations tremendously, and of course also remembers regular commands. And it "just works", there is nothing to setup and no commands to remember.
tried fish for some time for the implicit completion but the otherwise excotic nature of the shell has caused me enough headaces to revert to bash and live with C-R
I use zsh with this plugin: https://github.com/zsh-users/zsh-autosuggestions

Best of both worlds, fish-like autocomplete combined with bash-compatibility :)

It's very well hidden, but (at least on Android) there is an option to sort alphabetically. I was quite annoyed until I googled it and found out how to do it. I can't find it in the UI now despite having done it before... Anyway, I fully agree.