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

Immediate Mode Features #130

Open
andyl opened this issue Dec 16, 2024 · 2 comments
Open

Immediate Mode Features #130

andyl opened this issue Dec 16, 2024 · 2 comments

Comments

@andyl
Copy link
Contributor

andyl commented Dec 16, 2024

In #125, there was a short discussion of "Immediate Mode" aka "getch" in the upcoming release of OTP 28. Here's a couple of useful features that would be possible with "Immediate Mode".

History Navigation

In interactive mode, use up/down arrows to view command history.

Tab Completion

In interactive mode, add tab completion or fzf style finder when matching filenames for the 'p' command.

I expect there will be many other ideas for Immediate Mode. Just putting this out there in advance of the OTP 28 release.

@andyl andyl changed the title Arrow Up/Down for Command History Immediate Mode Features Dec 16, 2024
@randycoulman
Copy link
Owner

Thanks for the idea, @andyl. I think it's going to be a while before we can fully rely on OTP 28 features (to maintain backwards compatibility), though it might be worth releasing a new major version to take advantage of immediate mode sooner.

For now, though, it is possible to use rlwrap with mix test.interactive which gives standard GNU readline-style command line editing (arrow keys, Ctrl+R, etc). I just tried it, and works just like I'd expect. I'm thinking I might make this my daily driver!

@andyl
Copy link
Contributor Author

andyl commented Dec 24, 2024

it's going to be a while before we can fully rely on OTP 28

yes absolutely

rlwrap

great tip thanks! I adopted it.

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

2 participants