Fork me on GitHub
#spacemacs
<
2019-02-01
>
bfay19:02:18

Is there a keybinding to exit a search you started with /? When I'm tired of seeing my search results highlighted, I usually just type in a random search that I know won't find a match, like /awefadsf But recently I've been getting issues when I'm stuck in that mode; d deletes a whole line for some reason. I can fix by running evil-ex-search-exit but that's hard to remember

jeff.terrell19:02:11

In general, C-g exits your current context in Spacemacs. (I think in Emacs too.)

jeff.terrell19:02:31

Also, SPC s c clears your most recent search string from being highlighted in your buffer.

bfay19:02:10

Ah thanks, I think SPC s c is what I need; I had tried C-g, fd, ESC, and C-[ and none of those were working

👍 5
df-bk20:02:06

the workaround about halfway down fixes it for me

bfay20:02:12

Yeah! That does sound like the behavior I was seeing

ag21:02:35

> When I’m tired of seeing my search results highlighted, I usually just type in a random search that I know won’t find a match, like /awefadsf @bfay you can do :nohl or SPC sc

👍 5
bfay21:02:14

Thanks, yeah jeff.terrell got me covered!