Skip to content

Commit

Permalink
Add beacon fake cursors for symbols (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxflaxx authored Oct 20, 2024
1 parent 9da1da5 commit 965d03c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions meow-beacon.el
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ MATCH is the search regexp."
((word) (if (not (eq 'expand ex))
(meow--add-beacons-for-word)
(meow--add-beacons-for-match (meow--beacon-region-words-to-match))))
((symbol) (if (not (eq 'expand ex))
(meow--add-beacons-for-symbol)

Check warning on line 403 in meow-beacon.el

View workflow job for this annotation

GitHub Actions / check (28.2, true)

the function ‘meow--add-beacons-for-symbol’ is not known to be defined.
(meow--add-beacons-for-match (meow--beacon-region-words-to-match))))
((visit) (meow--add-beacons-for-match (car regexp-search-ring)))
((line) (meow--add-beacons-for-line))
((join) (meow--add-beacons-for-join))
Expand Down
6 changes: 3 additions & 3 deletions meow-command.el
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ Use negative argument to create a backward selection."
This command works similar to `meow-mark-word'."
(interactive "p")
(meow-mark-thing meow-symbol-thing 'word (< n 0) "\\_<%s\\_>"))
(meow-mark-thing meow-symbol-thing 'symbol (< n 0) "\\_<%s\\_>"))

(defun meow--forward-thing-1 (thing)
(let ((pos (point)))
Expand Down Expand Up @@ -927,7 +927,7 @@ To select continuous symbols, use following approaches:
3. use `meow-expand' after this command."
(interactive "p")
(meow-next-thing meow-symbol-thing 'word n))
(meow-next-thing meow-symbol-thing 'symbol n))

(defun meow-back-word (n)
"Select to the beginning the previous Nth word.
Expand All @@ -943,7 +943,7 @@ This command works similar to `meow-next-word'."
A non-expandable word selection will be created.
This command works similar to `meow-next-symbol'."
(interactive "p")
(meow-next-thing meow-symbol-thing 'word (- n)))
(meow-next-thing meow-symbol-thing 'symbol (- n)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; LINE SELECTION
Expand Down

0 comments on commit 965d03c

Please sign in to comment.