Improve the built-in editor (input mode) #4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Make at least the minimal Emacs/Readline bindings work: C-a C-e C-b C-f Left Right Home End C-u C-k Delete
This requires us to keep the cursor's position. Beware that because of combining marks, iteration needs to be done in terms of graphemes, which is best approximated by considering zero-width wide characters a single unit with the first preceding non-zero-width wide character.
C-v should also be supported ("Add the next character that you type to the line verbatim."). The simplest way to do it is by setting a toggle and skipping
g_input_actions.find()
, forcingACTION_NONE
. We should also invokeraw()
and end it withhalfdelay(1)
in order to catch C-c, C-q.There is no increased need to handle the case of overflowing input lines. Keep it exactly as broken as it is now.
Improve the built-in editor (input mode)to Improve the built-in editor (input mode) #easyWith the last commits, the remaining basic bindings are: C-u C-k C-v
Improve the built-in editor (input mode) #easyto Improve the built-in editor (input mode)