Closed Jaehaks closed 1 month ago
Thanks for reporting! It's one of the visual selection mode quirks. Should be fixed now! 😄 Pls reopen if you still see problems.
Btw, also calling just grugfar.grug_far()
will handle visual selection correctly for you in visual mode.
with_visual_selection()
was added more as a workaround for command mode bindings since some people like to do:
:lua require('grug-far').with_visual_selection()
But in any case, they should both work correctly now 😄
Thank you for your efforts,
I tried to call
with_visual_selection()
but it detect the word next function call.the keymap setting is
process is like this 1) visualize some word 2) call
grugfar.with_visual_selection()
with shortcut => there are no word in search field 3) quit the window 4) visualize some other word second time 5) callgrugfar.with_visual_selection()
with shortcut => search field is filled with the word is visualized at 1)