Add clone yank to tridactylrc

This commit is contained in:
Oliver Blanthorn 2018-10-15 11:18:11 +01:00
parent 5a878b5b43
commit 680bd16b8f
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -26,6 +26,9 @@ bind ;c hint -c [class*="expand"],[class="togg"]
" GitHub pull request checkout command to clipboard (only works if you're a collaborator or above)
bind yp composite js document.getElementById("clone-help-step-1").textContent.replace("git checkout -b", "git checkout -B").replace("git pull ", "git fetch ") + "git reset --hard " + document.getElementById("clone-help-step-1").textContent.split(" ")[3].replace("-","/") | 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
"
" Misc settings
"