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

Vim-like command mode #64

Open
tulilirockz opened this issue Oct 4, 2024 · 1 comment
Open

Vim-like command mode #64

tulilirockz opened this issue Oct 4, 2024 · 1 comment
Labels
effort: medium Something that can be done quickly with some effort enhancement New feature or request

Comments

@tulilirockz
Copy link

Is your feature request related to a problem? Please describe.

It would be particularly interesting to have a vim command-like mode on this thing to make it so users can run specific commands without necessarily having a keybinding tied to it

Describe the solution you'd like

Having it so if : is pressed, open the Command mode, it would probably work just like vim! You would be able to just use other features, like, for example, if a single-tab mode would be implemented you could have a single-tab-toggle command, or if binary diffing were to be implemented, you would be able type diff foo.elf bar.elf or whatever else. This probably could be implemented with nushell's reedline crate.

@tulilirockz tulilirockz added the enhancement New feature or request label Oct 4, 2024
@orhun orhun added the effort: medium Something that can be done quickly with some effort label Oct 4, 2024
@orhun orhun removed their assignment Oct 4, 2024
@orhun
Copy link
Owner

orhun commented Oct 4, 2024

Hello!

Thanks for the idea, I usually implement this for my TUI projects (e.g. gpg-tui) but didn't think it would be useful for binsider. But I guess we should make it happen!

Commands are already available in command.rs and it should be straightforward to implement.

This probably could be implemented with nushell's reedline crate.

Not sure if that's needed, since the input mechanism should be simple (enable prompt on : and process the command when pressed enter).

@orhun orhun changed the title vim-like command mode Vim-like command mode Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: medium Something that can be done quickly with some effort enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants