Comments (3)
But symbol-overlay-map
is already a configurable thing, so here you can just rebind s
as desired - no need for any ad-hoc additional methods.
from symbol-overlay.
Thanks @purcell ! That works. I ended up doing in my init.el
basically what I see now in the lovely README:
(defvar my-symbol-overlay-map
(let ((map (make-sparse-keymap)))
(define-key map (kbd "i") 'symbol-overlay-put)
(define-key map (kbd "h") 'symbol-overlay-map-help)
(define-key map (kbd "p") 'symbol-overlay-jump-prev)
(define-key map (kbd "n") 'symbol-overlay-jump-next)
(define-key map (kbd "<") 'symbol-overlay-jump-first)
(define-key map (kbd ">") 'symbol-overlay-jump-last)
(define-key map (kbd "w") 'symbol-overlay-save-symbol)
(define-key map (kbd "t") 'symbol-overlay-toggle-in-scope)
(define-key map (kbd "e") 'symbol-overlay-echo-mark)
(define-key map (kbd "d") 'symbol-overlay-jump-to-definition)
(define-key map (kbd "s") 'swiper-isearch-thing-at-point) ; THIS IS THE ONLY CUSTOMIZATION FOR NOW
(define-key map (kbd "q") 'symbol-overlay-query-replace)
(define-key map (kbd "r") 'symbol-overlay-rename)
map)
"Keymap automatically activated inside overlays.
You can re-bind the commands to any keys you prefer.")
(setq symbol-overlay-map my-symbol-overlay-map)
And for overriding ivy's boundaries:
;; Override to not insert boundaries; should request it be a customize-ation
(defun ivy--insert-symbol-boundaries ()
(undo-boundary)
;; next two surely not needed
(beginning-of-line)
(end-of-line))
Now on an active overlay'd word, I can just press s
and be in the swiper search I'm after. Definitely faster than using a key-chord (or whatever) and then pressing M-n
.
from symbol-overlay.
Why not just change the existing keymap?
(with-eval-after-load 'symbol-overlay
(define-key symbol-overlay-map (kbd "s") 'swiper-isearch-thing-at-point))
from symbol-overlay.
Related Issues (20)
- Is it possible to use more than 8 colors? HOT 7
- [Feature Request] Highlight current selection region as iedit did. HOT 2
- [Document Improvement Request] How to use `symbol-overlay-mode` and `symbol-overlay-isearch-literally` HOT 4
- Is that possible to persist overlay information? HOT 2
- args-out-of-range error HOT 15
- A symbol-overlay-jump-avy function for the symbol-overlay-map HOT 7
- Tag a new release HOT 1
- Support not putting boundaries on match HOT 2
- void-variable clojure-font-lock-extra-keywords HOT 7
- Symbol-overlay conflicts with haskell-mode HOT 4
- Request: Add case insensitive
- `symbol-overlay-list-all`
- Overlay conflicts with eglot HOT 4
- Adding package to NonGNU ELPA HOT 2
- Evil implementation? HOT 1
- 11749c3 breaks things HOT 6
- Cannot be used with yasnippet
- SO didn't recognize sharp quote(function quote), is this made by design or a bug?
- Jumping to next symbol (switch-forward) skips to last on screen HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symbol-overlay.