Compare commits

...

2 commits

Author SHA1 Message Date
c6c4c6b201 exportmd: Embed images en docx, rtf, epub 2022-06-24 16:58:11 -03:00
5960280976 Revert "zsh: Desactivar autocompletación de menú"
This reverts commit 754317859c.
2022-06-24 16:12:42 -03:00
2 changed files with 7 additions and 2 deletions

View file

@ -59,8 +59,10 @@ if test "$format" = epub -o "$format" = rtf -o "$format" = docx; then
#if which pandoc >/dev/null; then #if which pandoc >/dev/null; then
# pandoc --reference-doc=$HOME/template.docx -s -o "$output" "$htmlfile" # pandoc --reference-doc=$HOME/template.docx -s -o "$output" "$htmlfile"
if which libreoffice >/dev/null; then if which libreoffice >/dev/null; then
echo libreoffice --headless --writer --convert-to "$format" "$htmlfile" embed_dir="$(mktemp -d)"
libreoffice --headless --writer --convert-to "$format" "$htmlfile" libreoffice --headless --writer --convert-to "html:HTML (StarWriter):EmbedImages" --outdir "$embed_dir" "$htmlfile"
libreoffice --headless --writer --convert-to "$format" "$embed_dir"/*
rm -r "$embed_dir"
else else
echo "No tengo libreoffice para convertir a $format." echo "No tengo libreoffice para convertir a $format."
rm "$htmlfile" rm "$htmlfile"

3
.zshrc
View file

@ -12,6 +12,9 @@ bindkey -e
bindkey "^[f" forward-word bindkey "^[f" forward-word
bindkey "^[b" backward-word bindkey "^[b" backward-word
zmodload zsh/complist
zstyle ':completion:*' menu yes select
zstyle ':completion:*' list-dirs-first yes zstyle ':completion:*' list-dirs-first yes
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'