Review Request 112787: Completion filtering: Abbreviation expansion and "contains" filtering

Sven Brauch svenbrauch at
Wed Oct 2 22:53:09 UTC 2013

This is an automatically generated e-mail. To reply, visit:

(Updated Oct. 2, 2013, 10:53 p.m.)

Review request for Kate and KDevelop.


Ha, I'm proud of this solution now ;)
Both problems you described should be solved.

Repository: kate


(I'll put this up here for discussion, I think a bit more work is required before submission.)

This patch implements less restrictive rules for completion list filtering. Currently, an item is only displayed if it starts with the typed text. In addition to that, I'd like to allow:

 1) Abbreviation expansion; see first screnshot. This matches entries where the entered text matches the (beginning of) the camelCased or under_scored entry name's first letters.

 2) Match if the entry only contains the word. This probably needs a bit of thinking to not disrupt existing workflows. My current solution only uses this filter if the length of the entered text is 4 or more characters.

What do you think?

Do you think this should be configurable?

Diffs (updated)

  part/completion/katecompletionmodel.h 088ac19 
  part/completion/katecompletionmodel.cpp accd5e4 



File Attachments

abbreviation expansion
"contains" matching (if length > 3)


Sven Brauch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list