summaryrefslogtreecommitdiffstats
path: root/docs/configuration/joshuto.toml.md
diff options
context:
space:
mode:
authorJustin Chen <ctj12461@163.com>2023-08-13 23:12:59 +0800
committerGitHub <noreply@github.com>2023-08-13 11:12:59 -0400
commit7ab12658f911bebfa12f836b2a6449e08611e437 (patch)
treec5b00ec5342ff424b05d0f3c1dd283115c73bceb /docs/configuration/joshuto.toml.md
parent82e231ac004e1f25f0a447bc601e5e3a10dca4d2 (diff)
feat: Add case sensitivity support for searching, selecting and filtering files (#393)
* feat: Add struct and enum definitons for choosing case sensitivity of search * feat: Implement `FromStr` for CaseSensitivity * feat: Add a command to change the configuration of case sensitivity * feat: Add case sensitivity support for search operations * feat: Add case sensitivity support for selection operations * docs: Add explanations for the new feature * feat: Add case sensitivity support for searching with fzf * docs: Add explanations for the new feature * docs: Update documents * feat: Refactor and add case sensitivity support for the filter operation * refactor: Extract codes related to constructing the context for searching * refactor: Extract the common component of searching, selecting and filtering files * refactor: Change the module path and name * feat: Use separate options for case sensitivity configurations * feat: Add support for changing case sensitivity configurations at runtime * docs: Add explanations for the new command
Diffstat (limited to 'docs/configuration/joshuto.toml.md')
-rw-r--r--docs/configuration/joshuto.toml.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/configuration/joshuto.toml.md b/docs/configuration/joshuto.toml.md
index 1e0ed5c..e9bf8f2 100644
--- a/docs/configuration/joshuto.toml.md
+++ b/docs/configuration/joshuto.toml.md
@@ -85,6 +85,23 @@ directories_first = true
# sort in reverse
reverse = false
+# Configurations related to searching and selecting files
+[search]
+# Different case sensitivities for operations using substring matching
+# - insensitive
+# - sensitive
+# - smart: when the pattern contains at least one uppercase letter, joshuto can search
+# files case-sensitively, otherwise it will ignore the difference between lowercase
+# and uppercase
+# Note that to apply changes after changing configurations at runtime, re-executing
+# the search command is required.
+# For substring matching
+string_case_sensitivity = "insensitive"
+# For glob matching
+glob_case_sensitivity = "sensitive"
+# For matching with fzf
+fzf_case_sensitivity = "insensitive"
+
# Optional list of command aliases (empty by default)
[cmd_aliases]
# q = "quit"