aboutsummaryrefslogtreecommitdiffstats
path: root/projects
diff options
context:
space:
mode:
authorTeddy Wing2020-02-09 04:37:21 +0100
committerTeddy Wing2020-02-12 05:09:54 +0100
commite734f1a9d9c4650c84e652ea40e0b54e371ce8ba (patch)
treea99110171d8b51222424eccf6e1f0534e92ce57f /projects
parentf540f2d90c1f972903ad011e9376dff529ff90ee (diff)
downloaddotvim-e734f1a9d9c4650c84e652ea40e0b54e371ce8ba.tar.bz2
projects/aodocs.vim: Add `JiraOpen` command
A command that opens the Jira ticket ID cWORD in the browser.
Diffstat (limited to 'projects')
-rw-r--r--projects/aodocs.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/projects/aodocs.vim b/projects/aodocs.vim
index ce4fcc8..1d4cf29 100644
--- a/projects/aodocs.vim
+++ b/projects/aodocs.vim
@@ -28,6 +28,12 @@ augroup AODocs
\,$VIM_PROJECT_PATH_AODOCS/*/.git/{COMMIT_EDIT,MERGE_,TAG_EDIT}MSG
\ call s:CommitWackoTextWidthMappings()
\ | call s:CommitWackoTextWidth()
+
+ " Open Jira ticket ID in the browser
+ autocmd BufRead,BufEnter
+ \ $VIM_PROJECT_PATH_AODOCS_GO/*
+ \,$VIM_PROJECT_PATH_AODOCS/*
+ \ command! JiraOpen :call system('jira-open ' . expand('<cWORD>'))
augroup END
" Insert a path to UFO ticket folders