Bug 514397 - Provide default autocompletion for generic editor
Summary: Provide default autocompletion for generic editor
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 4.7 M7   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 514642
Blocks:
  Show dependency tree
 
Reported: 2017-03-29 08:25 EDT by Nobody - feel free to take it CLA
Modified: 2017-04-18 07:14 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody - feel free to take it CLA 2017-03-29 08:25:57 EDT
In case that for a given content-type no autocompletion providers have been supplied we can activate a simple but effective default autocompletion.

This would simply split the text in words - defined as anything between non-alphanumerics - and use these as proposals provided you have a prefix. See https://imgur.com/a/VmVu1 , https://imgur.com/a/RMehK and https://imgur.com/a/cm7X6 for a quick look of how it would work.

Of course this will only activate if there is no autocompletion processor provided for that content type (i.e. better than nothing).
Comment 1 Mickael Istria CLA 2017-04-04 07:22:20 EDT
I found out that the current proposal for word completion doesn't mix well with other completion processors. It seems like the proposals miss to implement ICompletionProposalExtension2#validate(...) method so the popup is hidden whenever there is a change (rather than continuing the completion session).
Comment 2 Eclipse Genie CLA 2017-04-05 05:47:07 EDT
New Gerrit change created: https://git.eclipse.org/r/94443
Comment 4 Alexander Kurtakov CLA 2017-04-06 07:31:21 EDT
Please exclude one letter long proposals - makes no sense to see a/1/2.... proposals.
Comment 5 Eclipse Genie CLA 2017-04-06 09:06:02 EDT
New Gerrit change created: https://git.eclipse.org/r/94565
Comment 7 Alexander Kurtakov CLA 2017-04-18 07:14:44 EDT
Works fine now (single letter words excluded).