1
0
Fork 0

Add sort paragraph Hydra option

This commit is contained in:
Tom Willemse 2021-02-27 15:37:09 -08:00
parent c9ad4acc44
commit feec611d17

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
;; Version: 2021.0131.215934
;; Version: 2021.0227.150537
;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key)
;; This program is free software; you can redistribute it and/or modify
@ -91,8 +91,14 @@
^Sort^
^^--------------
_l_: Lines
_p_: Paragraph
_s_: String list"
("l" sort-lines)
("p" (save-excursion
(sort-lines
nil
(progn (start-of-paragraph-text) (point))
(progn (end-of-paragraph-text) (point)))))
("s" (sort-regexp-fields
nil
(rx "\"" (one-or-more (not "\"")) "\"")