fix: advance cursor during cmd-transpose (#2413)

* fix: advance cursor during `cmd-transpose`

* Update `CHANGELOG.md`
This commit is contained in:
Joe Lim authored and GitHub committed 2026-03-04 23:37:37 +11:00
1 parent 1afe4ff441
commit 0bbeae73df
5 files changed
+47 -11

No files matched your search

+11 -3
View File
@@ -1,6 +1,6 @@
.\" Automatically generated by Pandoc 3.7.0.2
.\"
.TH "LF" "1" "2026\-02\-28" "r41" "DOCUMENTATION"
.TH "LF" "1" "2026\-03\-04" "r41" "DOCUMENTATION"
.SH NAME
lf \- terminal file manager
.SH SYNOPSIS
@@ -783,8 +783,16 @@ Delete everything up to the beginning/end of the line.
Delete the previous Unix word.
.SS cmd\-yank (default \f[CR]<c\-y>\f[R])
Paste the buffer content containing the last deleted item.
.SS cmd\-transpose (default \f[CR]<c\-t>\f[R]), cmd\-transpose\-word (default \f[CR]<a\-t>\f[R])
Transpose the positions of the last two characters/words.
.SS cmd\-transpose (default \f[CR]<c\-t>\f[R])
Swap the characters before and after the cursor, then move the cursor
forward.
If there is no character after the cursor, swap the previous two
characters instead.
.SS cmd\-transpose\-word (default \f[CR]<a\-t>\f[R])
Swap the words before and after the cursor, then move the cursor
forward.
If there is no word after the cursor, swap the previous two words
instead.
.SS cmd\-word (default \f[CR]<a\-f>\f[R]), cmd\-word\-back (default \f[CR]<a\-b>\f[R])
Move the cursor by one word in the forward/backward direction.
.SS cmd\-delete\-word (default \f[CR]<a\-d>\f[R])