home: pager: add readline mappings
Found a nice tip to emulate deletion to start/end of line.
This commit is contained in:
parent
b1169858cd
commit
3b7a119151
1 changed files with 16 additions and 0 deletions
|
|
@ -16,6 +16,22 @@ in
|
||||||
#command
|
#command
|
||||||
# Quit without clearing the screen on `Q`
|
# Quit without clearing the screen on `Q`
|
||||||
Q toggle-option -!^Predraw-on-quit\nq
|
Q toggle-option -!^Predraw-on-quit\nq
|
||||||
|
|
||||||
|
#line-edit
|
||||||
|
# readline-style command editing
|
||||||
|
^p up
|
||||||
|
^n down
|
||||||
|
^b left
|
||||||
|
^f right
|
||||||
|
^a home
|
||||||
|
^e end
|
||||||
|
\eb word-left
|
||||||
|
\ef word-right
|
||||||
|
^w word-backspace
|
||||||
|
\ed word-delete
|
||||||
|
# Simulate delete to start/end of line by repeating word-wise actions
|
||||||
|
^u word-backspace ${lib.strings.replicate 100 "^w"}
|
||||||
|
^k word-delete ${lib.strings.replicate 100 "\\ed"}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue