syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.56k stars 4.9k forks source link

[compleseus] Devide search functions into 2 intial input variants #16416

Closed kenkangxgwe closed 1 month ago

kenkangxgwe commented 1 month ago

Each consult search function now comes with two variants regarding initial input. They all initialize the input with region content if a region is active, but differ on whether an empty string or thing-at-point if a region is not active.

This change tries to mimic the search behaviors configured in helm layers. Thus the default empty variants are bound to lowercase keys, and the default thing-at-point variants are bound to uppercase keys.

kassick commented 1 month ago

Ha! I ended up doing the same in in my config