Comments (16)
Actually, this was exactly what I had planned to implement to solve #10. User-defined [regex] symbol groups. Additionally, each symbol group can be differently scoped.
For instance: (add-to-list 'evil-snipe-symbol-groups '("[" "[[{(]" buffer))
would make searches for sa[
jump to the next instance of a[
, a{
or a(
anywhere in the entire buffer. The third parameter would be take anything that evil-snipe-scope
accepts, or can be omitted to use the default scope.
I haven't implemented it yet, but that's the plan.
from evil-snipe.
And done. I haven't implemented symbol-group specific scopes, so right now it only takes character => regex pattern, like so:
(add-to-list 'evil-snipe-symbol-groups '(?[ "[[{(]"))
This should also fix/address #10
from evil-snipe.
Shouldn't this be?
(add-to-list 'evil-snipe-symbol-groups '(?\[ "[[{(]"))
from evil-snipe.
Yes, it should. My mistake!
from evil-snipe.
Ok, then you might have to correct the docstring for evil-snipe-symbol-groups
.
from evil-snipe.
How would you add the opposite, i.e. ]
matches ])}
? No regex I produce seem work (which isn't strange since ]
closes the regex brackets. I couldn't get escaping it to work either. (]|)|})
did not do the trick either....
from evil-snipe.
How would you add the opposite, i.e. ] matches ])}?
(add-to-list 'evil-snipe-symbol-groups '(?\] "[]})]"))
from evil-snipe.
Brilliant, thanks.
from evil-snipe.
Ok, then you might have to correct the docstring for evil-snipe-symbol-groups.
And done. Also, I've discovered a bug: symbol groups are ignored when repeating searches. I'm on that now.
from evil-snipe.
I'm now unable to repeat searches with fFtT
. Anyone else have the same problem?
from evil-snipe.
At all? Just in case this is a MELPA issue, could you check out evil-snipe.el and tell me if you have 1.6.2 or 1.6.3?
(A quick way to get to that file is to do M-x describe-function RET evil-snipe-s
and clicking the "evil-snipe.el" link in the help buffer.)
from evil-snipe.
;; Version: 20150301.2131
;; X-Original-Version: 1.6.2
But this might be something wrong with the config on my end. When calling M-x evil-snipe-override-mode
it works.
from evil-snipe.
Is evil-snipe-override-evil
set to t?
from evil-snipe.
Also: you seem to be one version behind (the latest was 1.6.3, pushed ~15 minutes ago). I just bumped it to 1.6.4 a second ago. I'm not sure how often MELPA checks for changes though.
from evil-snipe.
I'm not sure how often MELPA checks for changes though.
In my experience MELPA updates every 10-30 minutes.
from evil-snipe.
This works for me now with the new version. Thanks.
from evil-snipe.
Related Issues (20)
- Search in both directions HOT 2
- evil-snipe-f can't find the last character of a link description in org-mode
- t movement broken (inconsistent with vim and/or vanilla evil) HOT 1
- t/T with evil-snipe-override-mode does not behave correctly
- Evil snipe in the minibuffer? HOT 2
- No highlight if a target has two following spaces or is at the end of a line
- Error: Symbol's Value as variable is void: count HOT 1
- Highlight targets for f, F, t and T keys HOT 5
- Missing evil-snipe-auto-disable-substitute variable?
- evil-snipe-scope 'buffer not respected HOT 1
- `evil-snipe-override-mode` causes delete/change/yank (`d`/`c`/`y`) commands forward (`f`) to space to not include space HOT 2
- `evil-snipe-override-evil` in doc but not in code
- How to repeat searches after rebinding f to evil-snipe-s HOT 1
- invalid-function when calling `evil-snipe-...` HOT 4
- evil-snipe-repeat(-reverse) misbehavior when remapped/swapped
- Add option for making jumps not skip over invisible characters
- evil-snipe-skip-leading-whitespace inconsistency
- evilem-define/evilem-create's `:bind` does not work as expected
- the cursor moves right if search fails
- Possibility to restrict highlights to first 2 or last 2 characters in word
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 evil-snipe.