orhun / binsider

Analyze ELF binaries like a boss 😼🕵️‍♂️
https://binsider.dev/
Apache License 2.0
2.76k stars 61 forks source link

Vim-like command mode #64

Open tulilirockz opened 1 month ago

tulilirockz commented 1 month ago

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.

orhun commented 1 month ago

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