meow icon indicating copy to clipboard operation
meow copied to clipboard

Feature Request: `meow-line-thing`

Open VinceGuidry opened this issue 1 year ago • 1 comments

Currently, we can customize the things meow uses for words and symbols with meow-word-thing and meow-symbol-thing. Would be useful to be able to customize the line thing as well. The thing I'm thinking about this for is org mode where I could select a heading instead of a line.

VinceGuidry avatar Jun 17 '24 17:06 VinceGuidry

I don't really have time to work on this rn, but here's something to get started with -

(defvar meow-line-thing 'line "TODO docstring")

(defun my/meow-line (n)
  "TODO docstring"
  (interactive "p")
  (meow-next-thing meow-line-thing 'line
                   (if (meow--direction-backward-p)
                       (- n)
                     n))
  (setcar (car meow--selection) 'expand))

If anyone wants to take this forward into a PR - you need to ensure that this behaves exactly the same as meow-line, then you can replace it with this.

45mg avatar Jun 22 '24 02:06 45mg