[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master a6cd189 192/272: counsel.el (counsel-linux-apps-list): Ski
From: |
Oleh Krehel |
Subject: |
[elpa] master a6cd189 192/272: counsel.el (counsel-linux-apps-list): Skip spaces around = |
Date: |
Mon, 25 Apr 2016 10:13:25 +0000 |
branch: master
commit a6cd18916be10214c7badf174279a0fb1e68a11e
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-linux-apps-list): Skip spaces around =
The spec says to ignore the spaces around "=".
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
Fixes #446
---
counsel.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/counsel.el b/counsel.el
index cea7f4e..499fb48 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1834,14 +1834,14 @@ An extra action allows to switch to the process buffer."
(insert-file-contents (expand-file-name file
"/usr/share/applications"))
(let (name comment exec)
(goto-char (point-min))
- (if (re-search-forward "^Name=\\(.*\\)$" nil t)
+ (if (re-search-forward "^Name *= *\\(.*\\)$" nil t)
(setq name (match-string 1))
(error "File %s has no Name" file))
(goto-char (point-min))
- (when (re-search-forward "^Comment=\\(.*\\)$" nil t)
+ (when (re-search-forward "^Comment *= *\\(.*\\)$" nil t)
(setq comment (match-string 1)))
(goto-char (point-min))
- (when (re-search-forward "^Exec=\\(.*\\)$" nil t)
+ (when (re-search-forward "^Exec *= *\\(.*\\)$" nil t)
(setq exec (match-string 1)))
(if (and exec (not (equal exec "")))
(add-to-list
- [elpa] master 63688c6 267/272: Add a couple tests for ivy-read with alists, (continued)
- [elpa] master 63688c6 267/272: Add a couple tests for ivy-read with alists, Oleh Krehel, 2016/04/25
- [elpa] master cf2c7bc 067/272: Modify "M-n" prediction when region is active, Oleh Krehel, 2016/04/25
- [elpa] master b3f4db7 268/272: ivy.el (ivy--format-minibuffer-line): Update, Oleh Krehel, 2016/04/25
- [elpa] master e9e8ec0 112/272: counsel.el: Shuffle functions, Oleh Krehel, 2016/04/25
- [elpa] master d7561d2 203/272: counsel.el: Reduce counsel-grep char req to 2, Oleh Krehel, 2016/04/25
- [elpa] master 94a7b0f 140/272: * ivy.el (ivy-format-function-line): Remove `extra' parameter., Oleh Krehel, 2016/04/25
- [elpa] master bf7d95f 143/272: Move read-file-name to :display-transformer-fn, Oleh Krehel, 2016/04/25
- [elpa] master 80825a6 082/272: ivy.el: Fixup face docs, Oleh Krehel, 2016/04/25
- [elpa] master 44856a3 219/272: ivy.el (ivy-read): Revert abf880f, Oleh Krehel, 2016/04/25
- [elpa] master 0afb000 077/272: Fix default-directory for ivy-occur + counsel-git-grep, Oleh Krehel, 2016/04/25
- [elpa] master a6cd189 192/272: counsel.el (counsel-linux-apps-list): Skip spaces around =,
Oleh Krehel <=
- [elpa] master e8f516e 182/272: counsel.el (counsel-ag): Add transformer, Oleh Krehel, 2016/04/25
- [elpa] master 6a8da39 206/272: counsel.el (counsel-grep-action): Reveal outlines, Oleh Krehel, 2016/04/25
- [elpa] master 2bd092d 222/272: ivy.el (ivy--minibuffer-setup): Ensure inhibit-field-text-motion is nil, Oleh Krehel, 2016/04/25
- [elpa] master 2ac1d2d 256/272: ivy.el (ivy-occur-press): Set counsel-grep-last-line to nil, Oleh Krehel, 2016/04/25
- [elpa] master 4ebf0b4 215/272: ivy.el: Add `counsel-find-file' transformer., Oleh Krehel, 2016/04/25
- [elpa] master 615dd90 241/272: counsel.el (counsel-grep-action): Work better from ivy-occur, Oleh Krehel, 2016/04/25
- [elpa] master 1485e58 076/272: Add ignore pattern toggling, Oleh Krehel, 2016/04/25
- [elpa] master 8dfff3e 200/272: ivy.el (ivy-next-history-element): Improve, Oleh Krehel, 2016/04/25
- [elpa] master 3177419 216/272: ivy.el (ivy-sort-functions-alist): Update :type, Oleh Krehel, 2016/04/25
- [elpa] master abf880f 214/272: ivy.el (ivy-read): Make "M-o" not modify the action, Oleh Krehel, 2016/04/25