wiki:ContextMenuPlugin

Add context menu to source code browser

Description

This is a plugin which adds a context menu to the Trac source browser. It defines an extension point and the interface ISourceBrowserContextMenuProvider, with which you can implement custom items to the menu. The context menu itself requires JavaScript to work.

Bugs/Feature Requests

Existing bugs and feature requests for ContextMenuPlugin are here.

If you have any issues, create a new ticket.

defect

2 / 3

enhancement

0 / 1

task

1 / 1

Download

Download the zipped source from here.

Source

You can check out ContextMenuPlugin from here using Subversion, or browse the source with Trac.

A fork of a plugin can be found on GitHub.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Add the following line to your trac.ini file to enable this plugin:

[components]
contextmenu.* = enabled

Example

Included are menu items which provide direct svn links, like wiki:SvnUrlsPlugin, and wiki links:

Recent Changes

12127 by rjollos on 2012-10-07 21:35:43
Refs #10439: Fixed indentation.
12126 by rjollos on 2012-10-07 21:33:27

Refs #10439:

  • Check if repository object exists before trying to call a method of it. This should protect against tracebacks when the repository is not correctly configured.
  • Refactoring:
    • Removed some unused imports.
    • Replaced use of deprecated add_javascript with add_script.
    • Finished moving license text, which was started in [12117].
12117 by rjollos on 2012-10-06 03:44:58
Refs #10439: Moved license description from source files to the added COPYING file.
(more)

Author/Contributors

Author: penmark
Maintainer: Pontus Enmark
Contributors: pipern, rjollos

Last modified 4 months ago Last modified on Mar 29, 2016, 3:32:59 PM

Attachments (1)

Download all attachments as: .zip