简体   繁体   中英

Org-mode capture %g only autocompletes for some tags in my target file

I am using org-mode to collect notes for a research project, and each note I assign various tags which are shared with some other notes, or are new.

I have a long list of notes, each with tags and properties. However, when I go to capture, or I do Cc Cq or Cc Cc to assign tags to a headline, I only get an incomplete list of tags. Ie, only some of the tags in my file show up.

Here is my capture template:

(setq org-capture-templates
      '(("n" "Research" entry (file "~/Dropbox/University/Friendship/research.org")
             "* %? %^g %^{source}p %^{pg}p")))

Any idea what is wrong?

You are using

"%^g"

(lowercase);

instead you should use

"%^G"

(uppercase).

%^g Prompt for tags, with completion on tags in target file.

%^G Prompt for tags, with completion on all tags in all agenda files.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM