diff --git a/tridactyl/.config/tridactyl/tridactylrc b/tridactyl/.config/tridactyl/tridactylrc index fec36ce..dd83a0b 100644 --- a/tridactyl/.config/tridactyl/tridactylrc +++ b/tridactyl/.config/tridactyl/tridactylrc @@ -12,6 +12,7 @@ colorscheme dark " Make tridactyl open Vim in Termite instead of xterm set editorcmd termite --class tridactyl_editor -e 'vim %f' + " " Binds " @@ -19,9 +20,6 @@ set editorcmd termite --class tridactyl_editor -e 'vim %f' " Comment toggler for Reddit and Hacker News 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