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
@@ -248,7 +248,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>')
|
||||
@@ -258,7 +258,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>')
|
||||
@@ -845,7 +845,7 @@ cmd-delete (default <c-d> and <delete>)
|
||||
|
||||
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.
|
||||
@@ -874,7 +874,7 @@ cmd-delete-word (default <a-d>)
|
||||
|
||||
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.
|
||||
|
||||
@@ -1740,6 +1740,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
|
||||
|
||||
Reference in new issue
Block a user