From: Stefan Kangas <stefan@marxist.se>
To: Damyan Pepper <damyanp@gmail.com>
Cc: 6847@debbugs.gnu.org
Subject: bug#6847: 23.2; ibuffer-filter-by-filename ignores buffer directory names
Date: Sun, 4 Aug 2019 19:41:16 +0200 [thread overview]
Message-ID: <CADwFkmkxe-WM-djQK3NgQBaU4O2ZqXADiSiF+jkFrCstrH2JMQ@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=VuoLzx3XoZgDUpMntoT6T04WRtm4zzvK8+Lqd@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2784 bytes --]
tags 6847 + patch
quit
Damyan Pepper <damyanp@gmail.com> writes:
> When using ibuffer.el if I set it to filter by filename then dired
> buffers visiting directories are not included in the filter. This is
> inconsistent with the way that ibuffer displays the buffers.
>
> For example, if I start with emacs -Q, open a few buffers and run M-x ibuffer:
>
> MR Name Size Mode Filename/Process
> -- ---- ---- ---- ----------------
> [ Default ]
> README 5276 Fundamental c:/emacs-23.2/README
> % emacs-23.2 857 Dired by name c:/emacs-23.2/
> % etc 5627 Dired by name c:/emacs-23.2/etc/
> % bin 1299 Dired by name c:/emacs-23.2/bin/
> *scratch* 191 Lisp Interaction
> * *Messages* 131 Fundamental
>
> 6 buffers 13381 4 files, no processes
>
> and then press "/ f emacs" I get:
>
> MR Name Size Mode Filename/Process
> -- ---- ---- ---- ----------------
> [ Default ]
> README 5276 Fundamental c:/emacs-23.2/README
>
> 1 buffer 5276 1 file, no processes
>
>
> Note that the emacs-23.2, etc and bin buffers all have an entry in the
> "Filename/Process" column that is ignored by the filter.
I think this use case should be mostly covered by the recently added
ibuffer-filter-by-directory command:
commit 35aaa6b6aa9a2e7b42465603fb32355a009c510f
Author: Christopher Genovese <genovese@cmu.edu>
Date: Tue Dec 20 17:41:56 2016 +0900
ibuffer: New filters and commands
But it would seem that this command never got a key binding. This is an
excerpt from C-h f ibuffer-mode:
Filtering commands:
‘M-x ibuffer-filter-chosen-by-completion’ - Select and apply
filter chosen by completion.
‘/ RET’ - Add a filter by any major mode.
‘/ m’ - Add a filter by a major mode now in use.
‘/ M’ - Add a filter by derived mode.
‘/ n’ - Add a filter by buffer name.
‘/ c’ - Add a filter by buffer content.
‘/ b’ - Add a filter by basename.
‘M-x ibuffer-filter-by-directory’ - Add a filter by directory name.
‘/ f’ - Add a filter by filename.
‘/ .’ - Add a filter by file extension.
I suggest to add the keybinding "/ F" for ibuffer-filter-by-directory
and "/ SPC" for ibuffer-filter-chosen-by-completion. Perhaps "/ d" or
"/ D" would be more natural for the directory case, but alas they are
already taken.
Please see the attached patch.
Thanks,
Stefan Kangas
[-- Attachment #2: 0001-Add-key-bindings-for-ibuffer-filter-commands.patch --]
[-- Type: application/x-patch, Size: 1415 bytes --]
next prev parent reply other threads:[~2019-08-04 17:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 10:06 bug#6847: 23.2; ibuffer-filter-by-filename ignores buffer directory names Damyan Pepper
2019-08-04 17:41 ` Stefan Kangas [this message]
2019-09-14 0:09 ` Stefan Kangas
2019-09-26 16:57 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADwFkmkxe-WM-djQK3NgQBaU4O2ZqXADiSiF+jkFrCstrH2JMQ@mail.gmail.com \
--to=stefan@marxist.se \
--cc=6847@debbugs.gnu.org \
--cc=damyanp@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.