[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master c8be397 222/348: update 'counsel-bookmark' with the abilit
From: |
Oleh Krehel |
Subject: |
[elpa] master c8be397 222/348: update 'counsel-bookmark' with the ability to create, edit, and delete bookmarks |
Date: |
Sat, 8 Apr 2017 11:04:00 -0400 (EDT) |
branch: master
commit c8be3973a4841a3ee7d05e59666724965ecc8dd8
Author: Bryan Gilbert <address@hidden>
Commit: Bryan Gilbert <address@hidden>
update 'counsel-bookmark' with the ability to create, edit, and delete
bookmarks
---
counsel.el | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/counsel.el b/counsel.el
index 387877c..162a22e 100644
--- a/counsel.el
+++ b/counsel.el
@@ -618,17 +618,23 @@ input corresponding to the chosen variable."
;;;###autoload
(defun counsel-bookmark ()
- "Forward to `bookmark-jump'."
+ "Forward to `bookmark-jump' or `bookmark-set' if bookmark doesn't exist."
(interactive)
(require 'bookmark)
- (ivy-read "Jump to bookmark: "
+ (ivy-read "Create or jump to bookmark: "
(bookmark-all-names)
:action (lambda (x)
- (with-ivy-window
- (bookmark-jump x)))
- :require-match t
+ (if (member x (bookmark-all-names))
+ (with-ivy-window
+ (bookmark-jump x))
+ (bookmark-set x)))
:caller 'counsel-bookmark))
+(ivy-set-actions
+ 'counsel-bookmark
+ '(("d" bookmark-delete "delete")
+ ("e" bookmark-rename "edit")))
+
(defun counsel-M-x-transformer (cmd)
"Return CMD appended with the corresponding binding in the current window."
(let ((binding (substitute-command-keys (format "\\[%s]" cmd))))
- [elpa] master 572c2aa 206/348: Enable read-only-mode for ivy-occur, (continued)
- [elpa] master 572c2aa 206/348: Enable read-only-mode for ivy-occur, Oleh Krehel, 2017/04/08
- [elpa] master 73d23d1 207/348: Correct a minor doc error: `info-describe-symbol' should be `info-lookup-symbol'., Oleh Krehel, 2017/04/08
- [elpa] master 378943c 212/348: ivy.el (ivy--minibuffer-setup): Fixup max-mini-window-height, Oleh Krehel, 2017/04/08
- [elpa] master 8312176 210/348: ivy.el (ivy-magic-tilde): New defcustom, Oleh Krehel, 2017/04/08
- [elpa] master dcec964 211/348: ivy.el (ivy-magic-tilde): Fix type, Oleh Krehel, 2017/04/08
- [elpa] master 3d600b6 214/348: Correct ivy-fixed-height-minibuffer size, Oleh Krehel, 2017/04/08
- [elpa] master 2d4db96 215/348: Silence byte-compiler, Oleh Krehel, 2017/04/08
- [elpa] master 2f6b67a 221/348: counsel.el (counsel-pt): Add initial-input arg, Oleh Krehel, 2017/04/08
- [elpa] master 085b0f2 218/348: Fix file name completion for when initial-input is a file name, Oleh Krehel, 2017/04/08
- [elpa] master 823d86c 224/348: counsel.el (counsel-grep): Quote :preselect, Oleh Krehel, 2017/04/08
- [elpa] master c8be397 222/348: update 'counsel-bookmark' with the ability to create, edit, and delete bookmarks,
Oleh Krehel <=
- [elpa] master 45834cc 231/348: ivy.el (ivy--reset-state): file-name-directory can return nil, Oleh Krehel, 2017/04/08
- [elpa] master aacba19 229/348: ivy.el (ivy--directory-done): Check if ivy-text is a proper dir, Oleh Krehel, 2017/04/08
- [elpa] master b1f587d 233/348: ivy.el (ivy--directory-done): Fix "RET" on no input, Oleh Krehel, 2017/04/08
- [elpa] master 5190412 234/348: Add `counsel-rg`, Oleh Krehel, 2017/04/08
- [elpa] master 92f2be5 247/348: Fix typo in ivy-read docstring, Oleh Krehel, 2017/04/08
- [elpa] master b99f6de 238/348: ivy.el (ivy--directory-done): Fix when ivy-text exists, Oleh Krehel, 2017/04/08
- [elpa] master 0312d5e 259/348: Make counsel-ag support limiting in files., Oleh Krehel, 2017/04/08
- [elpa] master eddf427 261/348: counsel.el (counsel-ag): Fix byte-compile warning, Oleh Krehel, 2017/04/08
- [elpa] master bb4814a 262/348: Fix counsel-ag support limiting in files, Oleh Krehel, 2017/04/08
- [elpa] master 4232088 265/348: Don't claim `swiper' provides `ivy-mode', Oleh Krehel, 2017/04/08