diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-29 22:32:38 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-29 22:32:52 +0100 |
commit | 6c4b7671df166bec49b1a175f759974ff5962a38 (patch) | |
tree | 3c31ced89b880df1c3870145667503bea24ee5e3 /res | |
parent | f2daba3542cabb4741e2dc38d1bf36a2d1564f60 (diff) | |
download | chawan-6c4b7671df166bec49b1a175f759974ff5962a38.tar.gz |
Add siteconf, fix lineedit bugs
This enables rule-based dynamic url rewriting. Also, lineedit is a bit less broken now (though it's still less than ideal.)
Diffstat (limited to 'res')
-rw-r--r-- | res/config.toml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/res/config.toml b/res/config.toml index c2c612fa..2106e0b0 100644 --- a/res/config.toml +++ b/res/config.toml @@ -10,6 +10,10 @@ highlight-color = "cyan" double-width-ambiguous = false minimum-contrast = 100 +[[siteconf]] +url = '^ddg:' +substitute_url = '(x) => "https://lite.duckduckgo.com/lite/?kp=-1&kd=-1&q=" + x.substring(4)' + [page] q = 'quit()' h = 'pager.cursorLeft()' @@ -50,6 +54,7 @@ C-m = 'pager.click()' C-j = 'pager.click()' M-u = 'pager.dupeBuffer()' C-l = 'pager.load()' +C-k = 'pager.load("ddg:")' U = 'pager.reload()' r = 'pager.redraw()' R = 'pager.reshape()' |