]> git.eshelyaron.com Git - emacs.git/commitdiff
Add key bindings for ibuffer filter commands
authorStefan Kangas <stefankangas@gmail.com>
Sun, 4 Aug 2019 17:34:01 +0000 (19:34 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Thu, 26 Sep 2019 16:50:54 +0000 (18:50 +0200)
* lisp/ibuffer.el (ibuffer--filter-map): Add keybinding for
'ibuffer-filter-chosen-by-completion' and
'ibuffer-filter-by-directory'.  (Bug#6847)

lisp/ibuffer.el

index 23f7a2a8e4add1ba2381e9489f03412978bad6e0..3af06eba97e7680652d5f1c1b5324d723a0c48a4 100644 (file)
@@ -424,12 +424,14 @@ directory, like `default-directory'."
 (defvar ibuffer--filter-map
   (let ((map (make-sparse-keymap)))
     (define-key map (kbd "RET") 'ibuffer-filter-by-mode)
+    (define-key map (kbd "SPC") 'ibuffer-filter-chosen-by-completion)
     (define-key map (kbd "m") 'ibuffer-filter-by-used-mode)
     (define-key map (kbd "M") 'ibuffer-filter-by-derived-mode)
     (define-key map (kbd "n") 'ibuffer-filter-by-name)
     (define-key map (kbd "E") 'ibuffer-filter-by-process)
     (define-key map (kbd "*") 'ibuffer-filter-by-starred-name)
     (define-key map (kbd "f") 'ibuffer-filter-by-filename)
+    (define-key map (kbd "F") 'ibuffer-filter-by-directory)
     (define-key map (kbd "b") 'ibuffer-filter-by-basename)
     (define-key map (kbd ".") 'ibuffer-filter-by-file-extension)
     (define-key map (kbd "<") 'ibuffer-filter-by-size-lt)