" Shamelessly taken from bovine3dom's example configuration file from the docs " Basics {{{ " Use dark color scheme colorscheme dark " Make tridactyl open Vim in my preferred terminal set editorcmd @editorcmd@ " Remove editor file after use alias editor_rm composite editor | jsb -p tri.native.run(`rm -f '${JS_ARG[0]}'`) bind --mode=insert editor_rm bind --mode=input editor_rm " }}} " Binds {{{ " Reddit et al. {{{ " Toggle comments on Reddit, Hacker News, Lobste.rs, LWN bind ;c hint -Jc [class*="expand"],[class*="togg"],[class="comment_folder"],[class="CommentTitle"] " Make `gu` take me back to subreddit from comments bindurl reddit.com gu urlparent 3 " Only hint search results on Google bindurl www.google.com f hint -Jc #search a bindurl www.google.com F hint -Jbc #search a " Only hint search results on DuckDuckGo bindurl ^https://duckduckgo.com f hint -Jc [data-testid="result"] bindurl ^https://duckduckgo.com F hint -Jbc [data-testid="result"] " Only hint item pages on Hacker News bindurl news.ycombinator.com ;f hint -Jc .age > a bindurl news.ycombinator.com ;F hint -Jtc .age > a " }}} " Better bindings {{{ " Handy multiwindow binds bind gd tabdetach bind gD composite tabduplicate; tabdetach " Duplicate a tab without detaching window bind d tabduplicate " Make yy use canonical links on the few websites that support them bind yy clipboard yankcanon " }}} " Search {{{ " Case insensitive only if fully lowercase set findcase smart " Search forward/backward bind / fillcmdline find bind ? fillcmdline find -? " Go to next/previous match bind n findnext 1 bind N findnext -1 " Because :nohls never works bind nohlsearch " Use browser's native find when using Ctrl-F unbind " }}} " }}} " Redirections {{{ " Always redirect Reddit to the old site autocmd DocStart ^http(s?)://www.reddit.com js tri.excmds.urlmodify("-t", "www", "old") " }}} " Disabled websites {{{ blacklistadd netflix.com blacklistadd primevideo.com blacklistadd jellyfin.belanyi.fr " }}} " vim: set filetype=vim foldmethod=marker: