Add search (Ctrl+F, wildcards, match case/whole word) and sort, both off by default

This commit is contained in:
sarah committed 2026-09-29 19:59:02 +02:00
1 parent 6c48796dde
commit 1c2acf3f16
5 files changed
+249 -5

No files matched your search

+18
View File
@@ -233,6 +233,24 @@ class AppConfig:
# opposite of this default, so both are always one click away.
OpenFilesInApp: bool = False
# Live filter for the file list, below the breadcrumbs/toolbar bar.
# ShowSearch is the master on/off; SearchAlwaysVisible picks between the
# bar always being there or only appearing on Ctrl+F (and dismissing on
# Escape). Match Case/Whole Word are session-only (Browser.MatchCase/
# MatchWholeWord), not persisted here — they're live search options, not
# a durable preference, same idea as a browser's find bar.
ShowSearch: bool = False
SearchAlwaysVisible: bool = False
# Sidebar sort control ("[Sort: Name] v" + a separate ascending/
# descending arrow button next to it — see Sidebar._BuildSortControl).
# Directories always sort before files regardless of field/direction,
# matching the existing list order; the field/direction only reorders
# within each of those two groups.
ShowSort: bool = False
SortField: str = "Name" # "Name", "Size", "Modified", or "Type"
SortAscending: bool = True
# Batch-rename pattern for multi-select rename, syntax modeled on
# SaraSortd's own placeholder characters (see ~/Applications/SaraSortd's
# GlobalConf.toml [Variables]): ~ = typed base name, ! = auto-incrementing