Commit Graph

3173 Commits

Author SHA1 Message Date
3865908439 Add test: custom_mappings_precedence 2023-12-11 10:21:06 +08:00
9474b4cf8b Rename & sort syntax mapping tests 2023-12-11 10:21:06 +08:00
b48bda21a3 Add test: all_fixed_builtin_mappings_can_compile 2023-12-11 10:21:06 +08:00
daf33709a0 Additional sanity check for matcher parser 2023-12-11 10:21:06 +08:00
36073a3d95 Document another rule ignore condition 2023-12-11 10:21:06 +08:00
12fa2cb1eb - is not a legal character in variable name 2023-12-11 10:21:06 +08:00
1f10d846a3 Fix tests
1. for override test, test for something in `common`
2. move git mappings to `common`
2023-12-11 10:21:05 +08:00
22531eab90 Port all mappings to new system 2023-12-11 10:21:05 +08:00
0c1b80faab Impl per-target syntax mappings 2023-12-11 10:21:05 +08:00
2c9bf229e1 Add doc comment for BUILTIN_MAPPINGS 2023-12-11 10:21:05 +08:00
822e81bb24 Suppress clippy warning for MappingTarget in build script 2023-12-11 10:21:05 +08:00
ad628c0471 Fix iterator lifetime incompatibility 2023-12-11 10:21:05 +08:00
f483d2df42 Lazily compile GlobMatchers 2023-12-11 10:21:05 +08:00
4ad3002543 s/Lazy<GlobMatcher>/Lazy<Option<GlobMatcher>>/ 2023-12-11 10:21:05 +08:00
cfd622d6e1 Migrate SyntaxMapping impl to new system
Most existing builtins are removed but not yet ported, so the test
`user_can_override_builtin_mappings` should fail. It should pass once the old
rules have been ported.
2023-12-11 10:21:05 +08:00
1c7c9a6b6d Split syntax_mapping/builtin.rs 2023-12-11 10:21:05 +08:00
0c93ca80f4 Guard against duplicate matchers in build script 2023-12-11 10:21:04 +08:00
de6d418d42 Remove BuiltinMatcher enum
Explanation added as comments in code
Using plain `Lazy<Option<GlobMatcher>>` is just better
2023-12-11 10:21:04 +08:00
c016b462c0 STATIC_RULES => BUILTIN_MAPPINGS 2023-12-11 10:21:04 +08:00
7e1fbcfe95 Fix visibility for SyntaxMapping::get_syntax_for
This change was made in 31fb708, but then was reverted (I assume incorrectly)
in 6246485.
2023-12-11 10:21:04 +08:00
4815b6155e Write changelog 2023-12-11 10:21:03 +08:00
075b5b288a Matcher parser errors when empty 2023-12-11 10:20:12 +08:00
7cfd1e0d78 Rerun build script only when necessary 2023-12-11 10:20:12 +08:00
9f7d70f642 Use regex for matcher parsing
- Somewhat better maintainability I think
2023-12-11 10:20:12 +08:00
0fea82cff9 Minor improvement of variable naming accuracy 2023-12-11 10:20:11 +08:00
64840fbbae join_segments -> build_glob_string
- this is a more descriptive name
2023-12-11 10:20:11 +08:00
827b3eca2f Add unset *.conf example 2023-12-11 10:20:11 +08:00
9478d2dfe8 Isolate variables at compile time 2023-12-11 10:20:11 +08:00
d24501ab5e include! generated mappings in source 2023-12-11 10:20:11 +08:00
9f4259721a Fix codegen type declaration 2023-12-11 10:20:11 +08:00
77e491161c Ensure lexicographical ordering 2023-12-11 10:20:10 +08:00
97780f987e MappingDefModel::into_mapping_list returns MappingList 2023-12-11 10:20:10 +08:00
d1bc0ef0d4 Build script codegen initial impl 2023-12-11 10:20:10 +08:00
52f94b4623 Clarify syntax selection algorithm behaviour 2023-12-11 10:20:10 +08:00
37fd050100 Describe filename ordering more accurately 2023-12-11 10:20:10 +08:00
83286975ff Add ordering prefix to git-config example 2023-12-11 10:20:10 +08:00
f705fcb984 Add global git-config example 2023-12-11 10:20:10 +08:00
9ca1f20f43 Add specification draft 2023-12-11 10:20:10 +08:00
6ad800e43a tidied commits 2023-12-10 17:24:49 +00:00
069318b139 fixed formatting of terminal title 2023-12-10 17:20:42 +00:00
b9b554248d successfully setting the terminal title to bat's input's names 2023-12-10 17:17:19 +00:00
4863d428dd title is being reset on quit, so no need to restore terminal title 2023-12-10 16:44:47 +00:00
2e103ee6b3 able to set terminal title to hardcoded value 2023-12-10 16:39:34 +00:00
28990bc451 fix: display color when NO_COLOR is an empty string (#2767) 2023-12-02 11:43:55 +00:00
748e2a681f Add columns=3 to repology badge 2023-12-01 21:39:25 +01:00
bfa0b5241f Update Arch Linux package URL in README files (#2779) 2023-12-01 21:26:35 +01:00
4af4bfc0f1 fixed syntax typo in russian readme 2023-12-01 20:59:52 +01:00
51203ff750 Use GitHub API to get correct PR submitter (#2791) 2023-12-01 11:18:10 +00:00
96cef9a24e Bump assets/themes/zenburn from 43dc527 to e627f1c (#2790)
Bumps [assets/themes/zenburn](https://github.com/colinta/zenburn) from `43dc527` to `e627f1c`.
- [Commits](43dc527731...e627f1cb22)

---
updated-dependencies:
- dependency-name: assets/themes/zenburn
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-01 10:38:36 +00:00
b43d31b75a Improvements and fixes to zsh completion
* Use correct return status so that approximate completion isn't broken
* Follow zsh conventions on description forms
* Some options can be used multiple times, e.g. -H, -r, --file-name
* Set completion context correctly for the cache subcommand
* Better completion for --map-syntax argument
* Add --nonprintable-notation option
* Correct some of the mutual exclusion lists for options
2023-12-01 11:11:44 +01:00