1 parent
1e94f4533e
commit
bfa527fcea
5 files changed
+98
-59
No files matched your search
@@ -1241,19 +1241,31 @@ 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 Name (e.g. '.git')
|
||||
4. Base Name (e.g. 'README.*')
|
||||
5. Extension (e.g. '*.txt')
|
||||
6. File Type (e.g. 'ln')
|
||||
3. File Type (e.g. 'ln') (except 'fi')
|
||||
4. File Name (e.g. '.git')
|
||||
5. Base Name (e.g. 'README.*')
|
||||
6. Extension (e.g. '*.txt')
|
||||
7. 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:
|
||||
|
||||
1. '/path/to/README.txt'
|
||||
2. 'README.txt/' (skipped since the file is not a directory)
|
||||
3. 'README.txt'
|
||||
4. 'README.*'
|
||||
5. '*.txt'
|
||||
6. 'fi'
|
||||
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'
|
||||
|
||||
Given a regular directory '/path/to/example.d', the following entries are checked in the configuration and the first one to match is used:
|
||||
|
||||
1. '/path/to/example.d'
|
||||
2. 'example.d/'
|
||||
3. 'di'
|
||||
4. 'example.d'
|
||||
5. 'example.*'
|
||||
6. '*.d'
|
||||
7. 'fi'
|
||||
|
||||
Note that glob-like patterns do not actually perform glob matching due to performance reasons.
|
||||
|
||||
|
||||
Reference in new issue
Block a user