Don't show completion while typing in range#46
Don't show completion while typing in range#46artemave wants to merge 2 commits intohrsh7th:mainfrom
Conversation
E.g., at no point this should trigger completion:
:-12,-10t.
| -- -6,+7 | ||
| -- +6,$ | ||
| -- -6,-3t. | ||
| vim.regex(line_address_regex .. [=[,\?]=] .. line_address_regex .. [=[\s*[tmyd]\?\s*]=] .. line_address_regex), |
There was a problem hiding this comment.
Thank you for contribution!
Sirry. I can't understand the tmyd...
There was a problem hiding this comment.
Not entirely sure but these are shorthands for copy/t(:h co), move(m), yank, and delete that @artemave is trying to match in this regex since they are commonly used to manipulate lines in an Ex command.
There was a problem hiding this comment.
Not entirely sure but these are shorthands for copy/t(
:h co), move(m), yank, and delete that @artemave is trying to match in this regex since they are commonly used to manipulate lines in an Ex command.
Yes, that. Probably not an exhaustive list.
There was a problem hiding this comment.
I think we can use \%[] pattern for it?
For example, 1, is a partial pattern but it should be matched.
There was a problem hiding this comment.
For example, 1, is a partial pattern but it should be matched.
It's matched, as far as I can see in manual tests.
I use relative numbers to copy blocks of text. E.g.
:-12,-10t.copies lines from 12 lines up to 10 lines to the line under cursor. The problem is that as soon as type in,I get this:This pr addresses that problem.
Related to #45