flash.nvim icon indicating copy to clipboard operation
flash.nvim copied to clipboard

feat(char): add auto-jump/auto-motion option when using labels, closes #183

Open myypo opened this issue 2 years ago • 2 comments

A naive solution for https://github.com/folke/flash.nvim/issues/183 I've been using locally.

Currently can be enabled by setting autojump to true

modes = {
    char = {
        jump_labels = true,
        jump = {
            autojump = true,
        },
    },
}

myypo avatar Nov 25 '23 16:11 myypo

Works for me, however, it does not 'reset' the highlighting, i.e. I still see jump labels and the background highlighting after the jump.

mintelm avatar Dec 07 '23 08:12 mintelm

Tested this and it works quite well. The backdrop highlight disappears after the auto jump. Can you please consider merging this PR?

tmwatchanan avatar Mar 29 '24 03:03 tmwatchanan

any updates on this PR?

mintelm avatar May 16 '24 08:05 mintelm

Any chance of getting it finally merged?

mcdax avatar Jun 01 '24 19:06 mcdax

Done, sorry for the delay!

folke avatar Jun 01 '24 19:06 folke

This doesn't work for operator pending mode when there is only one hit. It still displays the label and you have to press the label to execute.

tsakirist avatar Jun 13 '24 16:06 tsakirist

This doesn't work for operator pending mode when there is only one hit. It still displays the label and you have to press the label to execute.

Unless I am missing something, it works for me for char mode. For example, running df.. If it isn't related to f/t motions it is just a different issue.

   -- options used when flash is activated through
   -- `f`, `F`, `t`, `T`, `;` and `,` motions

myypo avatar Jun 13 '24 19:06 myypo