Ticket #8799 (assigned enhancement)

Opened 1 year ago

Last modified 1 year ago

[patch] Slight integration with TagsPlugin and alphabetic sort

Reported by: nelsojost Assigned to: rjollos (accepted)
Priority: normal Component: TracKeywordsPlugin
Severity: normal Keywords: TagsPlugin
Cc: Trac Release: 0.12

Description

I made ​​a small patch to the plugin also enter keywords in the "Tag Under" field (for the ones who uses TagsPlugin).

To use this in the wiki edit page, make sure to include the follow tag in the file <trac_egg>/trac/wiki/templates/wiki_edit.html:

<xi:include href="keywords.html" />
  • You can put this right before </body>.

This patch also includes the alphabetic sort enhancement.

These improvements do not restrain the use of the plugin from those who DO NOT use TagsPlugin, so I ask the maintainer to decide whether to accept or not those changes.

Attachments

keywords_plugin.patch (1.5 kB) - added by nelsojost on 05/14/11 01:43:47.
Apply tested only in Trac 0.11 version of the plugin
2011-05-16-keywords.patch (2.1 kB) - added by nelsojost on 05/17/11 00:04:12.
Patch against [9285]

Change History

05/14/11 01:43:47 changed by nelsojost

  • attachment keywords_plugin.patch added.

Apply tested only in Trac 0.11 version of the plugin

05/14/11 15:16:14 changed by AdrianFritz

  • owner changed from thomasvs to rjollos.

Hi Ryan, this patch was made against [9285].

05/15/11 21:58:29 changed by rjollos

  • status changed from new to assigned.

Hi Adrian, thanks for the patch. I'll get it applied today.

05/16/11 02:32:20 changed by AdrianFritz

Nice.

Tip: up-date TO-DO file removing "sort keywords alphabetically, since iterating over the section doesn't respect the order from the config"

05/16/11 02:33:13 changed by AdrianFritz

BTW: patch was submitted by Nelso (I'm just guiding him)

05/17/11 00:04:12 changed by nelsojost

  • attachment 2011-05-16-keywords.patch added.

Patch against [9285]

05/17/11 00:18:38 changed by nelsojost

The new patch available comes with a new approach for config keywords: from a external text file, which must be set in TracIni [keywords] section under file parameter. The way to config keywords in that file remains the same: name = description.

Keywords now are treated in a case-sensitive way (use of CamelCase can really help to makes tags more concises). This was not possible before, since TracIni keys names aren't meant to be case-sensitive.

This changes also incorporate independently the features of the previous one.


Add/Change #8799 ([patch] Slight integration with TagsPlugin and alphabetic sort)




Change Properties
Action