mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
...
This commit is contained in:
@@ -43,7 +43,7 @@ OPTIONS = '''
|
||||
--override -o
|
||||
type=list
|
||||
Override individual configuration options, can be specified multiple times.
|
||||
Syntax: :italic:`name=value`. For example: :option:`kitten choose_files -o` max_depth=20
|
||||
Syntax: :italic:`name=value`.
|
||||
|
||||
|
||||
--config
|
||||
|
||||
@@ -83,6 +83,8 @@ func (sc *ScanCache) fs_scan(root_dir, current_dir string, max_depth int, seen m
|
||||
return
|
||||
}
|
||||
|
||||
// TODO: Exclude /proc, /sys, /dev and also dont cross mountpoints
|
||||
|
||||
func (sc *ScanCache) scan(root_dir, search_text string, max_depth int) (ans []ResultItem) {
|
||||
seen := make(map[string]bool, 1024)
|
||||
ans = sc.fs_scan(root_dir, root_dir, max_depth, seen)
|
||||
|
||||
Reference in New Issue
Block a user