emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Darlan Cavalcante Moreira <darcamo@gmail.com>
To: Matthew Lundin <mdl@imapmail.org>
Cc: Paul Mead <paul.d.mead@googlemail.com>, org-mode <emacs-orgmode@gnu.org>
Subject: Re: Re: Best way to implement Keywords feature
Date: Mon, 09 Nov 2009 11:26:48 -0300	[thread overview]
Message-ID: <4af826ad.8702be0a.3f0a.684b@mx.google.com> (raw)
In-Reply-To: <m2iqdjzxw8.fsf@fastmail.fm>

At Mon, 09 Nov 2009 07:27:19 -0500,
Matthew Lundin <mdl@imapmail.org> wrote:
> 
> Paul Mead <paul.d.mead@googlemail.com> writes:
> 
> > Matthew Lundin <mdl@imapmail.org> writes:
> >
> >>
> >> It will if you use brackets to perform a regexp match. E.g.,
> >>
> >> Keyword={example1}
> >>
> >> (...assuming the property is "Keyword: example1 example2".)
> >>
> >> From the manual page above:
> >>
> >> ,----
> >> |   * If the comparison value is enclosed in curly braces, a regexp match
> >> |     is performed, with '=' meaning that the regexp matches the property
> >> |     value, and '<>' meaning that it does not match.
> >> `----
> >>
> >> Best,
> >> Matt
> >
> > That's great, but what if I need to match *both* example1 and example2
> > in a search? I tried a few things but didn't find anything that
> > works. 
> >
> > Ideally, I'd be able to specify several keywords in a search on the
> > fly. 
> >
> > (I'm sorry if there's a regexp that matches multiple keywords that I
> > don't know - it's a skill which I find keeps presenting surprises!)
> 
> Perhaps some regexp expert will come along and show us the way, but, for
> now, you could search for entries that contain both keywords by entering
> the following tags/properties search:
> 
> Keyword={example1}+Keyword={example2}
> 
> Best,
> Matt
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

I'd like to make a feature request on this. I like to include tags in
a task with the name of a person the task is related to in order to
find the task easily when the person wants to talk about it. I don't
need to see these tags in the agenda view. I only need them for
searching. This is the same problem discussed here and while
Keyword={someone}+Keyword={someone else} may work, it is not as
convenient as the usual tags.

One idea implementing "hidden tags" that should work exactly as the
normal tags for searching, but stored in a HIDDEN_TAGS property. To
indicate that there are hidden tags a short tag could be added
(similar to the ATTACH tag to indicate that there are attachments). If
the user types "T" in the agenda view the hidden tags should be showed
in addition to the regular ones.

The manual says that accessing TODO, LEVEL, and CATEGORY is
fast. Therefore, I understand that it is possible to access the
HIDDEN_TAGS fast it it intended to, right?

One example with such feature would be
,----
| * TODO Some task                               :HIDDEN:RegularTag:AnotherOne:
|   :PROPERTIES:
|   :HIDDEN_TAGS: :AHiddenTag:AnotherHiddenTag:
|   :END:
`----

Maybe we should use a smaller tag (even a single single letter with a
different face) instead of HIDDEN to indicate that there are hidden
tags.

At last, We need a way to tell org which tags should be hidden when
specifying org-tag-persistent-alist. If the user inputs a tag that is
not in org-tag-persistent-alist then maybe C-u C-c C-c could set it as
a hidden tag and "realign all tags in the current buffer" changed to
C-u C-u C-c C-c.

Would this be hard to implement?

- Darlan

  parent reply	other threads:[~2009-11-09 14:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-05 22:42 Best way to implement Keywords feature Alan E. Davis
2009-11-05 22:58 ` Samuel Wales
2009-11-05 23:25   ` Alan E. Davis
2009-11-05 23:40     ` Samuel Wales
2009-11-06 11:48       ` Alan E. Davis
2009-11-06 13:28         ` Renzo Been :-)
2009-11-06 13:46           ` Giovanni Ridolfi
2009-11-06  9:09 ` Giovanni Ridolfi
2009-11-08 11:24   ` Paul Mead
2009-11-08 12:03     ` Matt Lundin
2009-11-08 18:18       ` Paul Mead
2009-11-08 18:51         ` Matthew Lundin
2009-11-09  0:00           ` Paul Mead
2009-11-09 12:27             ` Matthew Lundin
2009-11-09 13:05               ` Paul Mead
2009-11-09 14:26               ` Darlan Cavalcante Moreira [this message]
2009-11-09 14:52 ` Martin Pohlack
2009-11-10 14:47   ` Martin Pohlack
2009-11-20 18:06     ` Carsten Dominik

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4af826ad.8702be0a.3f0a.684b@mx.google.com \
    --to=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.org \
    --cc=paul.d.mead@googlemail.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).