Merge branch 'master' of github.com:icyphox/shlide
Anirudh Oppiliappan x@icyphox.sh
Fri, 07 Feb 2020 19:30:18 +0530
M
readme.md
→
readme.md
@@ -1,12 +1,13 @@
# shlide > a slide deck presentation tool written in pure bash -![scrot](https://files.nerdypepper.tech/k7.png) +![scrot](https://u.peppe.rs/k7.png) ## Features - All slides are plain-text files. - Navigation using `j` / `k` or `n` / `p`. +- You can also navigate to the next slide using `SPACE` or `ENTER`. - Text color and style formatting. - Pure bash.
M
shlide
→
shlide
@@ -51,11 +51,12 @@ printf '%b' "$dummy"
} # Filter out color sequences. -shopt -s extglob ansi_filter() { + shopt -s extglob local IFS= printf '%s' "${1//$'\e'[\[(]*([0-9;])[@-n]/}" #" A little fix to prevent vim syntax highlighting from breaking. + shopt -u extglob }@@ -154,7 +155,7 @@ # Navigate on j/k/n/p and quit on q.
display "$(<"${slides[$i]}")" "${slides[$i]}" "$i" "${#slides[@]}" read -rsn1 input case "$input" in - "j"|"n") + "j"|"n"|"") ((++i)) ;; "k"|"p")