[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 2f5bfc0 144/348: counsel.el (counsel-dpkg): New command
From: |
Oleh Krehel |
Subject: |
[elpa] master 2f5bfc0 144/348: counsel.el (counsel-dpkg): New command |
Date: |
Sat, 8 Apr 2017 11:03:44 -0400 (EDT) |
branch: master
commit 2f5bfc09639064b5f7407e6d8b8ab87836ea3161
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-dpkg): New command
---
counsel.el | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/counsel.el b/counsel.el
index aa1106b..89584fe 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1475,6 +1475,27 @@ INITIAL-INPUT can be given as the initial minibuffer
input."
:unwind #'counsel-delete-process
:caller 'counsel-locate))
+;;** `counsel-dpkg'
+;;;###autoload
+(defun counsel-dpkg ()
+ "Call the \"dpkg\" shell command."
+ (interactive)
+ (let ((cands (mapcar
+ (lambda (x)
+ (let ((y (split-string x " +")))
+ (setq col1 (max col1 (length (nth 1 y))))
+ (cons (format "%-40s %s"
+ (ivy--truncate-string
+ (nth 1 y) 40)
+ (nth 4 y))
+ (mapconcat #'identity y " "))))
+ (split-string
+ (shell-command-to-string "dpkg -l | tail -n+6") "\n" t))))
+ (ivy-read "dpkg: " cands
+ :action (lambda (x)
+ (message (cdr x)))
+ :caller 'counsel-dpkg)))
+
;;** File Jump and Dired Jump
;;;###autoload
- [elpa] master abdbfa7 273/348: counsel.el: Add counsel-org-agenda-headlines, (continued)
- [elpa] master abdbfa7 273/348: counsel.el: Add counsel-org-agenda-headlines, Oleh Krehel, 2017/04/08
- [elpa] master 482c3e9 279/348: counsel.el (counsel-ace-link): Use `cdr' for action., Oleh Krehel, 2017/04/08
- [elpa] master e4c248a 278/348: doc/ivy.org: Update package names in ELPA/MELPA, Oleh Krehel, 2017/04/08
- [elpa] master 6e6738c 294/348: counsel.el (counsel-git-grep-cmd-default): Use '%s' quoting, Oleh Krehel, 2017/04/08
- [elpa] master d4e5d79 290/348: counsel.el (counsel-package): Fix sorting issue, Oleh Krehel, 2017/04/08
- [elpa] master 15f89f7 295/348: ivy.el (ivy-minibuffer-map): Bind "C-v" and scroll-up-command, Oleh Krehel, 2017/04/08
- [elpa] master ab6561f 321/348: ivy.el: Use set-ivy-index instead of setq ivy--index, Oleh Krehel, 2017/04/08
- [elpa] master 45383fe 330/348: ivy-overlay.el (ivy-display-function-overlay): Put overlay at symbol start, Oleh Krehel, 2017/04/08
- [elpa] master 1d32ceb 332/348: counsel.el (counsel-irony): New command, Oleh Krehel, 2017/04/08
- [elpa] master ace01d5 347/348: ivy.el (ivy-immediate-done): Fix for rgrep, Oleh Krehel, 2017/04/08
- [elpa] master 2f5bfc0 144/348: counsel.el (counsel-dpkg): New command,
Oleh Krehel <=
- [elpa] master d7a1fda 143/348: swiper.el (swiper-all): "M-q" calls query-replace, Oleh Krehel, 2017/04/08
- [elpa] master 5a4ede4 130/348: Fix swiper-all for ivy--regex-ignore-order, Oleh Krehel, 2017/04/08
- [elpa] master 5787780 137/348: Makefile (plain): Print version, Oleh Krehel, 2017/04/08
- [elpa] master 72784c1 149/348: counsel.el (counsel-imenu): Force rescan if requested, Oleh Krehel, 2017/04/08
- [elpa] master 01b0195 306/348: Correct Circe major-modes in ...-font-lock-exclude, Oleh Krehel, 2017/04/08
- [elpa] master 94a466f 341/348: ivy.el: Clean up whitespace, Oleh Krehel, 2017/04/08
- [elpa] master 1220781 131/348: counsel.el (counsel-find-file): Speed up opening remotes, Oleh Krehel, 2017/04/08
- [elpa] master 63dd0d3 134/348: counsel.el (counsel-git-grep-proj-function): Use greedy regex, Oleh Krehel, 2017/04/08
- [elpa] master d41212e 172/348: ivy.el (ivy--insert-minibuffer): Handle empty string, Oleh Krehel, 2017/04/08
- [elpa] master 8632f33 175/348: counsel.el: Update description comment., Oleh Krehel, 2017/04/08