Skip to content

[feature] always return to insert mode after submitting #166

@devkev

Description

@devkev

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Description

First, thanks so much for ocv, it's a life-saver!

I'm very used to vi mode in bash, where after running a command, you always end up back in insert mode regardless of whether you submitted the previous command in insert or normal mode.

I really like the default ocv behaviour of newline in insert mode -> new line and in normal mode -> submit prompt, because it lets me more easily compose prompts while still easily sending them by pressing esc enter. However, I keep expecting to be back in insert mode at this point, and so I start typing away, which has unexpected consequences because ocv is actually in normal mode (from submitting the previous prompt). Setting vim_enter_submit makes ocv stay in insert mode (unless I hit enter while in normal mode), but that loses the convenient and natural way of getting newlines. So it would be really great if there was a configure toggle that controlled what happens to the mode after a prompt is submitted, eg. default to "no_change" (current behaviour), or "insert" or "normal".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions