update doc

cc #747
This commit is contained in:
Gokcehan committed 2022-02-05 00:08:31 +03:00
1 parent 26455dca09
commit 5d393da572
3 files changed
+51 -42

No files matched your search

+17 -14
View File
@@ -1322,10 +1322,11 @@ The full order of matchings from most specific to least are as follows:
1. Full Path (e.g. '~/.config/lf/lfrc')
2. Dir Name (e.g. '.git/') (only matches dirs with a trailing slash at the end)
3. File Type (e.g. 'ln') (except 'fi')
4. File Name (e.g. '.git*') (only matches files with a trailing star at the end)
5. Base Name (e.g. 'README.*')
6. Extension (e.g. '*.txt')
7. Default (i.e. 'fi')
4. File Name (e.g. 'README*')
5. File Name (e.g. '*README')
6. Base Name (e.g. 'README.*')
7. Extension (e.g. '*.txt')
8. Default (i.e. 'fi')
For example, given a regular text file '/path/to/README.txt', the following entries are checked in the configuration and the first one to match is used:
@@ -1333,9 +1334,10 @@ For example, given a regular text file '/path/to/README.txt', the following entr
2. (skipped since the file is not a directory)
3. (skipped since the file is of type 'fi')
4. 'README.txt*'
5. 'README.*'
6. '*.txt'
7. 'fi'
5. '*README.txt'
6. 'README.*'
7. '*.txt'
8. 'fi'
Given a regular directory '/path/to/example.d', the following entries are checked in the configuration and the first one to match is used:
@@ -1343,15 +1345,16 @@ Given a regular directory '/path/to/example.d', the following entries are checke
2. 'example.d/'
3. 'di'
4. 'example.d*'
5. 'example.*'
6. '*.d'
7. 'fi'
5. '*example.d'
6. 'example.*'
7. '*.d'
8. 'fi'
Note that glob-like patterns do not actually perform glob matching due to performance reasons.
For example, you can set a variable as follows:
export LF_COLORS="~/Documents=01;31:~/Downloads=01;31:~/.local/share=01;31:~/.config/lf/lfrc=31:.git/=01;32:.git=32:.gitignore=32:Makefile=32:README.*=33:*.txt=34:*.md=34:ln=01;36:di=01;34:ex=01;32:"
export LF_COLORS="~/Documents=01;31:~/Downloads=01;31:~/.local/share=01;31:~/.config/lf/lfrc=31:.git/=01;32:.git*=32:*.gitignore=32:*Makefile=32:README.*=33:*.txt=34:*.md=34:ln=01;36:di=01;34:ex=01;32:"
Having all entries on a single line can make it hard to read.
You may instead divide it to multiple lines in between double quotes by escaping newlines with backslashes as follows:
@@ -1362,9 +1365,9 @@ You may instead divide it to multiple lines in between double quotes by escaping
~/.local/share=01;31:\
~/.config/lf/lfrc=31:\
.git/=01;32:\
.git=32:\
.gitignore=32:\
Makefile=32:\
.git*=32:\
*.gitignore=32:\
*Makefile=32:\
README.*=33:\
*.txt=34:\
*.md=34:\
+17 -14
View File
@@ -1494,10 +1494,11 @@ follows:
1. Full Path (e.g. '~/.config/lf/lfrc')
2. Dir Name (e.g. '.git/') (only matches dirs with a trailing slash at the end)
3. File Type (e.g. 'ln') (except 'fi')
4. File Name (e.g. '.git*') (only matches files with a trailing star at the end)
5. Base Name (e.g. 'README.*')
6. Extension (e.g. '*.txt')
7. Default (i.e. 'fi')
4. File Name (e.g. 'README*')
5. File Name (e.g. '*README')
6. Base Name (e.g. 'README.*')
7. Extension (e.g. '*.txt')
8. Default (i.e. 'fi')
For example, given a regular text file '/path/to/README.txt', the following
entries are checked in the configuration and the first one to match is used:
@@ -1506,9 +1507,10 @@ entries are checked in the configuration and the first one to match is used:
2. (skipped since the file is not a directory)
3. (skipped since the file is of type 'fi')
4. 'README.txt*'
5. 'README.*'
6. '*.txt'
7. 'fi'
5. '*README.txt'
6. 'README.*'
7. '*.txt'
8. 'fi'
Given a regular directory '/path/to/example.d', the following entries are
checked in the configuration and the first one to match is used:
@@ -1517,16 +1519,17 @@ checked in the configuration and the first one to match is used:
2. 'example.d/'
3. 'di'
4. 'example.d*'
5. 'example.*'
6. '*.d'
7. 'fi'
5. '*example.d'
6. 'example.*'
7. '*.d'
8. 'fi'
Note that glob-like patterns do not actually perform glob matching due to
performance reasons.
For example, you can set a variable as follows:
export LF_COLORS="~/Documents=01;31:~/Downloads=01;31:~/.local/share=01;31:~/.config/lf/lfrc=31:.git/=01;32:.git=32:.gitignore=32:Makefile=32:README.*=33:*.txt=34:*.md=34:ln=01;36:di=01;34:ex=01;32:"
export LF_COLORS="~/Documents=01;31:~/Downloads=01;31:~/.local/share=01;31:~/.config/lf/lfrc=31:.git/=01;32:.git*=32:*.gitignore=32:*Makefile=32:README.*=33:*.txt=34:*.md=34:ln=01;36:di=01;34:ex=01;32:"
Having all entries on a single line can make it hard to read. You may
instead divide it to multiple lines in between double quotes by escaping
@@ -1538,9 +1541,9 @@ newlines with backslashes as follows:
~/.local/share=01;31:\
~/.config/lf/lfrc=31:\
.git/=01;32:\
.git=32:\
.gitignore=32:\
Makefile=32:\
.git*=32:\
*.gitignore=32:\
*Makefile=32:\
README.*=33:\
*.txt=34:\
*.md=34:\
+17 -14
View File
@@ -1453,10 +1453,11 @@ Note that, lf first tries matching file names and then falls back to file types.
1. Full Path (e.g. '~/.config/lf/lfrc')
2. Dir Name (e.g. '.git/') (only matches dirs with a trailing slash at the end)
3. File Type (e.g. 'ln') (except 'fi')
4. File Name (e.g. '.git*') (only matches files with a trailing star at the end)
5. Base Name (e.g. 'README.*')
6. Extension (e.g. '*.txt')
7. Default (i.e. 'fi')
4. File Name (e.g. 'README*')
5. File Name (e.g. '*README')
6. Base Name (e.g. 'README.*')
7. Extension (e.g. '*.txt')
8. Default (i.e. 'fi')
.EE
.PP
For example, given a regular text file '/path/to/README.txt', the following entries are checked in the configuration and the first one to match is used:
@@ -1466,9 +1467,10 @@ For example, given a regular text file '/path/to/README.txt', the following entr
2. (skipped since the file is not a directory)
3. (skipped since the file is of type 'fi')
4. 'README.txt*'
5. 'README.*'
6. '*.txt'
7. 'fi'
5. '*README.txt'
6. 'README.*'
7. '*.txt'
8. 'fi'
.EE
.PP
Given a regular directory '/path/to/example.d', the following entries are checked in the configuration and the first one to match is used:
@@ -1478,9 +1480,10 @@ Given a regular directory '/path/to/example.d', the following entries are checke
2. 'example.d/'
3. 'di'
4. 'example.d*'
5. 'example.*'
6. '*.d'
7. 'fi'
5. '*example.d'
6. 'example.*'
7. '*.d'
8. 'fi'
.EE
.PP
Note that glob-like patterns do not actually perform glob matching due to performance reasons.
@@ -1488,7 +1491,7 @@ Note that glob-like patterns do not actually perform glob matching due to perfor
For example, you can set a variable as follows:
.PP
.EX
export LF_COLORS="~/Documents=01;31:~/Downloads=01;31:~/.local/share=01;31:~/.config/lf/lfrc=31:.git/=01;32:.git=32:.gitignore=32:Makefile=32:README.*=33:*.txt=34:*.md=34:ln=01;36:di=01;34:ex=01;32:"
export LF_COLORS="~/Documents=01;31:~/Downloads=01;31:~/.local/share=01;31:~/.config/lf/lfrc=31:.git/=01;32:.git*=32:*.gitignore=32:*Makefile=32:README.*=33:*.txt=34:*.md=34:ln=01;36:di=01;34:ex=01;32:"
.EE
.PP
Having all entries on a single line can make it hard to read. You may instead divide it to multiple lines in between double quotes by escaping newlines with backslashes as follows:
@@ -1500,9 +1503,9 @@ Having all entries on a single line can make it hard to read. You may instead di
~/.local/share=01;31:\e
~/.config/lf/lfrc=31:\e
.git/=01;32:\e
.git=32:\e
.gitignore=32:\e
Makefile=32:\e
.git*=32:\e
*.gitignore=32:\e
*Makefile=32:\e
README.*=33:\e
*.txt=34:\e
*.md=34:\e