-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hinterland should only hint for nontrivial prefixes #651
Comments
Yes, this was a problem I ran into when writing it with the colon
Is this a result of other problematic characters, or something worth addressing more generally? |
@dmyersturnbull any suggestion for what constitutes a non-trivial prefix? |
@jcb91 Good question. Perhaps trivial prefixes are just |
Hmm, I hadn't thought about the external command prefix. I'm not sure I follow your regex, given the |
Actually, it might be worth using the Probably worth also adding user-configurable positive & negative include/excludes (e.g. I don't like completion on colons, even though they are included in |
So, I've made a stab at configurable regexes, with the default as |
@jcb91 It seems very nice, and the way to go. I will give a try this afternoon. |
Steps to reproduce (simplest example):
#
to start a comment.Actual result: The line now reads
#%%!
(the first completion).Expected result: The line should be an empty comment (just
#
).The above example isn't especially annoying, but in a day of using Hinterland, I've repeatedly had to trim
%%!
from meaningful lines of code, not just comments.The text was updated successfully, but these errors were encountered: