sponsor Vim development Vim logo Vim Book Ad

ticket.vim : Manges git branch specific vim session files

 script karma  Rating 4/1, Downloaded by 412  Comments, bugs, improvements  Vim wiki

created by
jimmy hardman
 
script type
utility
 
description
ticket.vim

Check https://github.com/superDross/ticket.vim/ for all the latest docs

A session file can be created based upon the git branch you are occupying. This allows one to easily open session files between branches with a simple command.

To create a branch session file `:SaveSession`

To open it `:OpenSession`

To save branch notes `:SaveNote`

To open it `:OpenNote`

To search all notes for git `:GrepNotes git`

To automatically open and save and session files set the following in your `.vimrc`:

```vim
let g:ticket_auto_open = 1
let g:ticket_auto_save = 1
```

- EXAMPLE

Say you are currently in branch feature/case-34200 in the NewProject repo and subsequently execute :SaveSession within vim.

The session file will be stored within ~/.tickets/NewProject/case-34200.vim.

To open this specific session with :OpenSession, you must be in branch feature/case-34200.
 
install details
Plug 'superDross/ticket.vim'
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ticket.zip 0.1 2019-10-24 7.0 jimmy hardman Initial upload
ip used for rating: 216.73.216.107

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github