From: Uwe Brauer <oub@mat.ucm.es>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: Uwe Brauer <oub@mat.ucm.es>, emacs-orgmode@gnu.org
Subject: Re: problems with templates and ID in properties
Date: Sat, 03 Feb 2024 20:40:20 +0100 [thread overview]
Message-ID: <87fry9gwuz.fsf@mat.ucm.es> (raw)
In-Reply-To: 87a5oiu7x0.fsf@localhost
>>> "IR" == Ihor Radchenko <yantar92@posteo.net> writes:
> Uwe Brauer via "General discussions about Org-mode."
> <emacs-orgmode@gnu.org> writes:
>>> Uwe Brauer <oub@mat.ucm.es> writes:
>>
>> Thanks for you answer
>>> This is expected. As per `org-capture-templates' docstring, "entry"
>>> capture type inserts top-level entries into files:
>>
>>> entry an Org node, with a headline. Will be filed
>>> as the child of the target entry or as a
>>> top-level entry. Its default template is:
>>> "* %?
>>
>> So that cannot be changed, do I understand correctly.
> It might be changed. Currently, we mimic the behavior of
> org-yank-subtree, so that we always insert captured entry under the
> correct level regardless of the capture target. For example, when you
> use OLP, the level will be adjusted.
> May you please explain more why you need to use level 2 heading specifically?
Sure. I use this template for extracting from emails sent by my students
their names and email addresses to have entries like this
--8<---------------cut here---------------start------------->8---
* Grupos :noexport:
:PROPERTIES:
:EXPORT_OPTIONS: num:t
:COLUMNS: %10GRP(Grupos) %10HOJA(Hoja Nr) %10EJ(Ejericio Nr) %17DATE(Date) %7STATUS(Status){X/}
:ID: Grupos
:END:
** !!TODO!! G1 <2023-01-24 12:51> :Annu24: Paul New
:PROPERTIES:
:ID: 0da9c464-74a1-4153-b957-72e6b562bb0a
:Link: [[gnus:nnimap+UCMgmail:INBOX#CAMZEOZ24BUfHRj3_XaF6kxyPBZ4vY4G=Qvb2iuJz4zENAPOFsw@mail.gmail.com][Email from User1: [Annu23] formar Grupo]]
:Email: user1@gmail.com
:Grp: Gr1
:Usuario1: User1
:Email1: user1@gmail.com
:Usuario2: User2
:Email2: user2@gmail.com
:H2: 1 (Función implícita)
:P2: 25
:STHAB2: [ ]
:StEnv2: [ ]
:H4: 2 (Convergencia adaptativo)
:P4: 50
:STHAB4: [X]
:StEnv4: [X]
:End:
** !!TODO!! G2 <2023-01-29 19:11> :Annu24: John Doe
:PROPERTIES:
:ID: 57aed14b-6790-43de-9440-af082d555800
:Link: [[gnus:nnimap+UCMgmail:INBOX#CANpraWwp91vH=-N2y3A5pm7hwuRt-Qzq_Gy7ZyYp7jc5uZ=4AA@mail.gmail.com][Email from User2: [Annu23] formar Grupo]]
:Email: user3@gmail.com
:Grp: Gr2
:Usuario1: User3
:Email1: user3@gmail.com
:Usuario2: User4
:Email2: user@gmail.com
:H1: 4 (Método \theta)
:P1: 10
:STHAB1: [X]
:StEnv1: [X]
:SUMMARY: ok
:H2: 1
:P2: 10
:STHAB2: [X]
:StEnv2: [X]
:H5: 6 (Func Ampli RK)
:P5: 5
:STHAB5: [X]
:StEnv5: [X]
:End:
--8<---------------cut here---------------end--------------->8---
** Sheet
so I can use now columnview to generate a table
--8<---------------cut here---------------start------------->8---
#+TBLNAME: sheets
#+BEGIN: columnview :maxlevel 2 :skip-empty-rows t :indent nil :hlines 2 :format "%10Grp(Grupo) %7H1(Hoja1-Ej) %10P1(\%) %7H2(Hoja2-Ej) %10P2(\%) %7H3(Hoja3-Ej) %10P3(\%) %7H4(Hoja4-Ej) %10P4(\%) %7H5(Hoja5-Ej) %10P5(\%) %7H6(Hoja6-Ej) %10P6(\%)"
| <10> | <7> | <10> | <7> | <10> | <7> | <10> | <7> | <10> | <7> | <10> | <7> | <10> |
| Grupo | Hoja1-Ej | % | Hoja2-Ej | % | Hoja3-Ej | % | Hoja4-Ej | % | Hoja5-Ej | % | Hoja6-Ej | % |
|-------+--------------+------+-----------------------+------+----------+------+-----------------------------+------+-------------------+------+----------+------|
| Gr1 | | | 1 (Función implícita) | 25 | | | 2 (Convergencia adaptativo) | 50 | | | | |
|-------+--------------+------+-----------------------+------+----------+------+-----------------------------+------+-------------------+------+----------+------|
| Gr2 | 4 (Método \theta) | 10 | 1 | 10 | | | | | 6 (Func Ampli RK) | 5 | | |
#+END:
--8<---------------cut here---------------end--------------->8---
That however only works if the entries have level **
It my workflow now clearer?
>> What command/variable could org-mode force to have always an UUID in the
>> ID property?
> `org-id-method' I think.
This variable sets the format, but as far as I can see, is not
reasonable for adding an ID.
regards
--
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military.
I support the EU and NATO membership of Ukraine.
next prev parent reply other threads:[~2024-02-03 19:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-02 11:15 problems with templates and ID in properties Uwe Brauer
2024-02-02 13:48 ` Ihor Radchenko
2024-02-02 14:03 ` Uwe Brauer via General discussions about Org-mode.
2024-02-02 15:13 ` Uwe Brauer via General discussions about Org-mode.
2024-02-02 16:50 ` Ihor Radchenko
2024-02-03 19:40 ` Uwe Brauer [this message]
2024-02-03 21:52 ` Ihor Radchenko
2024-02-04 7:20 ` Uwe Brauer
2024-02-04 13:38 ` Ihor Radchenko
2024-02-04 18:24 ` Uwe Brauer
2024-02-04 18:30 ` Ihor Radchenko
2024-02-04 18:29 ` Uwe Brauer
2024-02-04 18:36 ` Ihor Radchenko
2024-02-04 18:38 ` Uwe Brauer
2024-02-04 18:57 ` Ihor Radchenko
2024-02-04 18:58 ` Uwe Brauer
2024-02-04 13:49 ` Ihor Radchenko
2024-02-04 18:20 ` Uwe Brauer
2024-02-04 18:26 ` Ihor Radchenko
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=87fry9gwuz.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/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).