1 parent
8e09df5969
commit
9f8bbe26e2
5 files changed
+11
-11
No files matched your search
@@ -268,7 +268,7 @@ func (sm styleMap) get(f *file) tcell.Style {
|
|||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
|
|
||||||
if val, ok := sm[f.Name()]; ok {
|
if val, ok := sm[f.Name()+"*"]; ok {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1242,7 +1242,7 @@ The full order of matchings from most specific to least are as follows:
|
|||||||
1. Full Path (e.g. '~/.config/lf/lfrc')
|
1. Full Path (e.g. '~/.config/lf/lfrc')
|
||||||
2. Dir Name (e.g. '.git/') (only matches dirs with a trailing slash at the end)
|
2. Dir Name (e.g. '.git/') (only matches dirs with a trailing slash at the end)
|
||||||
3. File Type (e.g. 'ln') (except 'fi')
|
3. File Type (e.g. 'ln') (except 'fi')
|
||||||
4. File Name (e.g. '.git')
|
4. File Name (e.g. '.git*') (only matches files with a trailing star at the end)
|
||||||
5. Base Name (e.g. 'README.*')
|
5. Base Name (e.g. 'README.*')
|
||||||
6. Extension (e.g. '*.txt')
|
6. Extension (e.g. '*.txt')
|
||||||
7. Default (i.e. 'fi')
|
7. Default (i.e. 'fi')
|
||||||
@@ -1252,7 +1252,7 @@ For example, given a regular text file '/path/to/README.txt', the following entr
|
|||||||
1. '/path/to/README.txt'
|
1. '/path/to/README.txt'
|
||||||
2. (skipped since the file is not a directory)
|
2. (skipped since the file is not a directory)
|
||||||
3. (skipped since the file is of type 'fi')
|
3. (skipped since the file is of type 'fi')
|
||||||
4. 'README.txt'
|
4. 'README.txt*'
|
||||||
5. 'README.*'
|
5. 'README.*'
|
||||||
6. '*.txt'
|
6. '*.txt'
|
||||||
7. 'fi'
|
7. 'fi'
|
||||||
@@ -1262,7 +1262,7 @@ Given a regular directory '/path/to/example.d', the following entries are checke
|
|||||||
1. '/path/to/example.d'
|
1. '/path/to/example.d'
|
||||||
2. 'example.d/'
|
2. 'example.d/'
|
||||||
3. 'di'
|
3. 'di'
|
||||||
4. 'example.d'
|
4. 'example.d*'
|
||||||
5. 'example.*'
|
5. 'example.*'
|
||||||
6. '*.d'
|
6. '*.d'
|
||||||
7. 'fi'
|
7. 'fi'
|
||||||
|
|||||||
+3
-3
@@ -1401,7 +1401,7 @@ follows:
|
|||||||
1. Full Path (e.g. '~/.config/lf/lfrc')
|
1. Full Path (e.g. '~/.config/lf/lfrc')
|
||||||
2. Dir Name (e.g. '.git/') (only matches dirs with a trailing slash at the end)
|
2. Dir Name (e.g. '.git/') (only matches dirs with a trailing slash at the end)
|
||||||
3. File Type (e.g. 'ln') (except 'fi')
|
3. File Type (e.g. 'ln') (except 'fi')
|
||||||
4. File Name (e.g. '.git')
|
4. File Name (e.g. '.git*') (only matches files with a trailing star at the end)
|
||||||
5. Base Name (e.g. 'README.*')
|
5. Base Name (e.g. 'README.*')
|
||||||
6. Extension (e.g. '*.txt')
|
6. Extension (e.g. '*.txt')
|
||||||
7. Default (i.e. 'fi')
|
7. Default (i.e. 'fi')
|
||||||
@@ -1412,7 +1412,7 @@ entries are checked in the configuration and the first one to match is used:
|
|||||||
1. '/path/to/README.txt'
|
1. '/path/to/README.txt'
|
||||||
2. (skipped since the file is not a directory)
|
2. (skipped since the file is not a directory)
|
||||||
3. (skipped since the file is of type 'fi')
|
3. (skipped since the file is of type 'fi')
|
||||||
4. 'README.txt'
|
4. 'README.txt*'
|
||||||
5. 'README.*'
|
5. 'README.*'
|
||||||
6. '*.txt'
|
6. '*.txt'
|
||||||
7. 'fi'
|
7. 'fi'
|
||||||
@@ -1423,7 +1423,7 @@ checked in the configuration and the first one to match is used:
|
|||||||
1. '/path/to/example.d'
|
1. '/path/to/example.d'
|
||||||
2. 'example.d/'
|
2. 'example.d/'
|
||||||
3. 'di'
|
3. 'di'
|
||||||
4. 'example.d'
|
4. 'example.d*'
|
||||||
5. 'example.*'
|
5. 'example.*'
|
||||||
6. '*.d'
|
6. '*.d'
|
||||||
7. 'fi'
|
7. 'fi'
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ func (im iconMap) get(f *file) string {
|
|||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
|
|
||||||
if val, ok := im[f.Name()]; ok {
|
if val, ok := im[f.Name()+"*"]; ok {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1342,7 +1342,7 @@ Note that, lf first tries matching file names and then falls back to file types.
|
|||||||
1. Full Path (e.g. '~/.config/lf/lfrc')
|
1. Full Path (e.g. '~/.config/lf/lfrc')
|
||||||
2. Dir Name (e.g. '.git/') (only matches dirs with a trailing slash at the end)
|
2. Dir Name (e.g. '.git/') (only matches dirs with a trailing slash at the end)
|
||||||
3. File Type (e.g. 'ln') (except 'fi')
|
3. File Type (e.g. 'ln') (except 'fi')
|
||||||
4. File Name (e.g. '.git')
|
4. File Name (e.g. '.git*') (only matches files with a trailing star at the end)
|
||||||
5. Base Name (e.g. 'README.*')
|
5. Base Name (e.g. 'README.*')
|
||||||
6. Extension (e.g. '*.txt')
|
6. Extension (e.g. '*.txt')
|
||||||
7. Default (i.e. 'fi')
|
7. Default (i.e. 'fi')
|
||||||
@@ -1354,7 +1354,7 @@ For example, given a regular text file '/path/to/README.txt', the following entr
|
|||||||
1. '/path/to/README.txt'
|
1. '/path/to/README.txt'
|
||||||
2. (skipped since the file is not a directory)
|
2. (skipped since the file is not a directory)
|
||||||
3. (skipped since the file is of type 'fi')
|
3. (skipped since the file is of type 'fi')
|
||||||
4. 'README.txt'
|
4. 'README.txt*'
|
||||||
5. 'README.*'
|
5. 'README.*'
|
||||||
6. '*.txt'
|
6. '*.txt'
|
||||||
7. 'fi'
|
7. 'fi'
|
||||||
@@ -1366,7 +1366,7 @@ Given a regular directory '/path/to/example.d', the following entries are checke
|
|||||||
1. '/path/to/example.d'
|
1. '/path/to/example.d'
|
||||||
2. 'example.d/'
|
2. 'example.d/'
|
||||||
3. 'di'
|
3. 'di'
|
||||||
4. 'example.d'
|
4. 'example.d*'
|
||||||
5. 'example.*'
|
5. 'example.*'
|
||||||
6. '*.d'
|
6. '*.d'
|
||||||
7. 'fi'
|
7. 'fi'
|
||||||
|
|||||||
Reference in new issue
Block a user