diff --git a/CHANGELOG.md b/CHANGELOG.md index 0141e779..e12f8b09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -228,7 +228,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ### Added - Three new commands `high`, `middle`, and `low` are added to move the current selection relative to the screen (#824). -- Backspace on empty prompt now switches to normal mode (#836). +- Backspace on empty prompt now switches to Normal mode (#836). - A new `history` option is now added to be able to disable history (#866). - A new special expansion `%S` spacer is added for `promptfmt` to be able to right align parts (#867). - A new command-line command `cmd-menu-accept` is now added to accept the currently selected match (#934). @@ -255,7 +255,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - Broken symlinks should now be working properly in completion (#934). - Files with stat errors should now be skipped properly in completion (#934). - Empty search with `incsearch` option should now be handled properly (#944). -- History position is now also reset when leaving command line (#953). +- History position is now also reset when leaving the command line (#953). - Mouse drag events are now ignored properly to avoid command repetition (#962). - Environment variables `HOME` and `USER` should now be used as fallback for locations on some systems (#972). - File information is now displayed in the status line at first launch when there are no errors in the configuration file (#994). @@ -574,7 +574,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ### Fixed -- The `cmd-history-next` command now remains in command mode after the last item (#168). +- The `cmd-history-next` command now remains in Command-line mode after the last item (#168). - The `select` command does not change directories anymore when used on a directory. - The working directory is now changed to the first argument when it is a directory. - The `ratios` option is now checked before `preview` to avoid crashes (#174). @@ -616,7 +616,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ### Changed -- The ability to map normal commands in `cmap` is removed. This has caused a number of bugs in the previous release. A different mechanism for a similar functionality is planned. +- The ability to map Normal mode commands in `cmap` is removed. This has caused a number of bugs in the previous release. A different mechanism for a similar functionality is planned. ### Added @@ -627,7 +627,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ### Fixed - Input and output in `shell-pipe` commands were broken with the `cmap` patch. This should now work as before. -- Some `push` commands were broken with the `cmap` patch and sometimes ignored command line mode for some keys to execute as in normal mode. This should now work as before. +- Some `push` commands were broken with the `cmap` patch and sometimes ignored Command-line mode for some keys to execute as in Normal mode. This should now work as before. - `read` and shell commands should now also work when typed manually (e.g. typing `:shell` should switch the prefix to `$`). - Configuration files are now read after initialization. - Background colors are removed from defaults to avoid confusion with selection highlighting. @@ -643,7 +643,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), - A new `incsearch` option is added to enable incremental matching while searching. - Two new options `ignoredia` and `smartdia` are added to ignore diacritics in Latin letters for `search` and `find` (#118). - A new builtin `delete` command is added for file deletion (#121). This command is not assigned to a key by default to prevent accidental deletions. In the future, a prompting mechanism may be added to this command for more safety. -- Normal mode commands can now be used in `cmap` which can be used to immediately finish command mode and execute a normal command afterwards. +- Normal mode commands can now be used in `cmap` which can be used to immediately finish Command-line mode and execute a Normal mode command afterwards. - A new `fish` completion script is added to the `etc` folder (#131). - Two new options `number` and `relativenumber` are added to enable line numbers in directories (#133). @@ -784,7 +784,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ### Fixed -- Running `cmd-hist-prev` in normal mode now always starts with the last item to avoid confusion. Running `cmd-hist-next` in normal mode now has no effect for consistency. +- Running `cmd-hist-prev` in Normal mode now always starts with the last item to avoid confusion. Running `cmd-hist-next` in Normal mode now has no effect for consistency. ## [r1](https://github.com/gokcehan/lf/releases/tag/r1) diff --git a/doc.md b/doc.md index f19b6054..6f854fbc 100644 --- a/doc.md +++ b/doc.md @@ -105,13 +105,13 @@ The following commands are provided by lf: addcustominfo tty-write -The following visual mode commands are provided by lf: +The following Visual mode commands are provided by lf: visual-accept (default 'V') visual-discard (default '') visual-change (default 'o') -The following command line commands are provided by lf: +The following Command-line mode commands are provided by lf: cmd-escape (default '') cmd-complete (default '') @@ -414,20 +414,20 @@ Toggle the selection of the current file or files given as arguments. ## visual (modal) (default 'V') -Switch to visual mode. -If already in visual mode, discard visual selection and stay in visual mode. +Switch to Visual mode. +If already in Visual mode, discard the visual selection and stay in Visual mode. ## visual-accept (modal) (default 'V') -Add the visual selection to the selection list, quit visual mode and return to normal mode. +Add the visual selection to the selection list, quit Visual mode and return to Normal mode. ## visual-discard (modal) (default '') -Discard the visual selection, quit visual mode and return to normal mode. +Discard the visual selection, quit Visual mode and return to Normal mode. ## visual-change (default 'o') -Go to the other end of the current visual mode selection. +Go to the other end of the current Visual mode selection. ## invert (default `v`) @@ -603,7 +603,7 @@ Using `tty-write` is preferred over directly writing to `/dev/tty` because the l # COMMAND LINE COMMANDS -The prompt character specifies which of the several command-line modes you are in. +The prompt character specifies which of the several Command-line modes you are in. For example, the `read` command takes you to the `:` mode. When the cursor is at the first character in `:` mode, pressing one of the keys `!`, `$`, `%`, or `&` takes you to the corresponding mode. @@ -614,7 +614,7 @@ A character refers to a Unicode code point, a word consists of letters and digit ## cmd-escape (default ``) -Quit command line mode and return to normal mode. +Quit Command-line mode and return to Normal mode. ## cmd-complete (default ``) @@ -636,7 +636,7 @@ Execute the current line. ## cmd-interrupt (default ``) -Interrupt the current shell-pipe command and return to the normal mode. +Interrupt the current shell-pipe command and return to the Normal mode. ## cmd-history-next (default `` and ``), cmd-history-prev (default `` and ``) @@ -657,7 +657,7 @@ Delete the next character. ## cmd-delete-back (default `` and ``) Delete the previous character. -When at the beginning of a prompt, returns either to normal mode or to `:` mode. +When at the beginning of a prompt, returns either to Normal mode or to `:` mode. ## cmd-delete-home (default ``), cmd-delete-end (default ``) @@ -996,7 +996,7 @@ Currently supported sort types are `natural`, `name`, `size`, `time`, `ctime`, ` ## statfmt (string) (default `\033[36m%p\033[0m| %c| %u| %g| %S| %t| -> %l`) Format string of the file info shown in the bottom left corner. -Special expansions are provided, `%p` as the file permissions, `%c` as the link count, `%u` as the user, `%g` as the group, `%s` as the file size, `%S` as the file size but with a fixed width of four characters (left-padded with spaces), `%t` as the last modified time, `%l` as the link target, `%m` as the current mode and `%M` as the current mode but also shown in normal mode (displaying NORMAL instead of a blank string). +Special expansions are provided, `%p` as the file permissions, `%c` as the link count, `%u` as the user, `%g` as the group, `%s` as the file size, `%S` as the file size but with a fixed width of four characters (left-padded with spaces), `%t` as the last modified time, `%l` as the link target, `%m` as the current mode and `%M` as the current mode but also shown in Normal mode (displaying `NORMAL` instead of a blank string). The `|` character splits the format string into sections. Any section containing a failed expansion (result is a blank string) is discarded and not shown. ## tabstop (int) (default 8) @@ -1216,7 +1216,7 @@ The same evaluator is used for the command line and the configuration file for r The difference is that prefixes are not necessary in the command line. Instead, different modes are provided to read corresponding commands. These modes are mapped to the prefix keys above by default. -Visual mode mappings are defined the same way normal mode mappings are defined. +Visual mode mappings are defined the same way Normal mode mappings are defined. # SYNTAX @@ -1253,16 +1253,16 @@ Adding a trailing path separator (i.e. `/` for Unix and `\` for Windows) sets th setlocal /foo/bar hidden # for only '/foo/bar' directory setlocal /foo/bar/ hidden # for '/foo/bar' and its subdirectories (e.g. '/foo/bar/baz') -Command `map` is used to bind a key in normal and visual mode to a command which can be a builtin command, custom command, or shell command: +Command `map` is used to bind a key in Normal and Visual mode to a command which can be a builtin command, custom command, or shell command: map gh cd ~ # builtin command map D trash # custom command map i $less $f # shell command map U !du -csh * # waiting shell command -Command `nmap` does the same but for normal mode only. +Command `nmap` does the same but for Normal mode only. -Command `vmap` does the same but for visual mode only. +Command `vmap` does the same but for Visual mode only. Overview of which map command works in which mode: diff --git a/doc.txt b/doc.txt index 741835d3..6dfbe637 100644 --- a/doc.txt +++ b/doc.txt @@ -95,13 +95,13 @@ The following commands are provided by lf: addcustominfo tty-write -The following visual mode commands are provided by lf: +The following Visual mode commands are provided by lf: visual-accept (default 'V') visual-discard (default '') visual-change (default 'o') -The following command line commands are provided by lf: +The following Command-line mode commands are provided by lf: cmd-escape (default '') cmd-complete (default '') @@ -413,22 +413,22 @@ Toggle the selection of the current file or files given as arguments. visual (modal) (default 'V') -Switch to visual mode. If already in visual mode, discard visual -selection and stay in visual mode. +Switch to Visual mode. If already in Visual mode, discard the visual +selection and stay in Visual mode. visual-accept (modal) (default 'V') -Add the visual selection to the selection list, quit visual mode and -return to normal mode. +Add the visual selection to the selection list, quit Visual mode and +return to Normal mode. visual-discard (modal) (default '') -Discard the visual selection, quit visual mode and return to normal +Discard the visual selection, quit Visual mode and return to Normal mode. visual-change (default 'o') -Go to the other end of the current visual mode selection. +Go to the other end of the current Visual mode selection. invert (default v) @@ -622,7 +622,7 @@ drawing the UI. COMMAND LINE COMMANDS -The prompt character specifies which of the several command-line modes +The prompt character specifies which of the several Command-line modes you are in. For example, the read command takes you to the : mode. When the cursor is at the first character in : mode, pressing one of the @@ -636,7 +636,7 @@ characters. cmd-escape (default ) -Quit command line mode and return to normal mode. +Quit Command-line mode and return to Normal mode. cmd-complete (default ) @@ -661,7 +661,7 @@ Execute the current line. cmd-interrupt (default ) -Interrupt the current shell-pipe command and return to the normal mode. +Interrupt the current shell-pipe command and return to the Normal mode. cmd-history-next (default and ), cmd-history-prev (default and ) @@ -682,7 +682,7 @@ Delete the next character. cmd-delete-back (default and ) Delete the previous character. When at the beginning of a prompt, -returns either to normal mode or to : mode. +returns either to Normal mode or to : mode. cmd-delete-home (default ), cmd-delete-end (default ) @@ -1086,7 +1086,7 @@ expansions are provided, %p as the file permissions, %c as the link count, %u as the user, %g as the group, %s as the file size, %S as the file size but with a fixed width of four characters (left-padded with spaces), %t as the last modified time, %l as the link target, %m as the -current mode and %M as the current mode but also shown in normal mode +current mode and %M as the current mode but also shown in Normal mode (displaying NORMAL instead of a blank string). The | character splits the format string into sections. Any section containing a failed expansion (result is a blank string) is discarded and not shown. @@ -1340,7 +1340,7 @@ The same evaluator is used for the command line and the configuration file for reading shell commands. The difference is that prefixes are not necessary in the command line. Instead, different modes are provided to read corresponding commands. These modes are mapped to the prefix keys -above by default. Visual mode mappings are defined the same way normal +above by default. Visual mode mappings are defined the same way Normal mode mappings are defined. SYNTAX @@ -1382,7 +1382,7 @@ option for the given directory along with its subdirectories: setlocal /foo/bar hidden # for only '/foo/bar' directory setlocal /foo/bar/ hidden # for '/foo/bar' and its subdirectories (e.g. '/foo/bar/baz') -Command map is used to bind a key in normal and visual mode to a command +Command map is used to bind a key in Normal and Visual mode to a command which can be a builtin command, custom command, or shell command: map gh cd ~ # builtin command @@ -1390,9 +1390,9 @@ which can be a builtin command, custom command, or shell command: map i $less $f # shell command map U !du -csh * # waiting shell command -Command nmap does the same but for normal mode only. +Command nmap does the same but for Normal mode only. -Command vmap does the same but for visual mode only. +Command vmap does the same but for Visual mode only. Overview of which map command works in which mode: diff --git a/lf.1 b/lf.1 index d2083121..7700f1fc 100644 --- a/lf.1 +++ b/lf.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 3.7.0.2 .\" -.TH "LF" "1" "2025\-07\-03" "" "DOCUMENTATION" +.TH "LF" "1" "2025\-07\-05" "" "DOCUMENTATION" .SH NAME lf \- terminal file manager .SH SYNOPSIS @@ -105,7 +105,7 @@ addcustominfo tty\-write .EE .PP -The following visual mode commands are provided by lf: +The following Visual mode commands are provided by lf: .IP .EX visual\-accept (default \(aqV\(aq) @@ -113,7 +113,7 @@ visual\-discard (default \(aq\(aq) visual\-change (default \(aqo\(aq) .EE .PP -The following command line commands are provided by lf: +The following Command\-line mode commands are provided by lf: .IP .EX cmd\-escape (default \(aq\(aq) @@ -435,17 +435,17 @@ Move the current file selection to the high/middle/low of the screen. .SS toggle Toggle the selection of the current file or files given as arguments. .SS visual (modal) (default \(aqV\(aq) -Switch to visual mode. -If already in visual mode, discard visual selection and stay in visual -mode. +Switch to Visual mode. +If already in Visual mode, discard the visual selection and stay in +Visual mode. .SS visual\-accept (modal) (default \(aqV\(aq) -Add the visual selection to the selection list, quit visual mode and -return to normal mode. +Add the visual selection to the selection list, quit Visual mode and +return to Normal mode. .SS visual\-discard (modal) (default \(aq\(aq) -Discard the visual selection, quit visual mode and return to normal +Discard the visual selection, quit Visual mode and return to Normal mode. .SS visual\-change (default \(aqo\(aq) -Go to the other end of the current visual mode selection. +Go to the other end of the current Visual mode selection. .SS invert (default \f[CR]v\f[R]) Reverse the selection of all files in the current directory (i.e. \f[CR]toggle\f[R] all files). @@ -577,7 +577,7 @@ Using \f[CR]tty\-write\f[R] is preferred over directly writing to \f[CR]/dev/tty\f[R] because the latter is not synchronized and can interfere with drawing the UI. .SH COMMAND LINE COMMANDS -The prompt character specifies which of the several command\-line modes +The prompt character specifies which of the several Command\-line modes you are in. For example, the \f[CR]read\f[R] command takes you to the \f[CR]:\f[R] mode. @@ -593,7 +593,7 @@ keybindings. A character refers to a Unicode code point, a word consists of letters and digits, and a unix word consists of any non\-blank characters. .SS cmd\-escape (default \f[CR]\f[R]) -Quit command line mode and return to normal mode. +Quit Command\-line mode and return to Normal mode. .SS cmd\-complete (default \f[CR]\f[R]) Autocomplete the current word. .SS cmd\-menu\-complete, cmd\-menu\-complete\-back @@ -608,7 +608,7 @@ menu. .SS cmd\-enter (default \f[CR]\f[R] and \f[CR]\f[R]) Execute the current line. .SS cmd\-interrupt (default \f[CR]\f[R]) -Interrupt the current shell\-pipe command and return to the normal mode. +Interrupt the current shell\-pipe command and return to the Normal mode. .SS cmd\-history\-next (default \f[CR]\f[R] and \f[CR]\f[R]), cmd\-history\-prev (default \f[CR]\f[R] and \f[CR]\f[R]) Go to the next/previous item in the history. .SS cmd\-left (default \f[CR]\f[R] and \f[CR]\f[R]), cmd\-right (default \f[CR]\f[R] and \f[CR]\f[R]) @@ -619,7 +619,7 @@ Move the cursor to the beginning/end of the line. Delete the next character. .SS cmd\-delete\-back (default \f[CR]\f[R] and \f[CR]\f[R]) Delete the previous character. -When at the beginning of a prompt, returns either to normal mode or to +When at the beginning of a prompt, returns either to Normal mode or to \f[CR]:\f[R] mode. .SS cmd\-delete\-home (default \f[CR]\f[R]), cmd\-delete\-end (default \f[CR]\f[R]) Delete everything up to the beginning/end of the line. @@ -947,8 +947,8 @@ Special expansions are provided, \f[CR]%p\f[R] as the file permissions, \f[CR]%S\f[R] as the file size but with a fixed width of four characters (left\-padded with spaces), \f[CR]%t\f[R] as the last modified time, \f[CR]%l\f[R] as the link target, \f[CR]%m\f[R] as the current mode and -\f[CR]%M\f[R] as the current mode but also shown in normal mode -(displaying NORMAL instead of a blank string). +\f[CR]%M\f[R] as the current mode but also shown in Normal mode +(displaying \f[CR]NORMAL\f[R] instead of a blank string). The \f[CR]|\f[R] character splits the format string into sections. Any section containing a failed expansion (result is a blank string) is discarded and not shown. @@ -1139,7 +1139,7 @@ file for reading shell commands. The difference is that prefixes are not necessary in the command line. Instead, different modes are provided to read corresponding commands. These modes are mapped to the prefix keys above by default. -Visual mode mappings are defined the same way normal mode mappings are +Visual mode mappings are defined the same way Normal mode mappings are defined. .SH SYNTAX Characters from \f[CR]#\f[R] to newline are comments and ignored: @@ -1190,7 +1190,7 @@ setlocal /foo/bar hidden # for only \(aq/foo/bar\(aq directory setlocal /foo/bar/ hidden # for \(aq/foo/bar\(aq and its subdirectories (e.g. \(aq/foo/bar/baz\(aq) .EE .PP -Command \f[CR]map\f[R] is used to bind a key in normal and visual mode +Command \f[CR]map\f[R] is used to bind a key in Normal and Visual mode to a command which can be a builtin command, custom command, or shell command: .IP @@ -1201,9 +1201,9 @@ map i $less $f # shell command map U !du \-csh * # waiting shell command .EE .PP -Command \f[CR]nmap\f[R] does the same but for normal mode only. +Command \f[CR]nmap\f[R] does the same but for Normal mode only. .PP -Command \f[CR]vmap\f[R] does the same but for visual mode only. +Command \f[CR]vmap\f[R] does the same but for Visual mode only. .PP Overview of which map command works in which mode: .IP