[UPDATE][TRIDACTYL] Remove GitHub PR binding

This commit is contained in:
Bruno BELANYI 2019-10-04 16:11:27 +02:00
parent 5da42afec6
commit 16f476762a

View file

@ -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