emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Dynamic tag completion with all tags from all agenda files
@ 2009-11-11 20:19 Tassilo Horn
  2009-11-12  7:55 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2009-11-11 20:19 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

is there a way to get the tag completion suggest all tags from all my
agenda files?

The rationale is that I use `org-remember' very extensively, and I often
want to tag the new entry.  But there's no dynamic completion, because
that uses only the current file's tags and the remember buffer has none.

I could setup all tags in `org-tag-alist', but tags are not really
static.  I could add a new one with TAB in the tag interface, but then I
would have to add it to `org-tag-alist' manually.  Not very nifty...

What would be cool, was that org collected all tags from all agenda
files as soon as the agenda is built the first time.  Then it uses those
cached tags for completion (maybe with some automatic fast selection key
calculation *dreaming*).  When a user adds a new tag with TAB in the tag
interface, it is added to that list.

I don't know exactly how the behavior should be with `org-tag-alist' set
to something.  Maybe a good approach for the whole wish would be adding
a special entry to org-tag-alist:

  ;; Use all tags from all agenda files, and add the tags foo and bar,
  ;; even if they are not used anywhere.
  (setq org-tag-alist '(:all foo bar))

Now only the behavior of the TAGS keyword in files has to be defined
somehow.  Well, I don't have an opinion.  There are two options: 1)
extend the dynamic list of all tags with the ones defined in TAGS
(consistent with the :all keyword above), or 2) the dynamic list is
disabled and only those tags are shown (consistent with the current
behavior).

What do you think?

Bye,
Tassilo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dynamic tag completion with all tags from all agenda files
  2009-11-11 20:19 Dynamic tag completion with all tags from all agenda files Tassilo Horn
@ 2009-11-12  7:55 ` Carsten Dominik
  2009-11-12  8:09   ` Tassilo Horn
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2009-11-12  7:55 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: emacs-orgmode

Hi Tassilo,

%^G in a remember template gives you completion on all tags, globally.
The fast tag interface does not, indeed.

On the list, but not now...

- Carsten

On Nov 11, 2009, at 9:19 PM, Tassilo Horn wrote:

> Hi all,
>
> is there a way to get the tag completion suggest all tags from all my
> agenda files?
>
> The rationale is that I use `org-remember' very extensively, and I  
> often
> want to tag the new entry.  But there's no dynamic completion, because
> that uses only the current file's tags and the remember buffer has  
> none.
>
> I could setup all tags in `org-tag-alist', but tags are not really
> static.  I could add a new one with TAB in the tag interface, but  
> then I
> would have to add it to `org-tag-alist' manually.  Not very nifty...
>
> What would be cool, was that org collected all tags from all agenda
> files as soon as the agenda is built the first time.  Then it uses  
> those
> cached tags for completion (maybe with some automatic fast selection  
> key
> calculation *dreaming*).  When a user adds a new tag with TAB in the  
> tag
> interface, it is added to that list.
>
> I don't know exactly how the behavior should be with `org-tag-alist'  
> set
> to something.  Maybe a good approach for the whole wish would be  
> adding
> a special entry to org-tag-alist:
>
>  ;; Use all tags from all agenda files, and add the tags foo and bar,
>  ;; even if they are not used anywhere.
>  (setq org-tag-alist '(:all foo bar))
>
> Now only the behavior of the TAGS keyword in files has to be defined
> somehow.  Well, I don't have an opinion.  There are two options: 1)
> extend the dynamic list of all tags with the ones defined in TAGS
> (consistent with the :all keyword above), or 2) the dynamic list is
> disabled and only those tags are shown (consistent with the current
> behavior).
>
> What do you think?
>
> Bye,
> Tassilo
>
>
>
> _______________________________________________
> 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

- Carsten

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Dynamic tag completion with all tags from all agenda files
  2009-11-12  7:55 ` Carsten Dominik
@ 2009-11-12  8:09   ` Tassilo Horn
  0 siblings, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2009-11-12  8:09 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

Hi Carsten,

> %^G in a remember template gives you completion on all tags, globally.
> The fast tag interface does not, indeed.

Yes, that's nice and basically solves the problem for remember.

> On the list, but not now...

Great!  My birthday is November 26th, if you want to make me a
present. ;-)

Anyway, it seems the functionality is already there, so it should only
be accessible somehow in the usual `org-set-tags-command', maybe like I
described below, or in some other variant.

>>  ;; Use all tags from all agenda files, and add the tags foo and bar,
>>  ;; even if they are not used anywhere.
>>  (setq org-tag-alist '(:all foo bar))
>>
>> Now only the behavior of the TAGS keyword in files has to be defined
>> somehow.  Well, I don't have an opinion.  There are two options: 1)
>> extend the dynamic list of all tags with the ones defined in TAGS
>> (consistent with the :all keyword above), or 2) the dynamic list is
>> disabled and only those tags are shown (consistent with the current
>> behavior).

Thanks!
Tassilo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-12  8:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-11 20:19 Dynamic tag completion with all tags from all agenda files Tassilo Horn
2009-11-12  7:55 ` Carsten Dominik
2009-11-12  8:09   ` Tassilo Horn

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).