Giter VIP home page Giter VIP logo

Comments (16)

hlissner avatar hlissner commented on June 9, 2024

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.

hlissner avatar hlissner commented on June 9, 2024

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.

halbtuerke avatar halbtuerke commented on June 9, 2024

Shouldn't this be?

(add-to-list 'evil-snipe-symbol-groups '(?\[ "[[{(]"))

from evil-snipe.

hlissner avatar hlissner commented on June 9, 2024

Yes, it should. My mistake!

from evil-snipe.

halbtuerke avatar halbtuerke commented on June 9, 2024

Ok, then you might have to correct the docstring for evil-snipe-symbol-groups.

from evil-snipe.

 avatar commented on June 9, 2024

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.

halbtuerke avatar halbtuerke commented on June 9, 2024

How would you add the opposite, i.e. ] matches ])}?

(add-to-list 'evil-snipe-symbol-groups '(?\] "[]})]"))

from evil-snipe.

 avatar commented on June 9, 2024

Brilliant, thanks.

from evil-snipe.

hlissner avatar hlissner commented on June 9, 2024

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.

 avatar commented on June 9, 2024

I'm now unable to repeat searches with fFtT. Anyone else have the same problem?

from evil-snipe.

hlissner avatar hlissner commented on June 9, 2024

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.

 avatar commented on June 9, 2024
;; 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.

hlissner avatar hlissner commented on June 9, 2024

Is evil-snipe-override-evil set to t?

from evil-snipe.

hlissner avatar hlissner commented on June 9, 2024

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.

halbtuerke avatar halbtuerke commented on June 9, 2024

I'm not sure how often MELPA checks for changes though.

In my experience MELPA updates every 10-30 minutes.

from evil-snipe.

 avatar commented on June 9, 2024

This works for me now with the new version. Thanks.

from evil-snipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.