meow icon indicating copy to clipboard operation
meow copied to clipboard

Select text as string between LEFT DOUBLE QUOTATION MARK and RIGHT DOUBLE QUOTATION MARK

Open Crandel opened this issue 3 months ago • 1 comments

I'm using gptel in Emacs and some llm models return their output as sentences, wrapped with left (“) and right (”) double quotation mark. And meow-inner-of-thing can't select these sentences as string or sentence. Is there a way to add these marks as string identifiers? I'm using GNU Emacs 31.0.50 (built from master)

Crandel avatar Oct 11 '25 15:10 Crandel

See the docstring of meow-thing-register. PAIRED-EXPR is suitable for this case. To add this case to string, consider advising/redefining the functions meow--bounds-of-string. Can't recommend this though, because the string meow thing is just the same as the emacs string thing you get with say, bounds-of-thing-at-point.

Instead, I'd try to modify the syntax table for your mode with modify-syntax-entry to set your double quote marks to string quotes. If it works well, it might be worth upstreaming it to gptel. Try:

(modify-syntax-entry ?\“ "\"")
(modify-syntax-entry ?\” "\"")

eshrh avatar Oct 12 '25 07:10 eshrh