Des slides dans votre vim - retour accueil
git clone git://bebou.netlib.re/slides.vim
Log | Files | Refs |
commit accb1d533836ecf52f3aa210a0139f9464c6c983 parent 7b65b59efc7211f381308f93e78fadb6582d7d0f Auterice: Marc Chantreux <mc@unistra.fr> Date: Fri, 21 Jan 2022 15:13:15 +0100 add Record command and examples * now you can create PDF and record videos * TODO: document Diffstat:
A | eg/next | | | 5 | +++++ |
A | eg/nope | | | 4 | ++++ |
M | ftplugin/slides.vim | | | 9 | +++++++++ |
3 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/eg/next b/eg/next @@ -0,0 +1,5 @@ +#! /bin/sh +set -e $( awk '{ printf "%03d", $0 + 10 }' last ) +echo $1 > last +gnome-screenshot -f media/$1.png +ffmpeg -v quiet -y -f alsa -i hw:2 media/$1.wav diff --git a/eg/nope b/eg/nope @@ -0,0 +1,4 @@ +#! /bin/sh +set -e $( awk '{ printf "%s %03d", $0, $0 - 10 }' last ) +rm media/$1* +echo $2 > last diff --git a/ftplugin/slides.vim b/ftplugin/slides.vim @@ -3,6 +3,15 @@ " ‹ = 1< " › = 1> +command -nargs=0 Mod set conceallevel=0 nofen list spell +command -nargs=0 Prez set conceallevel=3 fen nolist nospell +command -nargs=0 Record redir @a +\| exe "normal \<c-l>" +\| redraw +\| silent call system("sh ./next") +\| redir END + +nnoremap ,x :Record<cr> " edition commands: inoremap <buffer> (' <space>›<c-o>i inoremap <buffer> (* ▶<space>