-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Feature Request] Vim mode in debugger interface #3384
Comments
This was brought up before #2515 |
This would be great, but I don't think delve uses Another alternative would be to write a custom client. |
I was taking a look at liner which is the library used by Like @aarzilli already mentioned, there's an open issue for this. I took a look at the code and it seems implementing a Vi/Vim mode in So, I came across this library, which it seems to be a re-implementation of @aarzilli Have you considered using a different "liner" library? |
I just remembered you guys at Delve use a mailing list, I'll try using |
We need ^C and ^Z to deliver signals in a specific way, these aren't tested automatically because we don't know how to write automated tests for it so it would have to be tested manually on every operating system we support (windows, macOS, linux and freebsd) and bugs there can be subtle. |
PS the library you are proposing has no tagged versions, a single importer and no activity for the past 3 years. |
Yes, I know. But I looked at the code at it seems to be well structured compared to To be fair, |
Oh, and BTW. The library actually has tagged versions. I think they don't show up in https://pkg.go.dev/ because of the Go version present in |
Well, I asked some questions to the Murex developer and it seems https://github.com/lmorg/readline it's not actually being maintained. Not outside Murex anyway. I found another promising "readline" library which is actively maintained: https://github.com/reeflective/readline. It supports reading form I did a PoC using that one and some (very) basic testing and it seems to work. |
It would be great if fingers used to Vim-like navigation could command the delve debugger TUI e.g. like
<esc>kki
which would go up to lines in the history and enter insert mode again.I'm used to this with other repl/debuggers like iPython, IRB, ghci etc.
Is delve using readline for the debugger TUI input? Then this would come for free when having
set editing-mode vi
in~/.inputrc
(did not work though so I assume not).The text was updated successfully, but these errors were encountered: