editor/evil: update docstring for +evil:align* commands

This commit is contained in:
Henrik Lissner 2019-10-10 21:38:08 -04:00
parent aac843511b
commit 7654764713
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -57,10 +57,13 @@
;;; Ex Commands ;;; Ex Commands
;;;###autoload (autoload '+evil:align "editor/evil/autoload/ex" nil t) ;;;###autoload (autoload '+evil:align "editor/evil/autoload/ex" nil t)
(evil-define-operator +evil:align (beg end pattern &optional flags) (evil-define-command +evil:align (beg end pattern &optional flags)
"Ex interface to `align-regexp'. PATTERN is a vim-style regexp. If BANG, "Ex interface to `align-regexp'.
repeat the alignment for all matches (otherwise just the first match on each
line)." PATTERN is a vim-style regexp. FLAGS is an optional string of characters.
Supports the following flags:
g Repeat alignment on all matches in each line"
(interactive "<r><//>") (interactive "<r><//>")
(align-regexp (align-regexp
beg end beg end
@ -68,10 +71,13 @@ line)."
1 1 (memq ?g flags))) 1 1 (memq ?g flags)))
;;;###autoload (autoload '+evil:align-right "editor/evil/autoload/ex" nil t) ;;;###autoload (autoload '+evil:align-right "editor/evil/autoload/ex" nil t)
(evil-define-operator +evil:align-right (beg end pattern &optional flags) (evil-define-command +evil:align-right (beg end pattern &optional flags)
"Like `+evil:align', except alignments are right-justified. PATTERN is a "Ex interface to `align-regexp' that right-aligns matches.
vim-style regexp. If BANG, repeat the alignment for all matches (otherwise just
the first match on each line)." PATTERN is a vim-style regexp. FLAGS is an optional string of characters.
Supports the following flags:
g Repeat alignment on all matches in each line"
(interactive "<r><//>") (interactive "<r><//>")
(align-regexp (align-regexp
beg end beg end