From 680bd16b8fbf47800a12cc6e131a9f59c72e218a Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Mon, 15 Oct 2018 11:18:11 +0100 Subject: [PATCH] Add clone yank to tridactylrc --- .tridactylrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.tridactylrc b/.tridactylrc index d3a6f06a..4bb5dcd4 100644 --- a/.tridactylrc +++ b/.tridactylrc @@ -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 "