Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: meow-line-thing #607

Open
VinceGuidry opened this issue Jun 17, 2024 · 1 comment
Open

Feature Request: meow-line-thing #607

VinceGuidry opened this issue Jun 17, 2024 · 1 comment

Comments

@VinceGuidry
Copy link

VinceGuidry commented Jun 17, 2024

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.

@45mg
Copy link
Contributor

45mg commented Jun 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants