AutoYADM commit: 2025-06-24 19:44:33

This commit is contained in:
Daniel Fichtinger 2025-06-24 19:44:33 -04:00
parent e77e0edb77
commit 66d4e2635a
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,8 @@
declare-user-mode paragraph declare-user-mode paragraph
declare-option -hidden str paragraph_select '<a-a>pj[p' declare-option -hidden str paragraph_select '<a-a>pj[p'
declare-option -hidden str reflow_cmd %{ declare-option -hidden str reflow_cmd %{
fmt -u | sed -E 's/([.!?]) +/\1 /g' fmt -u | perl -CS -pe 's/([.!?])\s{2,}/\1 /g'
# fmt -u | sed -E 's/([.!?]) +/\1 /g'
} }
define-command format-paragraph %{ define-command format-paragraph %{

View file

@ -30,7 +30,7 @@ try %{
set-option global reflow_command %{ set-option global reflow_command %{
cat > "${input=$(mktemp)}" cat > "${input=$(mktemp)}"
# reflow --width "$kak_opt_reflow_width" --tabstop "$kak_opt_tabstop" < "$input" || cat "$input" # reflow --width "$kak_opt_reflow_width" --tabstop "$kak_opt_tabstop" < "$input" || cat "$input"
fmt -u < "$input" || cat "$input" fmt -u < "$input" | perl -CS -pe 's/([.!?])\s{2,}/\1 /g' || cat "$input"
rm -f "$input" rm -f "$input"
} }