[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] org-agenda-filter and hyphens in category names
From: |
Samuel Wales |
Subject: |
Re: [BUG] org-agenda-filter and hyphens in category names |
Date: |
Fri, 4 Sep 2020 14:00:57 -0700 |
i was unaware of this feature, bound to / in maint, so i tried it in
maint before the fix and got a different result.
all of my categories have hyphens, and many of my files. i suspect on
linux, osx, bsd*, etc., hyphenated filenames are common.
my categories look like e-remember, e-refile, e-jinsei, o-bastien
[just kidding], o-matt-lundin [ditto], etc. this allows me to have
broad meta-categories like computer, org, extra, medical.
so i tried it with e-, and it completed to e-refile without providing
any choice. this is just incorrect. i really like hyphens so i hope
they become first-class if possible.
On 9/4/20, Bastien <bzg@gnu.org> wrote:
> Hi Matt,
>
>> I'm just getting around to exploring the function org-agenda-filter
>> introduced last year. (Due to busyness, I was running an older version
>> of Org Mode last year for fear of breaking features I relied on.)
>>
>> I like the tab completion. However, I'm finding that the completion for
>> categories often fails because of hyphens in my file and category names.
>
> Thanks for reporting this. I pushed a fix in the maint branch which
> allows for such category names to be enclosed within double quotes
> when the user wants to complete them -- the quotes helps not being
> confused by the hyphen when reading the complete filter string, which
> might contain other syntacticly meaningful hyphens.
>
> I haven't fixed the case for filetags but shouldn't filetags follow
> the same convention than mere tags of not allowing "-" ?
>
> Let me know if I (or the documentation) miss something and if the
> fix is good enough for you.
>
> Thanks,
>
> --
> Bastien
>
>
--
The Kafka Pandemic
Please learn what misopathy is.
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html