Add tags (#791)
* initial tags implementation * add tag to complete.go * add gTagsPath to os_windows.go * change behaviour to match other commands * add tag-toggle to complete.go * add tag and tag-toggle to docs * address feedback about tags
This commit is contained in:
1 parent
2f9d840eda
commit
5a5628d667
11 files changed
+440
-205
No files matched your search
@@ -71,6 +71,8 @@ The following commands are provided by lf:
|
||||
mark-save (modal) (default 'm')
|
||||
mark-load (modal) (default "'")
|
||||
mark-remove (modal) (default `"`)
|
||||
tag-toggle (default t)
|
||||
tag
|
||||
|
||||
The following command line commands are provided by lf:
|
||||
|
||||
@@ -149,6 +151,7 @@ The following options can be used to customize the behavior of lf:
|
||||
waitmsg string (default 'Press any key to continue')
|
||||
wrapscan bool (default on)
|
||||
wrapscroll bool (default off)
|
||||
tagfmt string (default "\033[31m%s\033[0m")
|
||||
|
||||
The following environment variables are exported for shell commands:
|
||||
|
||||
@@ -233,6 +236,11 @@ History file should be located at:
|
||||
unix ~/.local/share/lf/history
|
||||
windows C:\Users\<user>\AppData\Local\lf\history
|
||||
|
||||
Tags file should be located at:
|
||||
|
||||
unix ~/.local/share/lf/tags
|
||||
windows C:\Users\<user>\AppData\Local\lf\tags
|
||||
|
||||
You can configure the default values of following variables to change these
|
||||
locations:
|
||||
|
||||
@@ -457,6 +465,14 @@ A special bookmark "'" holds the previous directory after a 'mark-load', 'cd', o
|
||||
|
||||
Remove a bookmark assigned to the given key.
|
||||
|
||||
tag
|
||||
|
||||
Tag a file with a single width character given in the argument.
|
||||
|
||||
tag-toggle (modal) (default 't')
|
||||
|
||||
Tag a file with a single width character given in the argument if the file is untagged, otherwise remove the tag.
|
||||
|
||||
Command Line Commands
|
||||
|
||||
This section shows information about command line commands.
|
||||
@@ -782,6 +798,10 @@ Searching can wrap around the file list.
|
||||
|
||||
Scrolling can wrap around the file list.
|
||||
|
||||
tagfmt string (default "\033[31m%s\033[0m")
|
||||
|
||||
Format string of the tags.
|
||||
|
||||
Environment Variables
|
||||
|
||||
The following variables are exported for shell commands:
|
||||
|
||||
Reference in new issue
Block a user