Open swedneck opened 4 years ago
I have this issue too. It seems to stem from running this function at every keystroke:
https://github.com/t184256/xontrib-prompt-vi-mode/blob/master/xontrib/prompt_vi_mode.xsh#L17
mode = state.input_mode
I poked at it a bit, but couldn't find a way to speed this up.
On the bright side, if you're not using {vi_mode}
or {vi_mode_not_insert}
in your $PROMPT
variable, enabling vi key bindings in xonsh is a simple matter of adding the following line to your ~/.xonshrc
:
$VI_MODE = True
using prompt-vi-mode results in input becoming excruciatingly slow, to the point that it takes multiple seconds just to write a single word.