Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README recommendation: with-readline #1

Open
huyz opened this issue Jan 3, 2023 · 4 comments
Open

README recommendation: with-readline #1

huyz opened this issue Jan 3, 2023 · 4 comments

Comments

@huyz
Copy link

huyz commented Jan 3, 2023

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
Copy link
Member

zcohan commented Jan 3, 2023

Thanks for the suggestion @huyz.

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

@huyz
Copy link
Author

huyz commented Jan 3, 2023

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
Copy link
Member

zcohan commented Jan 3, 2023

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
Copy link

dentarg commented Jul 31, 2023

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants