new feat to markslider: autoexec

This commit is contained in:
ville rantanen
2015-01-22 12:08:10 +02:00
parent 7d9fe6ba39
commit 0afebdd778
2 changed files with 14 additions and 5 deletions

12
mvregex
View File

@@ -1,11 +1,15 @@
#!/bin/bash
IFS=$'\n'
if [ -z "$1" ]
then echo rename files in current folder replacing arg1 with arg2.
function helpexit() {
echo rename files in current folder replacing arg1 with arg2.
echo '-n for match non ascii, replace with arg2'
exit
fi
}
IFS=$'\n'
[[ -z "$1" ]] && helpexit
[[ "$1" = "-h" ]] && helpexit
POSTPROC="sed 's, , -> ,'"
which ncsv &>/dev/null && POSTPROC="ncsv -c"
c=0

View File

@@ -109,6 +109,7 @@ do
LINES=$( tput lines )
[ "$cmd" = "e" ] && read -N 1 foo
display_slide "$1" $i
# save cursor location
echo -ne "${E}s"
# ask for user input
@@ -121,6 +122,7 @@ do
echo -ne "${E}1B${E}3Dq:x"
echo -ne "${E}1B${E}3Dm:▲${E}4A"
}
[[ -z "$MARKSLIDER_AUTOEXEC" ]] || slide_exec "$1" $i
read -s -N 1 cmd
# Escape inputed if arrow keys used
[ "$cmd" = "" ] && read -s -N 2 cmd
@@ -244,6 +246,9 @@ $( gnuplot -e "set term dumb 60 15 enhanced; set parametric; set trange [0:10*pi
&( xeyes )
$( ls )
$( echo You can hide commands too... )Hidden command
* Commands are auto-run, if MARKSLIDER_AUTOEXEC=true
${H}${R}NOTE: This setting is potentially dangerous, don't view anyones
presentations but yours with the setting!${Z}
# Hints: Other tools