]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Initial edbrowse
authorSergey Matveev <stargrave@stargrave.org>
Tue, 31 Aug 2021 19:35:26 +0000 (22:35 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Tue, 31 Aug 2021 19:43:43 +0000 (22:43 +0300)
eb/.ebrc [new file with mode: 0644]
eb/.inputrc-eb [new file with mode: 0644]
eb/bin/eb [new file with mode: 0755]
mutt/.mime.types
readline/.inputrc

diff --git a/eb/.ebrc b/eb/.ebrc
new file mode 100644 (file)
index 0000000..fa981d3
--- /dev/null
+++ b/eb/.ebrc
@@ -0,0 +1,114 @@
+downdir=/home/stargrave/tmp/
+jar=/tmp/.ebjar
+cachedir=/tmp/.ebcache
+cachesize=200
+webtimer=30
+
+plugin{
+    type=image/webp
+    desc=WebP
+    suffix=webp
+    content=image/webp
+    down_url
+    program=sxiv %i
+}
+
+plugin{
+    type=image/jpeg
+    desc=JPEG
+    suffix=jpg
+    content=image/jpeg
+    down_url
+    program=sxiv %i
+}
+
+plugin{
+    type=image/png
+    desc=PNG
+    suffix=png
+    content=image/png
+    down_url
+    program=sxiv %i
+}
+
+plugin{
+    type=image/jxl
+    desc=JPEG XL
+    suffix=jxl
+    content=image/jxl
+    down_url
+    program=sxiv %i
+}
+
+plugin{
+    type=application/pdf
+    desc=PDF
+    suffix=pdf
+    content=application/pdf
+    down_url
+    program=zat %i
+}
+
+function+S{
+    b https://lite.duckduckgo.com/lite/?q=~0
+    /Next Page/
+    z20
+}
+
+function+Sg{
+    b https://www.google.com/search?q=~0
+    /^{h3/
+    z20
+}
+
+function+Soid{
+    b https://oidref.com/~0
+    /^h1/
+    z20
+}
+
+function+Spy{
+    b https://pypi.org/project/~0/
+    /^h1/
+    z20
+}
+
+function+Srfc{
+    b https://tools.ietf.org/html/rfc~0
+    /^From:/
+    z40
+}
+
+function+Swe{
+    b https://en.wikipedia.org/wiki/~0
+    /^h1/
+    z40
+}
+
+function+Swr{
+    b https://ru.wikipedia.org/wiki/~0
+    /^h1/
+    z40
+}
+
+function+Scroll{
+    +,+20n
+    if(?) {
+        +,$n
+        if(?) {
+            0<Scroll
+        }
+    }
+}
+
+function:init{
+    db0
+    hf
+    ls=lt
+    showall+
+    vs+
+    endm+
+    ll2000
+    js-
+    db2
+}
diff --git a/eb/.inputrc-eb b/eb/.inputrc-eb
new file mode 100644 (file)
index 0000000..02372c9
--- /dev/null
@@ -0,0 +1,3 @@
+$include ~/.inputrc
+
+"\eOP": "<Scroll\n"
diff --git a/eb/bin/eb b/eb/bin/eb
new file mode 100755 (executable)
index 0000000..531fef7
--- /dev/null
+++ b/eb/bin/eb
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+LANG=en_US.UTF-8 INPUTRC=~/.inputrc-eb book=~/.lynx_bookmarks.html \
+    exec rlwrap \
+    --history-filename /tmp/.eb_history \
+    --substitute-prompt "> " \
+    --prompt-colour=red \
+    --complete-filenames \
+    edbrowse $@
index 0faee86962fdcc5802ada3451d6e30a572fd97bd..16a5c489eae728c586d67f4ecd02753ac80f0851 100644 (file)
@@ -1,5 +1,6 @@
 application/gzip gz
 application/pdf pdf
+application/zstd zst
 image/jpeg jpeg jpg
 image/jxl jxl
 image/png png
index 7d95ac63d6227f4ed3e7bc3bb2e91cd4010de225..7bd0c754dd04d0977833459aa45aa131ac8ea3ec 100644 (file)
@@ -6,6 +6,9 @@
 set editing-mode vi
 set show-mode-in-prompt on
 
+set expand-tilde on
+set enable-bracketed-paste on
+
 set colored-stats on
 set colored-completion-prefix on
 set visible-stats on