From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.devel Subject: [QUESTION] Update Ibuffer keybindings Date: Tue, 20 Dec 2016 18:10:00 +0900 Message-ID: <874m1zm0ev.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1482225032 10167 195.159.176.226 (20 Dec 2016 09:10:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2016 09:10:32 +0000 (UTC) Cc: Christopher Genovese , tino.calancha@gmail.com To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 20 10:10:27 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cJGRE-0001HL-VK for ged-emacs-devel@m.gmane.org; Tue, 20 Dec 2016 10:10:25 +0100 Original-Received: from localhost ([::1]:49835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJGRF-0003mW-Rq for ged-emacs-devel@m.gmane.org; Tue, 20 Dec 2016 04:10:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cJGR0-0003ko-IB for emacs-devel@gnu.org; Tue, 20 Dec 2016 04:10:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cJGQw-0002zK-Hg for emacs-devel@gnu.org; Tue, 20 Dec 2016 04:10:10 -0500 Original-Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:34723) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cJGQw-0002ym-BW for emacs-devel@gnu.org; Tue, 20 Dec 2016 04:10:06 -0500 Original-Received: by mail-pg0-x242.google.com with SMTP id b1so11202836pgc.1 for ; Tue, 20 Dec 2016 01:10:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version; bh=uN8O79jsKsnidBp5xG6/M77GvrpTJu2A0g+L5BHuBdo=; b=Ioe2JGCL/uEDExyc6CwZd9ExFhsoOZdNJx412VVVcmMGH7M3u/Gg5+TN+Ue3BH1zto Ipyue7XSx7wD379zsTmGfxbuPpK0LNwUFrfmhYihKgwvJlcq6emHzDspDfM7JntnMeR0 y9veiI9Bc33jctEKrj7r24lB38a6U94ibJfby8hJN7EEswY4VyXYdk83z0Y8GaAsn2KW l0kffYtKFuo9QcaNPwZgS8+72B/u3fpeLkz5K38tUDfWpUfuLzGfzsr/betDhuMkvbPy dxCYVkL3j/uMWmxmZu90RwuQYD12mTWWMHoprLkQdRmW1DNEMl8Js8+W1lrx3eY7mdvP +2fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=uN8O79jsKsnidBp5xG6/M77GvrpTJu2A0g+L5BHuBdo=; b=TKriZ7YHdSqJ0Uu3Ifn1pa5VFS37bZMh0yqSWUZnTtsGd0UpttgjPSo2dpSMALZ8zM Y6rLCuEjP/pFCeOmkQLCSIuqcMcDkEkh6b+APibCW0RJVRIV+5G9JqQsbW5jPxRuM0No 7HpBjgpBcdK3gp/991J3dLUwAsCrxivxVWde1ghTHOLwADFko2iByfDJRzC7onFspiF5 HgXaDMTRjcDofc4jU2HTJZ8Z9U9qVe3PknCHWd3qrtTlQY+ywmBXz41QijZeuDbepy5s dnQIlPCYNoeTFf8Vfi5jeIJam2HzYnrBiXeUdHEM1q2SLqXxo1rzykSjTwRywsPNnsZ6 wRLQ== X-Gm-Message-State: AKaTC00ffRmxqCkPQCToAq1fp78aErtrHQR42b6NfiMOI6NoONuXNxXVrLuKtdLBDJjwfw== X-Received: by 10.99.235.10 with SMTP id t10mr34204069pgh.95.1482225005351; Tue, 20 Dec 2016 01:10:05 -0800 (PST) Original-Received: from calancha-pc (177.192.218.133.dy.bbexcite.jp. [133.218.192.177]) by smtp.gmail.com with ESMTPSA id y29sm37251452pfd.63.2016.12.20.01.10.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Dec 2016 01:10:04 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::242 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210656 Archived-At: Hi, commit 35aaa6b6aa adds several commands to ibuffer. You can find the entire discussion on: https://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00399.html Chris is suggesting to go an step further and update the Ibuffer keybindings as follows: 1) Bind the new command `ibuffer-filter-chosen-by-completion' to '/ TAB'. Those keys together with '/ t' are currently bound to `ibuffer-exchange-filters'. 2) Bind the new command `ibuffer-filter-by-directory' to '/ /'; rebind `ibuffer-filter-disable', which is currently bound to '/ /', to '/ DEL'. Please, let me know your opinion about the convenice/unconvenience on this proposal. Following is the patch: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >From ae5137a907071cbafafdf651c4873eac8acab141 Mon Sep 17 00:00:00 2001 From: Christopher Genovese Date: Tue, 20 Dec 2016 17:42:24 +0900 Subject: [PATCH] ibuffer: Update key bindings * lisp/ibuffer.el (ibuffer-mode-map): Bind 'ibuffer-filter-by-directory' and 'ibuffer-filter-chosen-by-completion' to '//' and '/TAB' respectively. Rebind 'ibuffer-filter-disable' to '/ DEL'. ; * etc/NEWS: Update NEWS entries. --- etc/NEWS | 10 ++++++---- lisp/ibuffer.el | 5 +++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index ee74236a52..5c461a7dda 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -341,12 +341,14 @@ to '/b', '/.', '//', '/*', '/i' and '/v'. --- *** Two new commands 'ibuffer-filter-chosen-by-completion' -and `ibuffer-and-filter', the second bound to '/&'. +and `ibuffer-and-filter'; bound to '/ TAB' and '/&' +respectively. --- -*** The commands `ibuffer-pop-filter', `ibuffer-pop-filter-group', -`ibuffer-or-filter' and `ibuffer-filter-disable' have the alternative -bindings '/', '/S-', '/|' and '/DEL', respectively. +*** The key binding for `ibuffer-filter-disable' has being changed +to '/DEL'; the commands `ibuffer-pop-filter', `ibuffer-pop-filter-group' +and `ibuffer-or-filter' have the alternative bindings '/', '/S-' +and '/|'. --- *** The data format specifying filters has been extended to allow diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el index 5a740845bd..db9cfebfc5 100644 --- a/lisp/ibuffer.el +++ b/lisp/ibuffer.el @@ -526,12 +526,14 @@ ibuffer-mode-map (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-directory) (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 "/ TAB") 'ibuffer-filter-chosen-by-completion) (define-key map (kbd "/ r") 'ibuffer-switch-to-saved-filters) (define-key map (kbd "/ a") 'ibuffer-add-saved-filters) @@ -542,7 +544,6 @@ ibuffer-mode-map (define-key map (kbd "/ ") '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) @@ -550,7 +551,7 @@ ibuffer-mode-map (define-key map (kbd "/ P") 'ibuffer-pop-filter-group) (define-key map (kbd "/ S-") 'ibuffer-pop-filter-group) (define-key map (kbd "/ D") 'ibuffer-decompose-filter-group) - (define-key map (kbd "/ /") 'ibuffer-filter-disable) + (define-key map (kbd "/ DEL") 'ibuffer-filter-disable) (define-key map (kbd "M-n") 'ibuffer-forward-filter-group) (define-key map "\t" 'ibuffer-forward-filter-group) -- 2.11.0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; In GNU Emacs 26.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.4) of 2016-12-20 Repository revision: 35aaa6b6aa9a2e7b42465603fb32355a009c510f