2021-11-05 09:56:28 +00:00
|
|
|
" Trydactyl (Firefox VIM addon) config file
|
2021-11-09 13:44:44 +00:00
|
|
|
|
|
|
|
set theme dark
|
|
|
|
|
2021-11-09 14:37:52 +00:00
|
|
|
" Taken from https://github.com/tridactyl/tridactyl/blob/230600ff950e6948225ec03f9b6858e965e37d22/.tridactylrc#L47
|
|
|
|
command githubpryank 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
|
|
|
|
|
2021-11-11 10:09:23 +00:00
|
|
|
command githubcloneyank composite js "git clone " + document.location.href.replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") | yank
|
|
|
|
|
2021-11-09 14:37:52 +00:00
|
|
|
command githubprexplore js let url = document.getElementById("clone-help-git-url").value; let branch = document.getElementById("clone-help-step-1").children[1].textContent.replace("git checkout -b ", "").split(" ")[0]; tri.native.run("alacritty --command fish -c 'git-explore-local " + url + " " + branch + "'")
|
|
|
|
|
|
|
|
command githubexplorelocal js let url = document.location.href.replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git"); tri.native.run("alacritty --command fish -c 'git-explore-local " + url + "'")
|
|
|
|
|
2021-11-09 13:44:44 +00:00
|
|
|
source ~/.config/tridactyl/tridactylrc.local
|