Trac Ticket View
The Trac ticket view is you browse trac tickets
Opening
:TTOpen <optional ticket_id>
Browsing
You can scroll up and down the ticket list. Pressing enter will load the ticket id under the cursor.
At the moment the ticket list is limited to tickets assigned to the login user. This might be annoying and I'll probably fix it later on. Until then you can modify the trac.py file on line 84.
http://www.ascetinteractive.com.au/vimtrac/browser/trunk/plugin/trac.py#L84
Adding Comments
The bottom right screen is for adding comments. To commit a comment either use :w<cr> or :TTAddComment
Changing ticket states
Trac current ticket option modifications (use tab complete)
- :TTSetMilestone <Milestone>
- :TTSetType <Type >
- :TTSetStatus <Status>
- :TTSetResolution <Resolution>
- :TTSetPriority <Priority >
- :TTSetSeverity <Severity >
- :TTSetComponent <Component>
- :TTSetSummary <Summary >
The setting will immediately be sent to the server.
Creating Tickets
(added in 0.2.2.1)
This is still a bit of a hack. If you add a description in the TICKET_COMMENT window and type the command
:TTCreateTicket <ticket summary>
A new ticket will be created with the default attributes (set in trac.ini)
Adding/Retrieving attachments
Added as of 0.2.3
:TTAddAttachment <file_path>
Adds a ticket to the current open ticket
:TTGetAttachment <file>
Retrieves an atteched file and saves it to the current working directory. File options for the current ticket may be viewed with <tab> completion.
Filters
TODO: Describe Filters Here
It's possible to create custom filters via functions in your vimrc.
Example of a Custom Filter added
"Trac Plugin Custom Filter
com! -nargs=? -complete=customlist,ComType TTFilterMyPriority call FilterMyPriority()
fun! FilterMyPriority()
python trac.ticket.filter.add('michael', 'owner', True, False)
python trac.ticket.filter.add('trivial', 'priority', False, False)
python trac.ticket.filter.add('minor', 'priority', False, True)
endfun
Note: As of 0.2.3 attachment descriptions have not been added.
Outstanding Bugs
Planned Enhancements
- #35
- Add Filter save option
- #38
- Color coded priority tags
- #40
- Add ticket changelog filters
- #45
- Create Contect menu options for ticket attributes
- #47
- Add integration into Calendar.vim for Milestone info
- #53
- Add Version settings on tickets
- #55
- Consolidate Ticket Set/Filter/Resolve commands with improved auto completes
