Closed jwbowler closed 1 month ago
Thanks for the report, I have drafted a PR that would fix this: #16382
In the meantime, something like the following could serve as a workaround:
(defun fix/spacemacs//ahs-ts-on-exit ()
(setq evil-ex-search-direction (if spacemacs--ahs-searching-forward 'forward 'backward)))
(advice-add 'spacemacs//ahs-ts-on-exit :after 'fix/spacemacs//ahs-ts-on-exit)
Description :octocat:
If you enter
symbol-highlight-transient-state
, search backward, and exit the transient state,n
andN
are now switched vs. their usual Vim-style behavior.I have zero experience with ELisp, but, some things I observe from poking around
layers/+spacemacs/spacemacs-navigation
:funcs.el
,spacemacs//ahs-ts-on-exit
has a comment about "Restore user search direction state..." - it seems relevant, is this just not working?packages.el
, the above function is set as the:on-exit
ofspacemacs|define-transient-state symbol-highlight
. But, usingedebug-defun
on that function, it seems to get called each time I hit then
orp
key insymbol-highlight-transient-state
, which seems weird?I observe this behavior on my freshly-installed MacOS Spacemacs as well as my Linux Spacemacs in the office.
Reproduction guide :beetle:
*
to entersymbol-highlight-transient-state
p
to go to the previous matchq
to exit the transient stateObserved behaviour: :eyes: :broken_heart:
n
now searches backward through "foo"sExpected behaviour: :heart: :smile:
n
now searches forward through "foo"sSystem Info :computer:
Backtrace :paw_prints:
N/A