all repos — shlide @ 6d0c7349450108af8430b6f58bf28650cfda0329

slide deck presentation tool written in pure bash

Merge branch 'master' of github.com:icyphox/shlide
Anirudh Oppiliappan x@icyphox.sh
Fri, 07 Feb 2020 19:30:18 +0530
commit

6d0c7349450108af8430b6f58bf28650cfda0329

parent

fe30b0a469aee6e8a639ffcea0b5b9dc21eb847a

2 files changed, 5 insertions(+), 3 deletions(-)

jump to
M readme.mdreadme.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 shlideshlide

@@ -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")