17 comments

[ 3.0 ms ] story [ 51.2 ms ] thread
Looks cool. I will try it today
I have been wanting to do something like this and been procrastinating hoping someone will do it for me.
This seems very cool! A nice cross between tl;dr-pages and zsh autocompletion. Installed.
Looks nice! By command pallet, I understood as color pallet, as in color scheme. But this looks pretty handy!
Thats what my brain read it as well.
CTRL-K for bookmarking seems like a possible mistake. That is a very common key combination for killing text forward from a cursor, and one which I use often every day.

It would also be wonderful to see this work with shells beyond Bash and Zsh, such as Fish or Csh for example.

Agreed, why use such a simple and commonly used command shortcut? This will most certainly conflict with my current ZSH. Probably one of the worst possible choices in terms of likelihood of clashing.

Question: when using `marker mark` does it bookmark the previously used command?

This seems like a non-issue since it supports changing the key combinations with environmental variables. Anyone who uses Ctrl-K regularly (which I imagine is not the majority of shell users) can override the combo in their shell's rc file.
Yes I saw that.

Generally I don’t want to have to resort to ENV config variables in order to get back to the default shell navigation key combinations which have worked on POSIX shells for thirty years.

It’s nice they allow for overriding, but I’d prefer if people were more cognizant of built-in shell navigation.

environment variables allow assignment of different keybindings, according to the readme.
I'm personally achieving something like this with a combination of binding Ctrl-R to fzf's history search and using zsh's vim command edit mode: https://asciinema.org/a/fELHDWUytNGMBEFBGEjo5jJO7
I've been searching for this for years! Never could figure out what people would call it, but I knew it must exist. Goodbye Ctrl+R x 100.
fzf does the same thing, but with more integrations: https://github.com/junegunn/fzf
`fzf` is more of a broad interface for fuzzy matching lists with any number of possible uses.

Marker uses a similar interface but is built entirely for a particular use case (bookmarking, recalling, and autofilling commands with their options and placeholder parameters). Something that could have been built on top of fzf but it's not the same thing.