Not exactly.
I am all for autocomplete … 100%
It just should be delayed a tiny bit when you are at the beginning of a line… wait 1 more letter.
The previous objection was that it never autocompleted at the start of a line. This is different.
Not exactly.
I am all for autocomplete … 100%
It just should be delayed a tiny bit when you are at the beginning of a line… wait 1 more letter.
The previous objection was that it never autocompleted at the start of a line. This is different.
I think this change would help. There may be one more missing rule though:
Take this line:
this ##
If I position my cursor after the first # it, currently triggers auto-complete.
And this:
some stuff #abcdefg
If I use the left arrow key to go back through #abcdefg, it is triggered at every position. It feels like it should only be triggered when I’m positioned at the end of that string.
So maybe the logic should be something like:
Trigger auto complete iff:
# is preceded by whitespace AND# and cursor are all valid hashtag characters OR# and cursor AND # not at beginning of line)Yeah, agree, we can do something here… especially if the complete function returns nothing if it sees a completion for # and we do a lookahead.
It is rather complex code, but we have started modernising it a bit lately, we may be able to swing a complete change here.
I think this is fixed?
The rule is now that we only trigger the hashtag # autocomplete if and only iff the # is followed by a valid hashtag character.