mirror of
https://github.com/sigmasternchen/Pensieve
synced 2025-03-15 07:58:54 +00:00
using pager link
This commit is contained in:
parent
eb9d7ed737
commit
3b2b66e5f7
1 changed files with 3 additions and 2 deletions
5
pensieve
5
pensieve
|
@ -153,7 +153,8 @@ if test "$mode" = "read"; then
|
||||||
|
|
||||||
fl=$(echo "$content" | grep -n "$SEPERATOR" | sed $fl'q;d' | cut -f1 -d:)
|
fl=$(echo "$content" | grep -n "$SEPERATOR" | sed $fl'q;d' | cut -f1 -d:)
|
||||||
|
|
||||||
echo "$content" | less +$fl
|
# TODO maybe the following line just works with less
|
||||||
|
echo "$content" | pager +$fl
|
||||||
|
|
||||||
exit $EXIT_SUCCESS
|
exit $EXIT_SUCCESS
|
||||||
fi
|
fi
|
||||||
|
@ -161,7 +162,7 @@ if test "$mode" = "read"; then
|
||||||
if test "$pager" = 0; then
|
if test "$pager" = 0; then
|
||||||
echo "$content"
|
echo "$content"
|
||||||
else
|
else
|
||||||
echo "$content" | less
|
echo "$content" | pager
|
||||||
fi
|
fi
|
||||||
exit $EXIT_SUCCESS
|
exit $EXIT_SUCCESS
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue