1
0
Fork 0

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

main
Sebastian Schulze 2021-01-12 09:42:06 +01:00
parent 9eb004eabf
commit 4e118591b4
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 9 additions and 1 deletions

View File

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