mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Add handy git clone bind
This commit is contained in:
parent
077a135f26
commit
e3b771acdc
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ bind yp composite js document.getElementById("clone-help-step-1").textContent.re
|
||||||
" Git{Hub,Lab} git clone via SSH yank
|
" Git{Hub,Lab} git clone via SSH yank
|
||||||
bind yg composite js "git clone " + document.location.href.replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") | clipboard yank
|
bind yg composite js "git clone " + document.location.href.replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") | clipboard yank
|
||||||
|
|
||||||
|
" As above but execute it and open terminal in folder
|
||||||
|
bind ,g js let uri = document.location.href.replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git"); tri.native.run("cd ~/projects; git clone " + uri + "; cd \"$(basename \"" + uri + "\" .git)\"; st")
|
||||||
|
|
||||||
" I like wikiwand but I don't like the way it changes URLs
|
" I like wikiwand but I don't like the way it changes URLs
|
||||||
bindurl wikiwand.com yy composite js document.location.href.replace("wikiwand.com/en","wikipedia.org/wiki") | clipboard yank
|
bindurl wikiwand.com yy composite js document.location.href.replace("wikiwand.com/en","wikipedia.org/wiki") | clipboard yank
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue