chore!: change to use v3 of Tcell (#2286)
* Remove SGR 8 * Remove `<backspace2>` * Migrate to v3 of Tcell * Refactor key handling functionality * Bump Tcell version * Replace `SetContent` API with `Put` API * bump dependencies * Use new color package * Fix cursor position for grapheme clusters * Some editing fixes to support grapheme clusters * Ignore carriage return when printing * Move grapheme cluster handling into misc.go * Fix length of filenames containing emoji * Use slices.Concat * Use `string` instead of `[]rune` for `win.print` * Add note about modifier limitations * Update `CHANGELOG.md`
This commit is contained in:
1 parent
a446855e76
commit
6ec60cf9d8
21 files changed
+558
-463
No files matched your search
@@ -236,7 +236,7 @@ The following Command-line mode commands are provided by lf:
|
||||
cmd-home (default '<c-a>' and '<home>')
|
||||
cmd-end (default '<c-e>' and '<end>')
|
||||
cmd-delete (default '<c-d>' and '<delete>')
|
||||
cmd-delete-back (default '<backspace>' and '<backspace2>')
|
||||
cmd-delete-back (default '<backspace>')
|
||||
cmd-delete-home (default '<c-u>')
|
||||
cmd-delete-end (default '<c-k>')
|
||||
cmd-delete-unix-word (default '<c-w>')
|
||||
@@ -246,7 +246,7 @@ The following Command-line mode commands are provided by lf:
|
||||
cmd-word (default '<a-f>')
|
||||
cmd-word-back (default '<a-b>')
|
||||
cmd-delete-word (default '<a-d>')
|
||||
cmd-delete-word-back (default '<a-backspace>' and '<a-backspace2>')
|
||||
cmd-delete-word-back (default '<a-backspace>')
|
||||
cmd-capitalize-word (default '<a-c>')
|
||||
cmd-uppercase-word (default '<a-u>')
|
||||
cmd-lowercase-word (default '<a-l>')
|
||||
@@ -794,7 +794,7 @@ Move the cursor to the beginning/end of the line.
|
||||
|
||||
Delete the next character.
|
||||
|
||||
## cmd-delete-back (default `<backspace>` and `<backspace2>`)
|
||||
## cmd-delete-back (default `<backspace>`)
|
||||
|
||||
Delete the previous character.
|
||||
When at the beginning of a prompt, returns either to Normal mode or to `:` mode.
|
||||
@@ -823,7 +823,7 @@ Move the cursor by one word in the forward/backward direction.
|
||||
|
||||
Delete the next word in the forward direction.
|
||||
|
||||
## cmd-delete-word-back (default `<a-backspace>` and `<a-backspace2>`)
|
||||
## cmd-delete-word-back (default `<a-backspace>`)
|
||||
|
||||
Delete the previous word in the backward direction.
|
||||
|
||||
@@ -1584,6 +1584,8 @@ It is possible to combine special keys with modifiers:
|
||||
|
||||
map <a-enter> down
|
||||
|
||||
Combining multiple modifiers (e.g. `Ctrl+Shift+Space`) is not supported.
|
||||
|
||||
WARNING: Some key combinations will likely be intercepted by your OS, window manager, or terminal.
|
||||
Other key combinations cannot be recognized by lf due to the way terminals work (e.g. `Ctrl+h` combination sends a backspace key instead).
|
||||
The easiest way to find out the name of a key combination and whether it will work on your system is to press the key while lf is running and read the name from the `unknown mapping` error.
|
||||
|
||||
Reference in new issue
Block a user