This repository has no description
1.4 kB
35 lines
1" Tridactyl configuration
2" Source this file from ~/.config/tridactyl/tridactylrc with:
3" source /path/to/this/tridactylrc
4
5" Disable Tridactyl completely on sites that break with it
6" Uses seturl with regex pattern - prevents Tridactyl from injecting anything
7seturl my\.sevdesk\.de superignore true
8
9" Smooth scrolling
10set smoothscroll true
11
12" Don't focus input fields automatically
13set allowautofocus false
14
15" Allow autofocus on HedgeDoc/CodiMD instances (detected dynamically)
16autocmd DocLoad .* js if (document.title.includes('HedgeDoc') || document.title.includes('CodiMD') || document.querySelector('meta[name="application-name"][content="HedgeDoc"]')) { tri.excmds.set('allowautofocus', 'true'); }
17
18" Remove dangerous default binding (d closes tab)
19unbind d
20
21" Enter ignore mode with Insert key (exit with Shift+Escape)
22bind <Insert> mode ignore
23
24" Show hints for input fields with ;e
25bind ;e hint -t input,textarea,select
26
27" Open current page in mpv (using mpvsafe for proper escaping)
28bind gv composite get_current_url | mpvsafe
29
30" Open current page through archive.ph (newest snapshot, opens directly)
31bind gA js tri.excmds.tabopen('https://archive.ph/newest/' + document.location.href)
32" Custom command to open URL via archive.ph
33command archiveph js -p tri.excmds.tabopen('https://archive.ph/newest/' + JS_ARG)
34" Select a link and open it through archive.ph
35bind ;gA hint -W archiveph