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

Transient for symbol-overlay #59

Closed
hmelman opened this issue May 27, 2020 · 4 comments
Closed

Transient for symbol-overlay #59

hmelman opened this issue May 27, 2020 · 4 comments

Comments

@hmelman
Copy link

hmelman commented May 27, 2020

For what it's worth, I've been very happily using this transient for symbol-overlay for a while. It could be bound to any key but I have a super- key configured and am binding this to s-. which I find nicely parallels M-..

(define-transient-command symbol-overlay-transient ()
  "Symbol Overlay transient"
  ["Symbol Overlay"
   ["Overlays"
    ("." "Add/Remove at point" symbol-overlay-put)
    ("k" "Remove All" symbol-overlay-remove-all)
    ]
   ["Move to Symbol"
    ("n" "Next" symbol-overlay-switch-forward)
    ("p" "Previous" symbol-overlay-switch-backward)
    ]
   ["Other"
    ("m" "Highlight symbol-at-point" symbol-overlay-mode)
    ]
   ]
  )
(global-set-key (kbd "s-.") 'symbol-overlay-transient)
@purcell
Copy link
Collaborator

purcell commented May 27, 2020

Great - thanks for sharing! It's out of scope to add a depenency on transient to the library itself, but I'm sure others will stumble across this and find it helpful! I might link to this snippet from the README...

@purcell purcell closed this as completed May 27, 2020
@Cons-Cat
Copy link

With Transient now added in the master branch of Emacs 28, is it possible this might be revisited in the future?

@hmelman
Copy link
Author

hmelman commented Aug 5, 2024

Yeah -command became -prefix. I'm still using the transient I had. I find the commands on the symbol-overlay-map overlay are way more convenient wouldn't want to lose them. I just use the transient to add/remove overlays and to navigate to an overlay when I'm not on one. Otherwise the overlay map is faster, you don't have to type the transient prefix for first/last/rename/etc.

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

5 participants
@purcell @Cons-Cat @hmelman and others