From feec611d17b3a2392c4d74ebca3f754d5e406429 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 27 Feb 2021 15:37:09 -0800 Subject: [PATCH] Add sort paragraph Hydra option --- oni-core.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/oni-core.el b/oni-core.el index 1660dfa..156900f 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; 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 "\"")) "\"")