this post was submitted on 12 Nov 2023
2 points (100.0% liked)

Emacs

313 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

anyone would know how to make consult-line works like isearch and be able to do C-w to gradually add the current word at point to the selection, i just got too much used to this

top 3 comments
sorted by: hot top controversial new old
[–] minad-emacs@alien.top 1 points 1 year ago

See https://github.com/minad/consult/issues/378 where this has been discussed before. One can write a command copying the current word at point in the buffer into the minibuffer.

[–] thetemp_@alien.top 1 points 1 year ago

One approach would be to use the ace-isearch package or a custom keybinding and function (like the one shown here) to use isearch first and its "C-w" binding to yank the words, and then switch over to consult-line using the same query.

[–] cradlemann@alien.top 1 points 1 year ago
(consult-customize
 consult-line
 :prompt "Search: "
 :add-history (seq-some #'thing-at-point '(region symbol))
 :initial (thing-at-point 'symbol))