[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir s
From: |
Eshel Yaron |
Subject: |
bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs |
Date: |
Sat, 15 Feb 2025 23:09:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Ship Mints <shipmints@gmail.com> writes:
> Thank you for your thoughtful feedback.
>
> A couple of things stand out. First, calling completing-read directly means
> we can reuse the project-file
> completion category (and if you use something like marginalia, you get nice
> metadata in your completion list),
In my suggested approach we get the "file" completion category, which
AFAICT marginalia picks up just as well and provides the same kind of
completion annotations.
> and which also now can inhibit sorting the completion candidate list, which I
> find can be annoying for this kind of
> use case.
Sorry, I'm not sure I understand the problem.
FWIW there are several ways to control sorting besides specifying
display-sort-function in the completion metadata, like completions-sort,
completion-category-overrides and completion-extra-properties.
> Second, since this is forget "under" directories, prompting with the common
> prefixes that allow one to forget
> under the whole shebang makes more sense to me.
You could still select a common ancestor directory (prefix) to forget
all projects under it, if that's what you mean.
> Perhaps your ancestor list generator can be more efficient than the
> common-prefix code that I quickly wrote, and it would be helpful for
> it to show all common prefixes, don't you agree?
I don't see a lot of benefit in the flat list of all possible choices in
this case, but no strong objection either, just a personal preference.
Eshel
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Ship Mints, 2025/02/15
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Eshel Yaron, 2025/02/15
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Ship Mints, 2025/02/15
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs,
Eshel Yaron <=
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Ship Mints, 2025/02/16
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Eshel Yaron, 2025/02/16
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Ship Mints, 2025/02/16
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Eshel Yaron, 2025/02/16
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Eshel Yaron, 2025/02/16
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Ship Mints, 2025/02/16
- bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Dmitry Gutov, 2025/02/17
bug#76307: [PATCH] Add 'project-forget-projects-under-dirs', limit dir selection to relevant dirs, Dmitry Gutov, 2025/02/17