]> Sergey Matveev's repositories - dotfiles.git/commitdiff
More recoll related tunes
authorSergey Matveev <stargrave@stargrave.org>
Wed, 15 Dec 2021 12:02:42 +0000 (15:02 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 27 Jan 2022 11:35:14 +0000 (14:35 +0300)
recoll/.recoll/recoll.conf [new file with mode: 0644]
recoll/bin/rcl [new file with mode: 0755]
zsh/.zsh/env/005recoll.zsh [new file with mode: 0644]

diff --git a/recoll/.recoll/recoll.conf b/recoll/.recoll/recoll.conf
new file mode 100644 (file)
index 0000000..1a058bf
--- /dev/null
@@ -0,0 +1,16 @@
+unac_except_trans = ää Ää öö Öö üü Üü ßss œoe Œoe æae Æae fifi flfl
+
+topdirs = \
+       /usr/local/lib/perl5/5.26/perl/man \
+       /usr/local/lib/perl5/site_perl/man \
+       /usr/share/openssl/man \
+       /usr/local/share/man \
+       /usr/local/man \
+       /usr/share/man \
+       ~/local/share/man \
+       ~/doc/rfc \
+       ~/notes \
+       ~/work/stc/doc
+
+[~/doc/rfc]
+skippedNames = *.p7s *.xml
diff --git a/recoll/bin/rcl b/recoll/bin/rcl
new file mode 100755 (executable)
index 0000000..d4f995b
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+recollq -A "$@" 2>/dev/null | perl -ne '
+    if (/^ABSTRACT/../^\/ABSTRACT/) {
+        print "\t$_" unless /^.?ABSTRACT/;
+        next;
+    };
+    next unless /^(.*)\t\[file:\/\/(.*)\]\t\[.*\]\t\d+\t.*\t.*$/;
+    print "$2\t$1\n";
+' | spc -e grn,"(^/.*)"
diff --git a/zsh/.zsh/env/005recoll.zsh b/zsh/.zsh/env/005recoll.zsh
new file mode 100644 (file)
index 0000000..11c8af1
--- /dev/null
@@ -0,0 +1 @@
+export RECOLL_DATADIR=~/local/stow/recoll/share/recoll