Add sort paragraph Hydra option
This commit is contained in:
parent
c9ad4acc44
commit
feec611d17
1 changed files with 7 additions and 1 deletions
|
@ -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 "\"")) "\"")
|
||||
|
|
Loading…
Reference in a new issue