BREAKING CHANGE: This commit changes the behaviour of the TAB and RET
keys in a consult-completing read multiple session, in order to make
them more intuitive. The behaviour is now:
- TAB: (unchanged) always select or deselect the current candidate, and
if the candidate is selected, move the index to the next one (this
allows for pressing TAB repeatedly to select multiple subsequent
candidates).
- RET: If no candidates have been selected, select the current candidate
and exit the completion session. If some have been selected, disregard
the current candidate and exit.
- S-TAB: (new) like TAB, but the keeps the input.
Embark adds easier prefix-argument and digit-argument insertion in
embark-act, but these clog up the space in the which-key indicator
Also update the embark-become test to the new target format.
The vast majority of Doom modules have their defadvice! statements in
their config.el files, and not their autoloads. Since these don't need
to be autoloaded to function, we move them for better consistency.
- fix a paren error in the function that caused the buffers to be sorted
alphabetically and not by recency
- refactor the workspace buffer sources to use consult--buffer-query,
that way we get niceties like the current buffer being last
Fix#5366
embark targets changed internally to plists a while back. This didn't
really seem to break anything but it's best to be up to date with the
upstream representation.
BREAKING CHANGE: remove +vertico/(next|previous)-candidate-preview.
BREAKING CHANGE: Move vertico-(next|previous)-group to C-M-j/k now that
C-S-j/k now default back to scrolling up and down pages.
Update docs to reflect these changes.
Switch from the homemade +vertico/backward-updir to the upstream
vertico-directory-delete-char. The former has the nice feature of
traversing up abbreviated paths, but this comes at the cost of not being
able to fully erase the path (since the buck stops at /), and
unintentional directory moving in commands such as +vertico/find-file-in
which causes issues. Overall this minor convenience is not worth it, so
the vertico-directory-delete-char behaviour of just deleting up to the
previous / is preferred instead.
Turning on `recentf-mode` in a `cmd!` (introduced in 97048e2) means that
the `consult-customize` that turns off the previews doesn't work. This
is fixed by advising the function instead.
+ Rename +vertico--embark-target-package to
+vertico-embark-target-package-fn to conform to naming conventions,
and because it's not a private function anymore.
+ Fix +vertico-embark-target-package-fn's indentation.
Fix#5208
+ Escape any special regexp characters in the active selection.
+ Change the async split character (#) to the first of %, @, !, &, or /
that is absent in the active selection (falling back to %
otherwise) (since consult doesn't recognize escaping for these
characters).
- unify `map!` statements when possible
- rename `+vertico--embark-target-package!` to
`+vertico--embark-target-package` and autoload it
- set `completion-in-region-function` to a wrapper function instead of
changing it with a hook
- use `:override` advice instead of `fset` for `multi-occur`
- document what `vertico-directory-tidy` does
- move `:init` contents to `:config` when possible
- Rename module from `:completion selectrum` to `:completion vertico`
- Rename all files involved
- Do *not* yet rename all the functions, as that messes up git's rename
detection.