This commit attempts to better match tags when used in sentences with
punctuation. If a whitespace-style match is not found, but the last
character is one of the common punctuation characters in text (",", ".", ";", ":"),
the bot will strip the trailing punctuation to try again.
I figured that this would catch the following common cases:
You should check out :h 'formatlistpat'.
These could be helpful: :h :exec, :h :normal, and :h :nnoremap.
From :h 'scrolloff': blah
This even works when you try something you really shouldn't, like:
You can use :h quote..
This would break here:
You can use :h quote.
finding :h quote. instead of :h quote, but in a case like that you really should
use backticks, anyways.
If you can think of additional common cases, let me know!
This commit attempts to better match tags when used in sentences with punctuation. If a whitespace-style match is not found, but the last character is one of the common punctuation characters in text (",", ".", ";", ":"), the bot will strip the trailing punctuation to try again.
I figured that this would catch the following common cases:
This even works when you try something you really shouldn't, like:
This would break here:
finding
:h quote.
instead of:h quote
, but in a case like that you really should use backticks, anyways.If you can think of additional common cases, let me know!
Resolves #11.