[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote aab484d617 258/355: Sort grep output with string
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote aab484d617 258/355: Sort grep output with string-lessp |
Date: |
Sun, 26 Jun 2022 23:58:30 -0400 (EDT) |
branch: externals/denote
commit aab484d617e9e9a08af9740aa3a66f614ddb6646
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Sort grep output with string-lessp
This is a follow-up to commit 429763c. Basically, we want the file
names to come in a predictable order, otherwise it can be hard to get a
sense of their time range.
---
denote-retrieve.el | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/denote-retrieve.el b/denote-retrieve.el
index e12734ee83..8ae8f5cb7e 100644
--- a/denote-retrieve.el
+++ b/denote-retrieve.el
@@ -106,22 +106,24 @@ Optional GROUP is a regexp construct for
(let* ((default-directory (denote-directory))
(file (file-name-nondirectory (buffer-file-name))))
(denote-retrieve--files-in-output
- (process-lines
- "find"
- default-directory
- "-maxdepth" "1"
- "-type" "f"
- "!" "-name" file
- "-exec"
- grep-program
- "--color=never"
- "-m"
- "1"
- "-e"
- identifier
- "{}"
- ";"
- "-print"))))
+ (sort
+ (process-lines
+ "find"
+ default-directory
+ "-maxdepth" "1"
+ "-type" "f"
+ "!" "-name" file
+ "-exec"
+ grep-program
+ "--color=never"
+ "-m"
+ "1"
+ "-e"
+ identifier
+ "{}"
+ ";"
+ "-print")
+ #'string-lessp))))
(provide 'denote-retrieve)
;;; denote-retrieve.el ends here
- [elpa] externals/denote 683180bcfc 206/355: Remove superfluous function and var, (continued)
- [elpa] externals/denote 683180bcfc 206/355: Remove superfluous function and var, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 2e56f06381 201/355: Install aliases for certain commands, ELPA Syncer, 2022/06/26
- [elpa] externals/denote f8b2d44508 203/355: Depend on Emacs 27.2, not 27.1, ELPA Syncer, 2022/06/26
- [elpa] externals/denote a0525a0154 216/355: Do not try front matter rewrite on non-notes, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 74962d17f2 217/355: Improve denote-retrieve error handling, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 5228b1bb17 231/355: Sort 'denote-link-add-links' contents, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 75cf3d31d0 288/355: Accept optional BEG and END for buttonization, ELPA Syncer, 2022/06/26
- [elpa] externals/denote b651200fdf 236/355: Include "hackability" in the manual's overview, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 55140b83f4 275/355: Clarify point about org-roam database, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 6a254238f9 296/355: Mark buttonization task as done, ELPA Syncer, 2022/06/26
- [elpa] externals/denote aab484d617 258/355: Sort grep output with string-lessp,
ELPA Syncer <=
- [elpa] externals/denote 5be48c4186 286/355: Expand the FAQ section, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 1b9a6a12a0 290/355: Add autoload cookie for buttonization function, ELPA Syncer, 2022/06/26
- [elpa] externals/denote bb296d35a1 254/355: Tweak some statements in the manual, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 85b5290e8b 229/355: Fix bug where Unicode chars are not encoded, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 1f87a456c5 353/355: denote--punctuation-regexp: Forbid usage of slash in filenames, ELPA Syncer, 2022/06/26
- [elpa] externals/denote fe8042e302 337/355: Account for target file when formatting link, ELPA Syncer, 2022/06/26
- [elpa] externals/denote d304e3556f 281/355: Add regexp for plain link format, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 987854d96c 298/355: Add missing findex directive for denote-dired-mode, ELPA Syncer, 2022/06/26
- [elpa] externals/denote ddbbe549b6 283/355: Use function to test if file likely is a note, ELPA Syncer, 2022/06/26
- [elpa] externals/denote 62e7adfbdb 269/355: Replace superfluous 'let*' with 'let', ELPA Syncer, 2022/06/26