update doc

This commit is contained in:
Gokcehan 2020-07-26 00:29:50 +03:00
parent d2414f7580
commit 2b445aa205
3 changed files with 11 additions and 16 deletions

12
doc.go
View File

@ -63,8 +63,7 @@ The following commands are provided by lf without default keybindings:
echoerr same as echomsg but red color echoerr same as echomsg but red color
cd change working directory to the argument cd change working directory to the argument
select change current file selection to the argument select change current file selection to the argument
toggle toggle the selection of the current file or, toggle toggle the selection of the current file or its arguments
when passed arguments, of its arguments
glob-select select files that match the given glob glob-select select files that match the given glob
glob-unselect unselect files that match the given glob glob-unselect unselect files that match the given glob
source read the configuration file in the argument source read the configuration file in the argument
@ -538,11 +537,10 @@ in GNU cp is added to the new files or directories. Only file modes are
preserved and all other attributes are ignored including ownership, timestamps, preserved and all other attributes are ignored including ownership, timestamps,
context, links, and xattr. Special files such as character and block devices, context, links, and xattr. Special files such as character and block devices,
named pipes, and sockets are skipped and links are followed. Moving is named pipes, and sockets are skipped and links are followed. Moving is
performed using the rename operation of the underlying OS. This can fail to performed using the rename operation of the underlying OS. For cross-device
move files between different partitions when it needs to copy files. For these moving, lf falls back to copying and then deletes the original files if there
cases, users are expected to explicitly copy files and then delete the old ones are no errors. Operation errors are shown in the message line as well as the
manually. Operation errors are shown in the message line as well as the log log file and they do not preemptively finish the corresponding file operation.
file and they do not preemptively finish the corresponding file operation.
File operations can be performed on the current selected file or alternatively File operations can be performed on the current selected file or alternatively
on multiple files by selecting them first. When you 'copy' a file, lf doesn't on multiple files by selecting them first. When you 'copy' a file, lf doesn't

View File

@ -66,8 +66,7 @@ The following commands are provided by lf without default keybindings:
echoerr same as echomsg but red color echoerr same as echomsg but red color
cd change working directory to the argument cd change working directory to the argument
select change current file selection to the argument select change current file selection to the argument
toggle toggle the selection of the current file or, toggle toggle the selection of the current file or its arguments
when passed arguments, of its arguments
glob-select select files that match the given glob glob-select select files that match the given glob
glob-unselect unselect files that match the given glob glob-unselect unselect files that match the given glob
source read the configuration file in the argument source read the configuration file in the argument
@ -561,10 +560,9 @@ option in GNU cp is added to the new files or directories. Only file modes
are preserved and all other attributes are ignored including ownership, are preserved and all other attributes are ignored including ownership,
timestamps, context, links, and xattr. Special files such as character and timestamps, context, links, and xattr. Special files such as character and
block devices, named pipes, and sockets are skipped and links are followed. block devices, named pipes, and sockets are skipped and links are followed.
Moving is performed using the rename operation of the underlying OS. This Moving is performed using the rename operation of the underlying OS. For
can fail to move files between different partitions when it needs to copy cross-device moving, lf falls back to copying and then deletes the original
files. For these cases, users are expected to explicitly copy files and then files if there are no errors. Operation errors are shown in the message line
delete the old ones manually. Operation errors are shown in the message line
as well as the log file and they do not preemptively finish the as well as the log file and they do not preemptively finish the
corresponding file operation. corresponding file operation.

5
lf.1
View File

@ -75,8 +75,7 @@ The following commands are provided by lf without default keybindings:
echoerr same as echomsg but red color echoerr same as echomsg but red color
cd change working directory to the argument cd change working directory to the argument
select change current file selection to the argument select change current file selection to the argument
toggle toggle the selection of the current file or, toggle toggle the selection of the current file or its arguments
when passed arguments, of its arguments
glob-select select files that match the given glob glob-select select files that match the given glob
glob-unselect unselect files that match the given glob glob-unselect unselect files that match the given glob
source read the configuration file in the argument source read the configuration file in the argument
@ -542,7 +541,7 @@ There is a 'quit' command to close client connections and quit the server:
.PP .PP
Lastly, there is a 'conn' command to connect the server as a client. This should not be needed for users. Lastly, there is a 'conn' command to connect the server as a client. This should not be needed for users.
.SH FILE OPERATIONS .SH FILE OPERATIONS
lf uses its own builtin copy and move operations by default. These are implemented as asynchronous operations and progress is shown in the bottom ruler. These commands do not overwrite existing files or directories with the same name. Instead, a suffix that is compatible with '--backup=numbered' option in GNU cp is added to the new files or directories. Only file modes are preserved and all other attributes are ignored including ownership, timestamps, context, links, and xattr. Special files such as character and block devices, named pipes, and sockets are skipped and links are followed. Moving is performed using the rename operation of the underlying OS. This can fail to move files between different partitions when it needs to copy files. For these cases, users are expected to explicitly copy files and then delete the old ones manually. Operation errors are shown in the message line as well as the log file and they do not preemptively finish the corresponding file operation. lf uses its own builtin copy and move operations by default. These are implemented as asynchronous operations and progress is shown in the bottom ruler. These commands do not overwrite existing files or directories with the same name. Instead, a suffix that is compatible with '--backup=numbered' option in GNU cp is added to the new files or directories. Only file modes are preserved and all other attributes are ignored including ownership, timestamps, context, links, and xattr. Special files such as character and block devices, named pipes, and sockets are skipped and links are followed. Moving is performed using the rename operation of the underlying OS. For cross-device moving, lf falls back to copying and then deletes the original files if there are no errors. Operation errors are shown in the message line as well as the log file and they do not preemptively finish the corresponding file operation.
.PP .PP
File operations can be performed on the current selected file or alternatively on multiple files by selecting them first. When you 'copy' a file, lf doesn't actually copy the file on the disk, but only records its name to memory. The actual file copying takes place when you 'paste'. Similarly 'paste' after a 'cut' operation moves the file. File operations can be performed on the current selected file or alternatively on multiple files by selecting them first. When you 'copy' a file, lf doesn't actually copy the file on the disk, but only records its name to memory. The actual file copying takes place when you 'paste'. Similarly 'paste' after a 'cut' operation moves the file.
.PP .PP