[tridactyl] Add tabsort and tabuniq as well as a video binding
parent
9eb004eabf
commit
4e118591b4
|
@ -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
|
Loading…
Reference in New Issue