I write COBOL and use a function on save which upcases everything when i save which means all my potential candidates are up-cased., but when i type its all lowercase.
Naturally I then have (setq company-ctags-ignore-case t), but I have noticed that it doesn't matter if the first character in the string is the wrong case.
So if I have a completion candidate that is "N-FINISH" and i have start to type "n-f", nothing will show. On the other hand, "N-f" and "N-F" both works just fine.
My elisp is not particular good, but my theory is that the problem lies in company-ctags-all-candidates, more specifically:
(elt prefix 0) returns different values for "n-f" and "N-f", but the same value for "N-F" and "N-f". I don't really understand yet from the code how the has-tables are constructed thou.
Could it be thats the problem? and Then maybe we could upcase/downcase first charcter in prefix.
Hello, thanks for a very nice package!
I write COBOL and use a function on save which upcases everything when i save which means all my potential candidates are up-cased., but when i type its all lowercase.
Naturally I then have (setq company-ctags-ignore-case t), but I have noticed that it doesn't matter if the first character in the string is the wrong case. So if I have a completion candidate that is "N-FINISH" and i have start to type "n-f", nothing will show. On the other hand, "N-f" and "N-F" both works just fine.
My elisp is not particular good, but my theory is that the problem lies in
company-ctags-all-candidates
, more specifically:(elt prefix 0)
returns different values for "n-f" and "N-f", but the same value for "N-F" and "N-f". I don't really understand yet from the code how the has-tables are constructed thou.Could it be thats the problem? and Then maybe we could upcase/downcase first charcter in prefix.