GNOME Bugzilla – Bug 614103
gedit Word Completion Plugin: configure the number of characters to display dialog
Last modified: 2019-03-23 20:53:04 UTC
It would be very useful to be able to set the number of characters needed to display the completion dialog. By default, after only 2 characters, the dialog appears. I would like to be able to set this number to 4 characters, so the dialog would not appear constantly.
"so the dialog would not appear constantly": I mean that when we use gedit to enter text, there are a lot of little words. For example: >L'été s'en va et l'hiver s'en vient. In this sentence, only 2 words have at least 4 characters.
Ok, there are two different things that can be configured here. 1) the minimal word length needed for finding words in the document and adding them to the list of completion words. 2) after how many characters the interactive completion should start. Which one do you mean to be configurable? With regard to implementation, these things are already managed as properties, so it would be a matter of providing an UI for it (and storing/restoring from gconf)
Hi, I mean after how many characters the interactive completion should start. Regards, Jean-Philippe
Currently the minimum word size (for scanning the words in the buffer) is also used for triggering the interactive completion. I'll attach a patch to add two configuration options, one for this bug, and the other option for bug #648946. The patch needs the commit at: https://git.gnome.org/browse/gtksourceview/commit/?h=wip/word-completion
Created attachment 246395 [details] [review] word completion: add configure options - minimum word size - whether to enable interactive completion
Review of attachment 246395 [details] [review]: Looks good to me.
Thanks for the prompt review. The commits are pushed.