diff --git a/.config/tridactyl/tridactylrc b/.config/tridactyl/tridactylrc index f72570d..2b71876 100644 --- a/.config/tridactyl/tridactylrc +++ b/.config/tridactyl/tridactylrc @@ -1,332 +1,33 @@ " General Settings +set update.lastchecktime 1647585997410 set configversion 2.0 -set update.lastchecktime 1639138491473 -set update.nag true -set update.nagwait 7 -set update.lastnaggedversion 1.14.0 -set update.checkintervalsecs 86400 -set smoothscroll true -set scrollduration 100 -set theme dark -set followpagepatterns.prev Previous + +" Aliases +alias git_clone js "git clone " + document.location.href.split('#')[0].split('/').slice(0, 5).join('/') + " ;cd " + document.location.href.split('#')[0].split('/').at(4) +alias git_clone_ssh js "git clone " + document.location.href.split('#')[0].split('/').slice(0, 5).join('/').replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") + " ;cd " + document.location.href.split('#')[0].split('/').at(4) " Binds bind j scrollline 5 bind h back bind l forward -bind H scrollpx -50 -bind L scrollpx 50 -bind gc composite git_clone | clipboard yank -bind gC composite git_clone_ssh | clipboard yank -bind yr composite js "\"" + document.location.href.split('#')[0].split('/').slice(3, 5).join('/') + "\"" | clipboard yank +bind H tabprev +bind L tabnext +bind J scrollpx -50 +bind K scrollpx 50 bind q back bind Q forward -bind ;x hint -F e => { const pos = tri.dom.getAbsoluteCentre(e); tri.excmds.exclaim_quiet("xdotool mousemove --sync " + window.devicePixelRatio * pos.x + " " + window.devicePixelRatio * pos.y + "; xdotool click 1")} -bind ;X hint -F e => { const pos = tri.dom.getAbsoluteCentre(e); tri.excmds.exclaim_quiet("xdotool mousemove --sync " + window.devicePixelRatio * pos.x + " " + window.devicePixelRatio * pos.y + "; xdotool keydown ctrl+shift; xdotool click 1; xdotool keyup ctrl+shift")} -bind pin -bind mute toggle -bind help -bind o fillcmdline open -bind O current_url open -bind w fillcmdline winopen -bind W current_url winopen -bind t fillcmdline tabopen -bind ]] followpage next -bind [[ followpage prev -bind [c urlincrement -1 -bind ]c urlincrement 1 -bind urlincrement -1 -bind urlincrement 1 -bind T current_url tabopen -bind yy clipboard yank -bind ys clipboard yankshort -bind yc clipboard yankcanon -bind ym clipboard yankmd -bind yo clipboard yankorg -bind yt clipboard yanktitle -bind gh home -bind gH home true -bind p clipboard open -bind P clipboard tabopen -bind scrollline 10 -bind k scrollline -10 -bind scrollline -10 -bind G scrollto 100 -bind gg scrollto 0 -bind scrollpage -0.5 -bind scrollpage 0.5 -bind scrollpage 1 -bind scrollpage -1 -bind nmode ignore 1 mode normal -bind $ scrollto 100 x -bind ^ scrollto 0 x -bind jumpprev -bind jumpnext -bind d tabclose -bind D composite tabprev; tabclose # -bind gx0 tabclosealltoleft -bind gx$ tabclosealltoright -bind << tabmove -1 -bind >> tabmove +1 -bind u undo -bind U undo window -bind r reload -bind R reloadhard -bind x stop -bind gi focusinput -l -bind g? rot13 -bind g! jumble -bind g; changelistjump -1 -bind J tabprev -bind K tabnext -bind gt tabnext_gt -bind gT tabprev -bind g^ tabfirst -bind g0 tabfirst -bind g$ tablast -bind ga tabaudio -bind gr reader -bind gu urlparent -bind gU urlroot -bind gf viewsource -bind : fillcmdline_notrail -bind s fillcmdline open search -bind S fillcmdline tabopen search -bind M gobble 1 quickmark -bind B fillcmdline taball -bind b fillcmdline tab -bind ZZ qall -bind f hint -bind F hint -b -bind gF hint -qb -bind ;i hint -i -bind ;b hint -b -bind ;o hint -bind ;I hint -I -bind ;k hint -k -bind ;K hint -K -bind ;y hint -y -bind ;Y hint -cF img i => tri.excmds.yankimage(tri.urlutils.getAbsoluteURL(i.src)) -bind ;p hint -p -bind ;h hint -h -bind v hint -h -bind ;P hint -P -bind ;r hint -r -bind ;s hint -s -bind ;S hint -S -bind ;a hint -a -bind ;A hint -A -bind ;; hint -; * -bind ;# hint -# -bind ;v hint -W mpvsafe -bind ;V hint -V -bind ;w hint -w -bind ;t hint -W tabopen -bind ;O hint -W fillcmdline_notrail open -bind ;W hint -W fillcmdline_notrail winopen -bind ;T hint -W fillcmdline_notrail tabopen -bind ;z hint -z -bind ;m composite hint -Jpipe img src | open images.google.com/searchbyimage?image_url= -bind ;M composite hint -Jpipe img src | tabopen images.google.com/searchbyimage?image_url= -bind ;gi hint -qi -bind ;gI hint -qI -bind ;gk hint -qk -bind ;gy hint -qy -bind ;gp hint -qp -bind ;gP hint -qP -bind ;gr hint -qr -bind ;gs hint -qs -bind ;gS hint -qS -bind ;ga hint -qa -bind ;gA hint -qA -bind ;g; hint -q; -bind ;g# hint -q# -bind ;gv hint -qW mpvsafe -bind ;gw hint -qw -bind ;gb hint -qb -bind ;gF hint -qb -bind ;gf hint -q -bind mode ignore -bind mode ignore -bind mode ignore -bind mode ignore -bind composite mode normal ; hidecmdline -bind composite mode normal ; hidecmdline -bind a current_url bmark -bind A bmark -bind zi zoom 0.1 true -bind zo zoom -0.1 true -bind zm zoom 0.5 true -bind zr zoom -0.5 true -bind zM zoom 0.5 true -bind zR zoom -0.5 true -bind zz zoom 1 -bind zI zoom 3 -bind zO zoom 0.3 -bind . repeat -bind ba open https://www.youtube.com/watch?v=M3iOROuTuMA bindurl github.com gp open github.com/Asocia -bindurl github.com j scrollline 5 -bindurl github.com h back -bindurl github.com l forward -bindurl github.com H scrollpx -50 -bindurl github.com L scrollpx 50 bindurl github.com gc composite git_clone | clipboard yank bindurl github.com gC composite git_clone_ssh | clipboard yank bindurl github.com yr composite js "\"" + document.location.href.split('#')[0].split('/').slice(3, 5).join('/') + "\"" | clipboard yank -bindurl github.com q back -bindurl github.com Q forward -bindurl github.com ;x hint -F e => { const pos = tri.dom.getAbsoluteCentre(e); tri.excmds.exclaim_quiet("xdotool mousemove --sync " + window.devicePixelRatio * pos.x + " " + window.devicePixelRatio * pos.y + "; xdotool click 1")} -bindurl github.com ;X hint -F e => { const pos = tri.dom.getAbsoluteCentre(e); tri.excmds.exclaim_quiet("xdotool mousemove --sync " + window.devicePixelRatio * pos.x + " " + window.devicePixelRatio * pos.y + "; xdotool keydown ctrl+shift; xdotool click 1; xdotool keyup ctrl+shift")} -bindurl github.com pin -bindurl github.com mute toggle -bindurl github.com help -bindurl github.com o fillcmdline open -bindurl github.com O current_url open -bindurl github.com w fillcmdline winopen -bindurl github.com W current_url winopen -bindurl github.com t fillcmdline tabopen -bindurl github.com ]] followpage next -bindurl github.com [[ followpage prev -bindurl github.com [c urlincrement -1 -bindurl github.com ]c urlincrement 1 -bindurl github.com urlincrement -1 -bindurl github.com urlincrement 1 -bindurl github.com T current_url tabopen -bindurl github.com yy clipboard yank -bindurl github.com ys clipboard yankshort -bindurl github.com yc clipboard yankcanon -bindurl github.com ym clipboard yankmd -bindurl github.com yo clipboard yankorg -bindurl github.com yt clipboard yanktitle -bindurl github.com gh home -bindurl github.com gH home true -bindurl github.com p clipboard open -bindurl github.com P clipboard tabopen -bindurl github.com scrollline 10 -bindurl github.com k scrollline -10 -bindurl github.com scrollline -10 -bindurl github.com G scrollto 100 -bindurl github.com gg scrollto 0 -bindurl github.com scrollpage -0.5 -bindurl github.com scrollpage 0.5 -bindurl github.com scrollpage 1 -bindurl github.com scrollpage -1 -bindurl github.com nmode ignore 1 mode normal -bindurl github.com $ scrollto 100 x -bindurl github.com ^ scrollto 0 x -bindurl github.com jumpprev -bindurl github.com jumpnext -bindurl github.com d tabclose -bindurl github.com D composite tabprev; tabclose # -bindurl github.com gx0 tabclosealltoleft -bindurl github.com gx$ tabclosealltoright -bindurl github.com << tabmove -1 -bindurl github.com >> tabmove +1 -bindurl github.com u undo -bindurl github.com U undo window -bindurl github.com r reload -bindurl github.com R reloadhard -bindurl github.com x stop -bindurl github.com gi focusinput -l -bindurl github.com g? rot13 -bindurl github.com g! jumble -bindurl github.com g; changelistjump -1 -bindurl github.com J tabprev -bindurl github.com K tabnext -bindurl github.com gt tabnext_gt -bindurl github.com gT tabprev -bindurl github.com g^ tabfirst -bindurl github.com g0 tabfirst -bindurl github.com g$ tablast -bindurl github.com ga tabaudio -bindurl github.com gr reader -bindurl github.com gu urlparent -bindurl github.com gU urlroot -bindurl github.com gf viewsource -bindurl github.com : fillcmdline_notrail -bindurl github.com s fillcmdline open search -bindurl github.com S fillcmdline tabopen search -bindurl github.com M gobble 1 quickmark -bindurl github.com B fillcmdline taball -bindurl github.com b fillcmdline tab -bindurl github.com ZZ qall -bindurl github.com f hint -bindurl github.com F hint -b -bindurl github.com gF hint -qb -bindurl github.com ;i hint -i -bindurl github.com ;b hint -b -bindurl github.com ;o hint -bindurl github.com ;I hint -I -bindurl github.com ;k hint -k -bindurl github.com ;K hint -K -bindurl github.com ;y hint -y -bindurl github.com ;Y hint -cF img i => tri.excmds.yankimage(tri.urlutils.getAbsoluteURL(i.src)) -bindurl github.com ;p hint -p -bindurl github.com ;h hint -h -bindurl github.com v hint -h -bindurl github.com ;P hint -P -bindurl github.com ;r hint -r -bindurl github.com ;s hint -s -bindurl github.com ;S hint -S -bindurl github.com ;a hint -a -bindurl github.com ;A hint -A -bindurl github.com ;; hint -; * -bindurl github.com ;# hint -# -bindurl github.com ;v hint -W mpvsafe -bindurl github.com ;V hint -V -bindurl github.com ;w hint -w -bindurl github.com ;t hint -W tabopen -bindurl github.com ;O hint -W fillcmdline_notrail open -bindurl github.com ;W hint -W fillcmdline_notrail winopen -bindurl github.com ;T hint -W fillcmdline_notrail tabopen -bindurl github.com ;z hint -z -bindurl github.com ;m composite hint -Jpipe img src | open images.google.com/searchbyimage?image_url= -bindurl github.com ;M composite hint -Jpipe img src | tabopen images.google.com/searchbyimage?image_url= -bindurl github.com ;gi hint -qi -bindurl github.com ;gI hint -qI -bindurl github.com ;gk hint -qk -bindurl github.com ;gy hint -qy -bindurl github.com ;gp hint -qp -bindurl github.com ;gP hint -qP -bindurl github.com ;gr hint -qr -bindurl github.com ;gs hint -qs -bindurl github.com ;gS hint -qS -bindurl github.com ;ga hint -qa -bindurl github.com ;gA hint -qA -bindurl github.com ;g; hint -q; -bindurl github.com ;g# hint -q# -bindurl github.com ;gv hint -qW mpvsafe -bindurl github.com ;gw hint -qw -bindurl github.com ;gb hint -qb -bindurl github.com ;gF hint -qb -bindurl github.com ;gf hint -q -bindurl github.com mode ignore -bindurl github.com mode ignore -bindurl github.com mode ignore -bindurl github.com mode ignore -bindurl github.com composite mode normal ; hidecmdline -bindurl github.com composite mode normal ; hidecmdline -bindurl github.com a current_url bmark -bindurl github.com A bmark -bindurl github.com zi zoom 0.1 true -bindurl github.com zo zoom -0.1 true -bindurl github.com zm zoom 0.5 true -bindurl github.com zr zoom -0.5 true -bindurl github.com zM zoom 0.5 true -bindurl github.com zR zoom -0.5 true -bindurl github.com zz zoom 1 -bindurl github.com zI zoom 3 -bindurl github.com zO zoom 0.3 -bindurl github.com . repeat -bindurl github.com ba open https://www.youtube.com/watch?v=M3iOROuTuMA bindurl gitlab.com gp open gitlab.com/Asocia +bindurl gitlab.com gc composite git_clone | clipboard yank +bindurl gitlab.com gC composite git_clone_ssh | clipboard yank +bindurl gitlab.com yr composite js "\"" + document.location.href.split('#')[0].split('/').slice(3, 5).join('/') + "\"" | clipboard yank bindurl reddit.com gp open reddit.com/user/Asocia bindurl stackoverflow.com gp open stackoverflow.com/users/9608759/asocia bindurl youtube.com p composite get_current_url | mpvsafe bindurl youtube.com P hint -W mpvsafe -bindurl ^https://web.whatsapp.com f hint -c [tabindex]:not(.two)>div,a -bindurl ^https://web.whatsapp.com F hint -bc [tabindex]:not(.two)>div,a " Subconfig Settings seturl monkeytype.com allowautofocus true @@ -335,91 +36,11 @@ seturl overleaf.com allowautofocus true seturl .*/.*\.ipynb allowautofocus true seturl nitrotype.com allowautofocus true -" Aliases -alias git_clone js "git clone " + document.location.href.split('#')[0].split('/').slice(0, 5).join('/') + " ;cd " + document.location.href.split('#')[0].split('/').at(4) -alias git_clone_ssh js "git clone " + document.location.href.split('#')[0].split('/').slice(0, 5).join('/').replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") + " ;cd " + document.location.href.split('#')[0].split('/').at(4) -command alias command -alias au autocmd -alias aucon autocontain -alias audel autocmddelete -alias audelete autocmddelete -alias blacklistremove autocmddelete DocStart -alias b tab -alias clsh clearsearchhighlight -alias nohlsearch clearsearchhighlight -alias noh clearsearchhighlight -alias o open -alias w winopen -alias t tabopen -alias tabnew tabopen -alias tabm tabmove -alias tabo tabonly -alias tn tabnext_gt -alias bn tabnext_gt -alias tnext tabnext_gt -alias bnext tabnext_gt -alias tp tabprev -alias tN tabprev -alias bp tabprev -alias bN tabprev -alias tprev tabprev -alias bprev tabprev -alias tabfirst tab 1 -alias tablast tab 0 -alias bfirst tabfirst -alias blast tablast -alias tfirst tabfirst -alias tlast tablast -alias buffer tab -alias bufferall taball -alias bd tabclose -alias bdelete tabclose -alias quit tabclose -alias q tabclose -alias qa qall -alias sanitize sanitise -alias saveas! saveas --cleanup --overwrite -alias tutorial tutor -alias h help -alias unmute mute unmute -alias authors credits -alias openwith hint -W -alias ! exclaim -alias !s exclaim_quiet -alias containerremove containerdelete -alias colours colourscheme -alias colorscheme colourscheme -alias colors colourscheme -alias man help -alias !js fillcmdline_tmp 3000 !js is deprecated. Please use js instead -alias !jsb fillcmdline_tmp 3000 !jsb is deprecated. Please use jsb instead -alias get_current_url js document.location.href -alias current_url composite get_current_url | fillcmdline_notrail -alias stop js window.stop() -alias zo zoom -alias installnative nativeinstall -alias nativeupdate updatenative -alias mkt mktridactylrc -alias mkt! mktridactylrc -f -alias mktridactylrc! mktridactylrc -f -alias mpvsafe js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('mpv --no-terminal ' + url)) -alias drawingstop no_mouse_mode -alias exto extoptions -alias extpreferences extoptions -alias extp extpreferences -alias prefset setpref -alias prefremove removepref -alias tabclosealltoright tabcloseallto right -alias tabclosealltoleft tabcloseallto left -alias reibadailty jumble - " Autocmds autocmd DocStart monkeytype.com mode ignore autocmd DocStart overleaf.com mode ignore autocmd DocStart undefined mode ignore autocmd DocStart .*/.*\.ipynb mode ignore -autocmd DocLoad ^https://github.com/tridactyl/tridactyl/issues/new$ issue -autocmd TriStart .* source_quiet " For syntax highlighting see https://github.com/tridactyl/vim-tridactyl -" vim: set filetype=tridactyl \ No newline at end of file +" vim: set filetype=tridactyl