sakhnik / nvim-gdb

Neovim thin wrapper for GDB, LLDB, PDB/PDB++ and BashDB
723 stars 39 forks source link

Enter insert mode when entering the debugger terminal #176

Closed davxy closed 2 years ago

davxy commented 2 years ago

When moving to the terminal window is better to enter insert mode to immediately start writing stuff on the debugger prompt.

sakhnik commented 2 years ago

Thanks! This fix changes the UX. I agree with it, but now the tests are to be adjusted.

sakhnik commented 2 years ago

Well, I've looked at the tests. And now I'm not so sure that this change would be as simple as seems. For example, there are scenarios when I specifically press <esc> in the terminal (for example to examine the past history), and continue using the keymaps or commands. Automatical returning to the insert mode may be perceived as overriding the user's intention.