about summary refs log tree commit homepage
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/lei-completion.bash19
-rw-r--r--contrib/css/216dark.css5
-rw-r--r--contrib/css/216light.css5
3 files changed, 25 insertions, 4 deletions
diff --git a/contrib/completion/lei-completion.bash b/contrib/completion/lei-completion.bash
new file mode 100644
index 00000000..b86afa2c
--- /dev/null
+++ b/contrib/completion/lei-completion.bash
@@ -0,0 +1,19 @@
+# Copyright (C) all contributors <meta@public-inbox.org>
+# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
+
+# preliminary bash completion support for lei (Local Email Interface)
+# Needs a lot of work, see `lei__complete' in lib/PublicInbox::LEI.pm
+_lei() {
+        local wordlist="$(lei _complete ${COMP_WORDS[@]})"
+        wordlist="${wordlist//;/\\\\;}" # escape ';' for ';UIDVALIDITY' and such
+
+        local word="${COMP_WORDS[COMP_CWORD]}"
+        if test "$word" = ':' && test $COMP_CWORD -ge 1
+        then
+                COMPREPLY=($(compgen -W "$wordlist" --))
+        else
+                COMPREPLY=($(compgen -W "$wordlist" -- "$word"))
+        fi
+        return 0
+}
+complete -o default -o bashdefault -F _lei lei
diff --git a/contrib/css/216dark.css b/contrib/css/216dark.css
index 6fc6cfe7..1277a49a 100644
--- a/contrib/css/216dark.css
+++ b/contrib/css/216dark.css
@@ -5,13 +5,14 @@
  * It reduces eyestrain for me, and energy usage for all:
  * https://en.wikipedia.org/wiki/Light-on-dark_color_scheme
  */
-* { background:#000; color:#ccc }
+* { font-size: 100%; font-family: monospace; background:#000; color:#ccc }
+pre { white-space: pre-wrap }
 
 /*
  * Underlined links add visual noise which make them hard-to-read.
  * Use colors to make them stand out, instead.
  */
-a { color:#69f; text-decoration:none }
+a:link { color:#69f; text-decoration:none }
 a:visited { color:#96f }
 
 /* quoted text in emails gets a different color */
diff --git a/contrib/css/216light.css b/contrib/css/216light.css
index 559a6b74..0c781d53 100644
--- a/contrib/css/216light.css
+++ b/contrib/css/216light.css
@@ -4,13 +4,14 @@
  * Suitable for print, and blinding people with brightness.
  * Haphazardly thrown together because bright colors hurt my eyes
  */
-* { background:#fff; color:#333 }
+* { font-size: 100%; font-family: monospace; background:#fff; color:#003 }
+pre { white-space: pre-wrap }
 
 /*
  * Underlined links add visual noise which make them hard-to-read.
  * Use colors to make them stand out, instead.
  */
-a { color:#00f; text-decoration:none }
+a:link { color:#00f; text-decoration:none }
 a:visited { color:#808 }
 
 /* quoted text gets a different color */