From c972044ef0a93ef5226ff57f198c916c4085a3cb Mon Sep 17 00:00:00 2001 From: Pim Snel Date: Mon, 27 Mar 2023 15:15:00 +0200 Subject: [PATCH] add gclone --- autoload/linny_github_tag.vim | 4 ++++ plugin/linny-github-tag.vim | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/autoload/linny_github_tag.vim b/autoload/linny_github_tag.vim index 9b6c2e8..d854bb5 100644 --- a/autoload/linny_github_tag.vim +++ b/autoload/linny_github_tag.vim @@ -3,3 +3,7 @@ function! linny_github_tag#openGH(innertag) execute "!open https://github.com/" . a:innertag endfunction + +function! linny_github_tag#gitclone(innertag) + execute "!git clone " . a:innertag +endfunction diff --git a/plugin/linny-github-tag.vim b/plugin/linny-github-tag.vim index e0024d0..739d277 100644 --- a/plugin/linny-github-tag.vim +++ b/plugin/linny-github-tag.vim @@ -1,2 +1,4 @@ -call linny#AddLinnyWikiTagToRegister('GH', 'linny_github_tag#openGH', 'linny_github_tag#openGH') +call linny#RegisterLinnyWikitag('GH', 'linny_github_tag#openGH') +call linny#RegisterLinnyWikitag('GHBROWSE', 'linny_github_tag#openGH') +call linny#RegisterLinnyWikitag('GCLONE', 'linny_github_tag#gitclone')