Skip to content

Commit

Permalink
add gclone
Browse files Browse the repository at this point in the history
  • Loading branch information
mipmip committed Mar 27, 2023
1 parent c566d6e commit c972044
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions autoload/linny_github_tag.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion plugin/linny-github-tag.vim
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit c972044

Please sign in to comment.