1
0
Fork 0
Browse Source

[tridactyl] Add tabsort and tabuniq as well as a video binding

main
Sebastian Schulze 2 years ago
parent
commit
4e118591b4
Failed to generate hash of commit
  1. 10
      dot_tridactylrc

10
dot_tridactylrc

@ -1,5 +1,13 @@ @@ -1,5 +1,13 @@
" Mostly 'inspired' by @bovine3dom's tridactylrc
alias tabsort jsb browser.tabs.query({}).then(tabs => tabs.sort((t1, t2) => t1.url.localeCompare(t2.url)).forEach((tab, index) => browser.tabs.move(tab.id, {index})))
alias tabuniq jsb browser.tabs.query({}).then(tabs => browser.tabs.remove(tabs.filter((tab, index) => tabs.slice(index + 1).find(t => t.url == tab.url)).map(tab => tab.id)))
set tabopencontaineraware true
bind V js tri.native.run(`mpv --ontop --keepaspect-window --profile=protocol.http '${document.location.href}'`)
" Keep GitLab et al from binding quickfind to /
bind / fillcmdline find
bind ? fillcmdline find -?
@ -47,4 +55,4 @@ set hintnames numeric @@ -47,4 +55,4 @@ set hintnames numeric
" Defaults to 300ms but I'm a 'move fast and close the wrong tabs' kinda chap
set hintdelay 100
" vim: set filetype=tridactyl
" vim: set filetype=tridactyl
Loading…
Cancel
Save