Autocomplete feature for the keywords field
Description
The KeywordsSuggestPlugin provides an autocomplete function for the keywords ticket field. Optionally, it is possible to restrict the list of allowed keywords. The KeywordSuggestPlugin uses the jQuery plugin: Autocomplete for the javascript part. See also the LoomingCloudsPlugin.
There is a patch provided in #4201 that allows this plugin to work well with the TagsPlugin.
Bugs/Feature Requests
Existing bugs and feature requests for KeywordSuggestPlugin are here.
If you have any issues, create a new ticket.
Download and Source
Download the zipped source, check out KeywordSuggestPlugin using Subversion, or browse the source with Trac.
Example
Label can be the link to a wiki page
Configuration
Following section must be added to trac.ini configuration file:
[keywordsuggest] keywords = tag1,tag2,tag3 mustmatch = True helppage = TicketKeywords helppage.newwindow = True matchcontains = True multipleseparator = ', '
There are two parameters to configure:
- keywords - specifies list of comma separated values available for input
- mustmatch - optional, if specified, 'keywords' field accepts values from the keywords list only
- helppage - optional, if specified, 'keywords' label will be turned into the link to wiki page
- helppage.newwindow - optional, whether wiki page opened in new window or not
- matchcontains - optional, whether keywords which matched not from the beginning must be included into list
- multipleseparator - which character(s) is used as separator between keywords. Must be enclosed with quotas or other characters. If not specified, ', ' is used.
Recent Changes
[4357] by scratcher on 09/28/08 23:39:51
Added two new options: matchcontains and multipleseparator. Trailing redundant separator is removed automatically now before keyword list is submitted.
[4351] by scratcher on 09/26/08 23:05:18
Removed unused import, version changed to 0.2
[4350] by scratcher on 09/26/08 22:38:20
Fixed problem with Internet Explorer, added possibility to turn 'keywords' label into link to a wiki page
[4325] by scratcher on 09/23/08 09:24:22
minor update, got rid of python ternary operator which isn't present in python 2.4
Author/Contributors
Author: scratcher
Attachments
- autocomplete.png (3.5 kB) -
Sample picture of autocomplete feature
, added by scratcher on 09/20/08 22:53:33. - keywords.png (0.5 kB) -
'helppage' option turned on
, added by scratcher on 09/26/08 22:47:29.



