soulverteam / Soulver-CLI

A standalone command-line version of Soulver (for macOS)
MIT License
26 stars 1 forks source link

README recommendation: with-readline #1

Open huyz opened 1 year ago

huyz commented 1 year ago

Might want to add this recommendation: https://formulae.brew.sh/formula/with-readline

brew install with-readline

and add to your ~/.zshrc or ~/.bashrc:

alias soulver="with-readline soulver"

and restart your shell.

Makes this Soulver CLI app much more usable

zcohan commented 1 year ago

Thanks for the suggestion @huyz.

Can you give me an example of how with-readline makes the app more usable?

huyz commented 1 year ago

You mean you're not familiar with GNU Readline?

For example, it lets you hit the up-arrow and edit the previous command.

I guess this is an example video: https://www.youtube.com/watch?v=Hek2CMtzrJ0

zcohan commented 1 year ago

Yeah looks cool: nice to be able to use the Emacs keystrokes inside Soulver.

I'll have to look into whether there is a better way to enable these keystrokes out-of-the-box with Swift command line tools, but GNU Readline is a good workaround in the meantime.

dentarg commented 1 year ago

Amazing, thanks @huyz – for sure mentioning this (until resolved natively with Swift) in the README should make people appreciate this CLI so much more (it feels broken when you can't use the arrow keys to navigate).