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.
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
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
founded 1 year ago
MODERATORS
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.
(consult-customize
consult-line
:prompt "Search: "
:add-history (seq-some #'thing-at-point '(region symbol))
:initial (thing-at-point 'symbol))