[mini.jump2d] Can we replicate what folke/flash.nvim does where labels are characters from the jump target words #1257
-
Let me know if you are unfamiliar or need me to explain further, but I am curious if we can replicate what flash.nvim does where the jump labels actually consist of the spelling of the target word you want to jump to. So more or less, like a search.
When I active jump, if I wanted to jump to Additionally the way The TLDR of the value it brings is it eliminate some of the thinking to start because you can activate jump and just start typing the word you are trying to get to and then naturally you can jump to it after a couple characters... instead of having random characters always be your jump labels. Additionally it acts as a pseudo search a bit too and often it is valuable to see all the similar words matches as you type it and filter down the potential jump targets. Thoughts? Does my explanation make sense? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
FYI, I found similar discussion from a while ago here: #253 (reply in thread) I still am interested to know if there have been updates since then and/or if this feature is possible by creating our own spotter (without having to do something crazy)? Thanks! |
Beta Was this translation helpful? Give feedback.
-
The closest to the described workflow you can get (while using something pre-built) is with To read more about optimizing 'mini.jump2d', you can take a look at #1033. That said, computing labels independently of which text is underneath them is the core design of 'mini.jump2d' which won't be changed. This is mostly because I find an "initiate jumping with a single key press while intentionally limiting choices" approach more straightforward to understand. |
Beta Was this translation helpful? Give feedback.
The closest to the described workflow you can get (while using something pre-built) is with
single_character
builtin jump options. Here is an example of how it can be used (which can be made into a separate mapping; doesn't quite work as a default options for technical reasons).To read more about optimizing 'mini.jump2d', you can take a look at #1033.
That said, computing labels independently of which text is underneath them is the core design of 'mini.jump2d' which won't be changed. This is mostly because I find an "initiate jumping with a single key press while intentionally limiting choices" approach more straightforward to understand.