版本发布 4
**Additions** - Branch-specific TODOs are also cached (to avoid rescanning when automatic updates are disabled. This can improve performance in large repos). - Option `magit-todos-upate-remote` allows automatic scanning in remote repositories. ([#157](https://github.com/alphapapa/magit-todos/pull/157). Thanks to [Angus Gratton](https://github.com/projectgus).) **Changes** - Remote repositories are no longer automatically scanned (see new option `magit-todos-update-remote`). - Option `magit-todos-keyword-suffix` defaults to allowing suffixes to be enclosed by parentheses or brackets (rather than just parentheses). - Minor improvements to warnings about files containing very long lines: display as messages instead of warnings, and signal errors from outside the process sentinel. **Removals** - Obsolete option `magit-todos-insert-at`, replaced by option `magit-todos-insert-after`. (Scheduled for removal since v1.6.) **Fixes** - Disable external diff drivers when calling `git diff`. ([#174](https://github.com/alphapapa/magit-todos/pull/174). Thanks to [Aaron Zeng](https://github.com/bcc32).) - The branch diff scanner was incorrectly treated as a fallback scanner. (See [#186](https://github.com/alphapapa/magit-todos/issues/186). Thanks to [Karl Hallsby](https://github.com/KarlJoad) for reporting.) **Compatibility** - Update test for `git-grep` scanner compatibility for newer versions of Git. (See [#186](https://github.com/alphapapa/magit-todos/issues/186). Thanks to [Karl Hallsby](https://github.com/KarlJoad).) **Documentation** - Added [FAQ](README.md) section.
**Fixes** - Don't run branch scanner on a branch without a merge base relative to the main branch. ([#153](https://github.com/alphapapa/magit-todos/issues/153). Thanks to [Yukari Hafner](https://github.com/Shinmera) for reporting.) - Keymap parent in status buffer's to-do section. ([#143](https://github.com/alphapapa/magit-todos/issues/143). Thanks to [Matthias Paulmier](https://github.com/mpaulmier).)
**Changed** - Improve behavior when scanner backend exits with an error. (Now an error is signaled and the command's output is shown.) - Option `magit-todos-branch-list-merge-base-ref` defaults to nil, which automatically detects the default branch name using function `magit-main-branch`. ([#151](https://github.com/alphapapa/magit-todos/issues/151). Thanks to [Aaron Zeng](https://github.com/bcc32) for reporting.) **Fixed** - Updated `find|grep` scanner for newer versions of GNU `find` that interpret some arguments differently. (Tested on v4.8.0.) - Prevent leading `./` in filenames when used with `rg` scanner. ([#148](https://github.com/alphapapa/magit-todos/pull/148). Thanks to [Michal Sojka](https://github.com/wentasah) for reporting.)
- Emacs 26.1 or later is now required. **Added** - Option `magit-todos-submodule-list` controls whether to-dos in submodules are displayed (default: off). (Thanks to [Matsievskiy S.V.](https://github.com/matsievskiysv)) - Option `magit-todos-insert-after`, which replaces `magit-todos-insert-at`. (The new option is more flexible, and it is automatically set from the old one's value.) - Option `magit-todos-filename-filter`, which can be used to shorten filenames. (Thanks to [Matsievskiy S.V.](https://github.com/matsievskiysv)) **Changed** - Option `magit-todos-exclude-globs` now excludes the \`.git/\` directory by default. (Thanks to [Amorymeltzer](https://github.com/Amorymeltzer).) - Library `org` is no longer loaded automatically, but only when needed. (This can reduce load time, especially if the user's Org configuration is complex.) ([#120](https://github.com/alphapapa/magit-todos/issues/120). Thanks to [Martin Edström](https://github.com/meedstrom) and [Johnny Sigman](https://github.com/jsigman) for suggesting.) **Fixed** - Regexp overflow error for very long lines. ([#131](https://github.com/alphapapa/magit-todos/pull/131). Thanks to [Laurence Warne](https://github.com/LaurenceWarne).) - Option `magit-todos-group-by` respects buffer- and directory-local settings. - Insertion of blank lines between expanded sections. - Section insertion position at top of buffer and when chosen section doesn't exist. ([#139](https://github.com/alphapapa/magit-todos/issues/139). Thanks to [Sascha Lüdecke](https://github.com/sluedecke) for reporting.) **Removed** - Option `magit-todos-insert-at`, replaced by `magit-todos-insert-after`. (The old option will be removed in v1.8; customizations of it should be removed.) **Internal** - Define jumper keys using a Transient suffix. - Use new git-testing function in Magit for remote directories. ([#126](https://github.com/alphapapa/magit-todos/pull/126). Thanks to [Max Hollmann](https://github.com/maxhollmann).)