wiki:KeywordSuggestPlugin

Version 23 (modified by Ryan J Ollos, 7 years ago) (diff)

Show default values in configuration options.

Autocomplete feature for the keywords field

Notice: This plugin is unmaintained and available for adoption.

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 LoomingCloudsPlugin.

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 [download:keywordsuggestplugin zipped source], check out KeywordSuggestPlugin using Subversion, or browse the source with Trac.

Example

Sample picture of autocomplete feature

The Keywords Label can be the link to a wiki page.

'helppage' option turned on

Configuration

Following section must be added to trac.ini configuration file:

[keywordsuggest]
keywords = tag1,tag2,tag3
mustmatch = False
helppage = wiki/TicketKeywords
helppage.newwindow = False
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 a resource. This could be a wiki page, or any resource in any realm, such as the tags page (helppage = tags).
  • 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

17189 by rjollos on 2018-06-03 23:14:12
TracKeywordSuggest 0.5.0dev: Fix rename error in r12103

Fixes #13433.

17188 by rjollos on 2018-06-03 23:11:15
Conform to PEP8
17187 by rjollos on 2018-06-03 23:06:36
Make compatible with Trac 1.3.2+
(more)

Author/Contributors

Author: scratcher
Maintainer: rjollos
Contributors:

Attachments (2)

Download all attachments as: .zip