Skip to content

How to limit the scope to search only the current line bi-directionally? #185

Answered by ggandor
kohane27 asked this question in Q&A
Discussion options

You must be logged in to vote

It's doable if you don't want 2-step highlighting, but far from trivial. Otherwise you'd have to reimplement half the plugin, so it's practically impossible.

For the former, you might want to check flit.nvim:
https:/ggandor/flit.nvim/blob/498b3a4864e697f1ed1145e518c4c78c776c55d8/lua/flit.lua#L10
https:/ggandor/flit.nvim/blob/498b3a4864e697f1ed1145e518c4c78c776c55d8/lua/flit.lua#L38
https:/ggandor/flit.nvim/blob/498b3a4864e697f1ed1145e518c4c78c776c55d8/lua/flit.lua#L55

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kohane27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #185 on September 14, 2023 14:19.