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

Add beacon fake cursors for symbols #650

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
((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 Expand Up @@ -541,3 +544,3 @@

(provide 'meow-beacon)
;;; meow-beacon.el ends here
6 changes: 3 additions & 3 deletions meow-command.el
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
(meow--with-selection-fallback
(cond
((equal '(expand . join) (meow--selection-type))
(delete-indentation nil (region-beginning) (region-end)))

Check warning on line 279 in meow-command.el

View workflow job for this annotation

GitHub Actions / check (26.3, true)

delete-indentation called with 3 arguments, but accepts only 0-1
(t
(meow--prepare-region-for-kill)
(meow--execute-kbd-macro meow--kbd-kill-region)))))))
Expand All @@ -291,7 +291,7 @@
(meow--with-selection-fallback
(cond
((equal '(expand . join) (meow--selection-type))
(delete-indentation nil (region-beginning) (region-end)))

Check warning on line 294 in meow-command.el

View workflow job for this annotation

GitHub Actions / check (26.3, true)

delete-indentation called with 3 arguments, but accepts only 0-1
(t
(meow--prepare-region-for-kill)
(let ((s (buffer-substring-no-properties (region-beginning) (region-end))))
Expand Down Expand Up @@ -844,7 +844,7 @@

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 @@

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 @@
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 Expand Up @@ -1868,3 +1868,3 @@

(provide 'meow-command)
;;; meow-command.el ends here
Loading