permit starting an info viewer (info) on an internal gnu info node. This needed a small shell script and a slight modification in how we search from the viewer command in rclmain_w.cpp. The path is now always searched before the filters directory even if useDesktopOpen is set
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
# A small script to help recoll start info on the node corresponding to
|
||||
# the result document. The title is the node path, but it needs to be
|
||||
# somewhat processed
|
||||
|
||||
fatal()
|
||||
{
|
||||
echo $*
|
||||
exit 1
|
||||
}
|
||||
Usage()
|
||||
{
|
||||
fatal "Usage: rclshowinfo filename top node / sub node [/ ...]"
|
||||
}
|
||||
|
||||
test $# -ge 2 || Usage
|
||||
filename=`echo $1 | sed -e 's!^file://!!'`
|
||||
shift
|
||||
|
||||
# The title set by recoll while indexing is like:
|
||||
# infofilename / first node path element / second node path element ...
|
||||
IFS=/
|
||||
set $*
|
||||
while test $# -gt 1;do
|
||||
shift
|
||||
# node=`echo $1 | sed -e 's/^ *//' -e 's/ *$//'`
|
||||
node=`eval "echo $1"`
|
||||
nodepath="$nodepath '$node'"
|
||||
done
|
||||
|
||||
set -x
|
||||
exec xterm -e "info -f $filename $nodepath"
|
||||
Reference in New Issue
Block a user