Comments (8)
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.
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.
@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.
Thanks, I got it. Only one character label is supported, I need to add more characters as label candidate.
from vim-sneak.
I think it would be better if there are multi char label supported, we can take vim-smalls's behavior as reference:
- For multiple chars, The last label appear repeatedly.
- On typing that label, all label refreshes just for matches marked as that label.
- Repeat 1~2 until we got a single match.
from vim-sneak.
@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.
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.
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)
- Swapping ; with , makes repeating unusable HOT 2
- `Alt-f` and `Alt-F` in insert mode didn't reset `;` and `,` HOT 1
- Labels are not shown for last partially displayed line HOT 5
- vim-sneak conflicts with regular usage of `;` HOT 1
- sneak removes user-defined <Esc> mapping HOT 1
- feature ideas: land on second char? remove f/t completely? HOT 1
- Ahead of time labels HOT 2
- 3-chars label? HOT 2
- Sneak_f in operator-pending mode is incorrect if the target is on eol/eof HOT 2
- repetition clobbers registers
- Re-configuring sneak (in VS-Code) so that "s" and "S" keep their traditional meaning HOT 1
- Support for wrapscan? HOT 2
- allow disabling prompt for cmdheight=0 HOT 1
- How to remap s to other key and s work as the default command in vim (subsititute)? HOT 1
- Make ; map to most recent f/s usage HOT 1
- disable prompt? so the cursor stays in place in buffer and does not jump to command line HOT 4
- Is it possible to use ':' to go to a previous search result rather than ','? HOT 1
- label mode not working with f HOT 2
- extended labels ("smart label mode") HOT 4
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 vim-sneak.