groups-map))
+(defvar ibuffer--filter-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map (kbd "RET") 'ibuffer-filter-by-mode)
+ (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 "b") 'ibuffer-filter-by-basename)
+ (define-key map (kbd ".") 'ibuffer-filter-by-file-extension)
+ (define-key map (kbd "<") 'ibuffer-filter-by-size-lt)
+ (define-key map (kbd ">") 'ibuffer-filter-by-size-gt)
+ (define-key map (kbd "i") 'ibuffer-filter-by-modified)
+ (define-key map (kbd "v") 'ibuffer-filter-by-visiting-file)
+ (define-key map (kbd "c") 'ibuffer-filter-by-content)
+ (define-key map (kbd "e") 'ibuffer-filter-by-predicate)
+
+ (define-key map (kbd "r") 'ibuffer-switch-to-saved-filters)
+ (define-key map (kbd "a") 'ibuffer-add-saved-filters)
+ (define-key map (kbd "x") 'ibuffer-delete-saved-filters)
+ (define-key map (kbd "d") 'ibuffer-decompose-filter)
+ (define-key map (kbd "s") 'ibuffer-save-filters)
+ (define-key map (kbd "p") 'ibuffer-pop-filter)
+ (define-key map (kbd "<up>") 'ibuffer-pop-filter)
+ (define-key map (kbd "!") 'ibuffer-negate-filter)
+ (define-key map (kbd "t") 'ibuffer-exchange-filters)
+ (define-key map (kbd "TAB") 'ibuffer-exchange-filters)
+ (define-key map (kbd "o") 'ibuffer-or-filter)
+ (define-key map (kbd "|") 'ibuffer-or-filter)
+ (define-key map (kbd "&") 'ibuffer-and-filter)
+ (define-key map (kbd "g") 'ibuffer-filters-to-filter-group)
+ (define-key map (kbd "P") 'ibuffer-pop-filter-group)
+ (define-key map (kbd "S-<up>") 'ibuffer-pop-filter-group)
+ (define-key map (kbd "D") 'ibuffer-decompose-filter-group)
+ (define-key map (kbd "/") 'ibuffer-filter-disable)
+
+ (define-key map (kbd "S") 'ibuffer-save-filter-groups)
+ (define-key map (kbd "R") 'ibuffer-switch-to-saved-filter-groups)
+ (define-key map (kbd "X") 'ibuffer-delete-saved-filter-groups)
+ (define-key map (kbd "\\") 'ibuffer-clear-filter-groups)
+ map))
+
(defvar ibuffer-mode-map
(let ((map (make-keymap)))
(define-key map (kbd "0") 'digit-argument)
(define-key map (kbd "s f") 'ibuffer-do-sort-by-filename/process)
(define-key map (kbd "s m") 'ibuffer-do-sort-by-major-mode)
- (define-key map (kbd "/ RET") 'ibuffer-filter-by-mode)
- (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 "/ b") 'ibuffer-filter-by-basename)
- (define-key map (kbd "/ .") 'ibuffer-filter-by-file-extension)
- (define-key map (kbd "/ <") 'ibuffer-filter-by-size-lt)
- (define-key map (kbd "/ >") 'ibuffer-filter-by-size-gt)
- (define-key map (kbd "/ i") 'ibuffer-filter-by-modified)
- (define-key map (kbd "/ v") 'ibuffer-filter-by-visiting-file)
- (define-key map (kbd "/ c") 'ibuffer-filter-by-content)
- (define-key map (kbd "/ e") 'ibuffer-filter-by-predicate)
-
- (define-key map (kbd "/ r") 'ibuffer-switch-to-saved-filters)
- (define-key map (kbd "/ a") 'ibuffer-add-saved-filters)
- (define-key map (kbd "/ x") 'ibuffer-delete-saved-filters)
- (define-key map (kbd "/ d") 'ibuffer-decompose-filter)
- (define-key map (kbd "/ s") 'ibuffer-save-filters)
- (define-key map (kbd "/ p") 'ibuffer-pop-filter)
- (define-key map (kbd "/ <up>") 'ibuffer-pop-filter)
- (define-key map (kbd "/ !") 'ibuffer-negate-filter)
- (define-key map (kbd "/ t") 'ibuffer-exchange-filters)
- (define-key map (kbd "/ TAB") 'ibuffer-exchange-filters)
- (define-key map (kbd "/ o") 'ibuffer-or-filter)
- (define-key map (kbd "/ |") 'ibuffer-or-filter)
- (define-key map (kbd "/ &") 'ibuffer-and-filter)
- (define-key map (kbd "/ g") 'ibuffer-filters-to-filter-group)
- (define-key map (kbd "/ P") 'ibuffer-pop-filter-group)
- (define-key map (kbd "/ S-<up>") 'ibuffer-pop-filter-group)
- (define-key map (kbd "/ D") 'ibuffer-decompose-filter-group)
- (define-key map (kbd "/ /") 'ibuffer-filter-disable)
-
(define-key map (kbd "M-n") 'ibuffer-forward-filter-group)
(define-key map "\t" 'ibuffer-forward-filter-group)
(define-key map (kbd "M-p") 'ibuffer-backward-filter-group)
(define-key map (kbd "M-j") 'ibuffer-jump-to-filter-group)
(define-key map (kbd "C-k") 'ibuffer-kill-line)
(define-key map (kbd "C-y") 'ibuffer-yank)
- (define-key map (kbd "/ S") 'ibuffer-save-filter-groups)
- (define-key map (kbd "/ R") 'ibuffer-switch-to-saved-filter-groups)
- (define-key map (kbd "/ X") 'ibuffer-delete-saved-filter-groups)
- (define-key map (kbd "/ \\") 'ibuffer-clear-filter-groups)
(define-key map (kbd "% n") 'ibuffer-mark-by-name-regexp)
(define-key map (kbd "% m") 'ibuffer-mark-by-mode-regexp)
(define-key map (kbd "C-x 4 RET") 'ibuffer-visit-buffer-other-window)
(define-key map (kbd "C-x 5 RET") 'ibuffer-visit-buffer-other-frame)
+ (define-key map (kbd "/") ibuffer--filter-map)
+
(define-key map [menu-bar view]
(cons "View" (make-sparse-keymap "View")))