" General Settings
set configversion 1.9
set update.lastchecktime 1595863715072
set update.nag true
set update.nagwait 7
set update.lastnaggedversion 1.14.0
set update.checkintervalsecs 86400
set theme snazzy
set searchurls.gh https://github.com/search?utf8=✓&q=
set searchurls.y https://www.yewtu.be/search?q=
set searchurls.aw https://wiki.archlinux.org/index.php?search=
set searchurls.qt https://doc.qt.io/qt-5/search-results.html?q=
set searchurls.mel https://melpa.org/#/?q=
set searchurls.ser https://search.snopyta.org/?q=
set searchurls.fel https://felgo.com/search-results?q=
set searchurls.o https://www.office.com/search?auth=2&q=
set searchurls.wiki https://en.wikipedia.org/wiki/Special:Search/
set searchurls.g https://www.google.com/search?q=
set searchurls.d https://duckduckgo.com/?q=
set searchurls.s https://search.tfcconnection.org/?q=
set searchurls.ama https://smile.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=
set searchurls.google https://www.google.com/search?q=
set searchurls.googlelucky https://www.google.com/search?btnI=I'm+Feeling+Lucky&q=
set searchurls.scholar https://scholar.google.com/scholar?q=
set searchurls.googleuk https://www.google.co.uk/search?q=
set searchurls.bing https://www.bing.com/search?q=
set searchurls.duckduckgo https://duckduckgo.com/?q=
set searchurls.yahoo https://search.yahoo.com/search?p=
set searchurls.twitter https://twitter.com/search?q=
set searchurls.wikipedia https://en.wikipedia.org/wiki/Special:Search/
set searchurls.amazon https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=
set searchurls.amazonuk https://www.amazon.co.uk/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=
set searchurls.startpage https://startpage.com/do/search?language=english&cat=web&query=
set searchurls.github https://github.com/search?utf8=✓&q=
set searchurls.cnrtl http://www.cnrtl.fr/lexicographie/
set searchurls.osm https://www.openstreetmap.org/search?query=
set searchurls.mdn https://developer.mozilla.org/en-US/search?q=
set searchurls.gentoo_wiki https://wiki.gentoo.org/index.php?title=Special%3ASearch&profile=default&fulltext=Search&search=
set searchurls.qwant https://www.qwant.com/?q=
set searchengine s

"" Quickmarks
set quickmark od https://odysee.com/$/following


" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl
" vim: set filetype=tridactyl

"" Org Capture
command org-capture composite get_current_url | js -p tri.excmds.exclaim_quiet('org-capture ' + JS_ARG);

" MPV
command mpv js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('mpv --profile=fast ' + url))
"" Unbind this key to rebind it later
unbind v

command torrent js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('transadd ' + url))

" YTDL
command ytdl js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('dlvideo ' + url))

command aud js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('dlaudio ' + url))



"" Adding my own bindings
bind v hint -W mpv
bind gt hint -W torrent
bind gv current_url mpv
bind ga hint -W aud 
bind gV hint -W ytdl
bind F hint -t
bind gy hint -y
bind gc org-capture
bind gC hint -W org-capture
bind m fillcmdline quickmark 
bind O fillcmdline tabopen

"" buffers show as windows
bind b fillcmdline taball 

"" Smoothscroll
set smoothscroll false

bind --mode=ex <C-j> ex.next_completion
bind --mode=ex <C-k> ex.prev_completion

"" unbind Ctrl-F
unbind <C-f>