Giter VIP home page Giter VIP logo

Comments (1)

ggandor avatar ggandor commented on May 28, 2024

There is no bug here: ,/; do not behave like , and ; in vanilla Vim. You can only go back to the "start point" (the first target you reached with ;), but not beyond - it is like pushing and popping from a stack.

The reason why it works like this is briefly mentioned in the Readme (;/, works the same way as S/F/T):

S, F and T, on the other hand, always revert the previous repeat. Note that in the case of T (or X, if mapped), this results in a different, and presumably more useful behaviour than what you are used to in clever-f and Sneak: it does not repeat the search in the reverse direction, but puts the cursor back to its previous position - before the previous match -, allowing for an easy correction when you accidentally overshoot your target.

What this means in practice, regarding your example:

If you have safe labels, you will auto-jump to the first target, and that will be the start point for ;/,. If you set safe_labels = {}, you will not auto-jump, so if you press a label, then you actually exit the plugin. If you jumped to the second match (by selecting the label f), then the match after that will be the first one that ; finds (the one in log.DebugLevel on line 12), and thus the "reference" point for the ;/, sequence.

from lightspeed.nvim.

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.