summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2024-10-30 12:08:01 +0900
committerA Farzat <a@farzat.xyz>2024-11-12 12:08:01 +0900
commit486f1a3eae7df69e66e514602501f855e1cb2c09 (patch)
treeba69af0170fda73596ecf5a3f9c499691acf0ad9
parent1e2fd005d51152afe6cc4966cdb0ec9f8d2b44c7 (diff)
downloaddotfiles-486f1a3eae7df69e66e514602501f855e1cb2c09.tar.gz
dotfiles-486f1a3eae7df69e66e514602501f855e1cb2c09.zip
Add tridactyl config
-rw-r--r--.config/tridactyl/tridactylrc19
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/tridactyl/tridactylrc b/.config/tridactyl/tridactylrc
new file mode 100644
index 0000000..ec070ff
--- /dev/null
+++ b/.config/tridactyl/tridactylrc
@@ -0,0 +1,19 @@
+" General Settings
+set editorcmd tridactyl_edit %f %l %c
+set theme dark
+set searchurls.searx_redirect https://search.libredirect.invalid/?q=%s
+set searchengine searx_redirect
+
+" Binds
+bind --mode=insert <C-i> editor_rm
+bind ;gl hint -qW linkhandlersafe
+
+" Aliases
+alias editor_rm composite editor | jsb -p tri.native.run(`rm -f '${JS_ARG[0]}'`)
+alias linkhandlersafe js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('linkhandler ' + url))
+
+" Save using :mkt <filename>
+" Load using :source
+
+" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl
+" vim: set filetype=tridactyl