Cycle words powered by mini.ai
#2304
drowning-cat
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
|
Thanks for sharing! Judging by the used name, you know that this functionality is already planned for 'mini.nvim'. I have a general idea of the design in mind, but need to finish more "pressing" modules first. Probably will be named 'mini.switch', though. As per the code. I didn't study it closely, but one thing caught my eye: I would suggest to not use multi-character string as textobject id in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Simple word cycling similar to dial.nvim#constants.
Configuration example:
Use
v:countto jumpCode (version 1)
I search a single pattern built from all words in
vim.g.cycle_configusingsearch_method="cover_or_next". If a match is found, I then find the corresponding cover pattern usingsearch_method="cover". I need this second search becausemini.aialways picks the shortest match when cover patterns overlap.Use
v:countto cycleCode (version 2)
Beta Was this translation helpful? Give feedback.
All reactions