This commit is contained in:
Kovid Goyal 2025-05-22 14:51:51 +05:30
parent 8e61758064
commit 68e3dd6f34
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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)