GithubHelp home page GithubHelp logo

Comments (8)

justinmk avatar justinmk commented on June 1, 2024 2

I think it would be better if there are multi char label supported, we can take vim-smalls's behavior as reference:

Intentionally not supported. That is clumsy, might as well use / at that point.

from vim-sneak.

bruhtus avatar bruhtus commented on June 1, 2024 1

You can add more label by using g:sneak#target_labels. Here's an example:

let g:sneak#target_labels = ';aszxcfvqwertyuiopbnmABCEFGIJKNOPQRSTUVZ'

For more info :help sneak-options

from vim-sneak.

ggandor avatar ggandor commented on June 1, 2024 1

@laggardkernel If there are more matches than labels, you can switch to the next set of matches with tab (:h sneak-mappings -> label mode).

from vim-sneak.

laggardkernel avatar laggardkernel commented on June 1, 2024

Thanks, I got it. Only one character label is supported, I need to add more characters as label candidate.

from vim-sneak.

glyh avatar glyh commented on June 1, 2024

I think it would be better if there are multi char label supported, we can take vim-smalls's behavior as reference:

  1. For multiple chars, The last label appear repeatedly.
  2. On typing that label, all label refreshes just for matches marked as that label.
  3. Repeat 1~2 until we got a single match.

from vim-sneak.

ggandor avatar ggandor commented on June 1, 2024

@justinmk Theoretically Sneak could do the same as Lightspeed, processing two match groups at a time, and showing them with a different background color, indicating that all the matches in the second group are prefixed with tab. This adds ~zero mental load as opposed to two-char labels. But I think this cannot be implemented at the moment if relying on Conceal, right? (related) Don't you happen to have some idea to work around that? I'd be happy to do a PR if we could figure out something.

from vim-sneak.

justinmk avatar justinmk commented on June 1, 2024

But I think this cannot be implemented at the moment if relying on Conceal, right? (related) Don't you happen to have some idea to work around that?

Not possible afaik. But I also don't see why a different color would be any help. The unlabeled matches are pretty recognizable.

from vim-sneak.

ggandor avatar ggandor commented on June 1, 2024

We would use the same set of labels twice, highlighted differently, so you could see the distant labels too right away, and at least for the second group, the additional short pause would be eliminated.

from vim-sneak.

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.