James Patrick
e47f573719
Lifted from https://github.com/glacambre/.dotfiles/blob/master/default/.config/tridactyl/tridactylrc
48 lines
2.3 KiB
Plaintext
48 lines
2.3 KiB
Plaintext
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
"░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
"░▀█▀░█▀▄░▀█▀░█▀▄░█▀█░█▀▀░▀█▀░█░█░█░░░█▀▄░█▀▀░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
"░░█░░█▀▄░░█░░█░█░█▀█░█░░░░█░░░█░░█░░░█▀▄░█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
"░░▀░░▀░▀░▀▀▀░▀▀░░▀░▀░▀▀▀░░▀░░░▀░░▀▀▀░▀░▀░▀▀▀░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
"░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
|
|
"
|
|
|
|
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)))
|
|
|
|
" Toggle expand/collapse for comments.
|
|
bind ;c hint -c [class*="expand"],[class="togg"]
|
|
|
|
" match vimperators back/forward function.
|
|
command ba back
|
|
command fo foward
|
|
|
|
" restore bookmarks
|
|
unbind <C-b>
|
|
|
|
" use h/l to cycle though tabs.
|
|
bind h tabprev
|
|
bind l tabnext
|
|
|
|
" Better find.
|
|
unbind <C-f>
|
|
bind / fillcmdline find
|
|
bind ? fillcmdline find -?
|
|
bind n findnext 1
|
|
bind N findnext -1
|
|
bind ,<Space> nohlsearch
|
|
|
|
" Text to speech is broken on all of my firefox instances. I'll just use my
|
|
" own.
|
|
unbind ;r
|
|
bind ;r composite hint -pipe * textContent | shellescape | exclaim_quiet ./scripts/speak
|
|
|
|
" Settings
|
|
set smoothscroll true
|
|
set incsearch true
|
|
|
|
" Use custom theme
|
|
colorscheme onedark
|
|
|
|
" vim: set filetype=vim:
|
|
" -*- mode: vim -*-
|