Updates tridactylrc and adds gnvim script

The script simply opens a new terminal with nvim running in it, passing
any arguments directly to nvim

This is used by tridactyl to open a text box in vim

Also added some new search engines and some other keybindings
master
Jonathan Hodgson 4 years ago
parent dcad943088
commit 0fa0b5e0a5
  1. 4
      bin/.bin/gnvim
  2. 27
      tridactyl/.config/tridactyl/tridactylrc

@ -0,0 +1,4 @@
#!/usr/bin/env bash
export initialCommand="nvim $@"
/usr/local/bin/st

@ -10,7 +10,12 @@ colours dark
set newtab about:blank set newtab about:blank
set browser firefox-developer-edition set browser firefox-developer-edition
set allowautofocus false set allowautofocus false
set editorcmd /usr/bin/st -e vim set editorcmd $HOME/.bin/gnvim
set smoothscroll true
set newtabfocus page
" Make Tridactyl work on more sites at the expense of some security
"set csp clobber
"""""""""""" """"""""""""
" Search " " Search "
@ -27,6 +32,10 @@ set searchurls.ddg https://duckduckgo.co.uk/?q=%s
set searchurls.aur https://aur.archlinux.org/packages/?O=0&K=%s set searchurls.aur https://aur.archlinux.org/packages/?O=0&K=%s
set searchurls.aw https://wiki.archlinux.org/?search=%s set searchurls.aw https://wiki.archlinux.org/?search=%s
set searchurls.gh https://github.com/search?q=%s set searchurls.gh https://github.com/search?q=%s
set searchurls.wb https://web.archive.org/web/*/%s
set searchurls.books https://b-ok.cc/s/%s
set searchurls.cve https://www.cvedetails.com/cve-details.php?t=1&cve_id=%s
set searchurls.cvep https://www.cvedetails.com/product-search.php?vendor_id=0&search=%s
"""""""""""""" """"""""""""""
" Commands " " Commands "
@ -37,6 +46,11 @@ command openvid withUrl !s open-youtube
command openvidLink composite hint -pipe a[href]:not([display="none"]):not([href=""]) href | !s open-youtube command openvidLink composite hint -pipe a[href]:not([display="none"]):not([href=""]) href | !s open-youtube
command testclickjacking withUrl !s $HOME/.config/tridactyl/scripts/clickjacking | nativeopen command testclickjacking withUrl !s $HOME/.config/tridactyl/scripts/clickjacking | nativeopen
command hint_focus hint -;
command wayback composite get_current_url | tabopen wb
command autodark js document.body.parentElement.classList.toggle("auto-dark")
""""""""""" """""""""""
@ -56,8 +70,17 @@ bind ; fillcmdline_notrail
bind <space>y openvid bind <space>y openvid
bind <space>Y openvidLink bind <space>Y openvidLink
" Url Specific " Git{Hub,Lab} git clone via SSH yank
bind <space>g composite js "git clone " + document.location.href | clipboard yank
bind <space>G composite js "git clone " + document.location.href.replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") | clipboard yank
bind <space>c composite hint_focus; !s xdotool key Menu
" Makes link hints only hint links on duck duck go
bindurl ^https://duckduckgo.com f hint -Jc [class=result__a] bindurl ^https://duckduckgo.com f hint -Jc [class=result__a]
bindurl ^https://duckduckgo.com F hint -Jbc [class=result__a] bindurl ^https://duckduckgo.com F hint -Jbc [class=result__a]
autocmd DocStart .*github\.com.* zoom 150
autocmd DocStart .*gitlab\.com.* zoom 150
autocmd DocStart .*archlinux\.org.* zoom 150

Loading…
Cancel
Save