-
Notifications
You must be signed in to change notification settings - Fork 43
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
symbol-overlay-mode #2
Comments
I use "o/u" as the common next-and-prev-like bindings when searching or moving over texts because they are at the most natural positions on the keyboard. It's comfortable for my fingers: "u/o" to move around while "i" for confirming/toggling and "k" for killing/deleting. However, It's just a matter of personal taste. You can customize the keymap as you like.
Thanks. |
please add this feature :) |
@borgnix jFYI, until this get's implemented here I have the following in my config: ;; Make highlight symbol use overlay-put instead of font-lock
;; https://github.com/nschum/highlight-symbol.el/issues/26#issuecomment-233168193
(defun highlight-symbol-add-symbol-with-face (symbol face)
(save-excursion
(goto-char (point-min))
(while (re-search-forward symbol nil t)
(let ((ov (make-overlay (match-beginning 0)
(match-end 0))))
(overlay-put ov 'highlight-symbol t)
(overlay-put ov 'face face)))))
(defun highlight-symbol-remove-symbol (_symbol)
(dolist (ov (overlays-in (point-min) (point-max)))
(when (overlay-get ov 'highlight-symbol)
(delete-overlay ov)))) |
@dakra Thank you! |
Good news! We have Check the new feature after Melpa finish this build. Wish you enjoy it. @borgnix @dakra |
Very nice :) I see the mode does not have a keymap and if I call I would like to bind Also is there a setting for the toggle-scope? I would like to Thanks :) |
You can easily define a The For some reasons, scope is not supported in |
Alright, you can set |
Awesome. I tried to set the minor-mode-map in use-package but that One more thing, I saw you added Good job 👍 |
The best philosophy about symbol-overlay is to use :) |
The thing is that I want one single keybinding. Does this make sense? Anyway, this is obviously only a very minor thing. |
Hi, I like the package, especially since highlight-symbol doesn't seem to be maintained anymore.
I always use
highlight-symbol-mode
which is a minor mode that alwayshighlights automatically the symbol under the cursor.
Would be a nice feature for symbol-overlay as well.
Also how comes o and u are default bindings for next and prev?
Would have expected either n/p or maybe f/b.
Thanks :)
The text was updated successfully, but these errors were encountered: