[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Properties ID vs. CUSTOM_ID
From: |
Eric Abrahamsen |
Subject: |
Re: [O] Properties ID vs. CUSTOM_ID |
Date: |
Thu, 22 Dec 2016 13:40:05 -0800 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/26.0.50 (gnu/linux) |
Carsten Dominik <address@hidden> writes:
> Dear all,
>
> before continuing this discussion, and before reinventing, you might
> want to take a look at how org-id.el currently does create unique IDs.
> In particular, take a look at these variables:
>
> org-id-prefix
> org-id-method
> org-id-include-domain
>
> In particular, the docstring of the variable org-id-method is
>
> "The method that should be used to create new IDs.
>
> An ID will consist of the optional prefix specified in
> `org-id-prefix',
> and a unique part created by the method this variable specifies.
>
> Allowed values are:
>
> org Org's own internal method, using an encoding of the current
> time to
> microsecond accuracy, and optionally the current domain of
> the
> computer. See the variable `org-id-include-domain'.
>
> uuid Create random (version 4) UUIDs. If the program defined in
> `org-id-uuid-program' is available it is used to create the
> ID.
> Otherwise an internal functions is used."
>
> Hope this helps.
Right, and we're not trying to reinvent any wheels, just get a
user-readable string in there while still retaining uniqueness. Ie, it
would probably be enough if org-id-prefix could be set to 'entry, and
org then generated a prefix by munging the entry text:
* My Great Header
:PROPERITIES:
:ID: my-great-header-44d1-b804-d11657131237
:END:
- Re: [O] Properties ID vs. CUSTOM_ID (was: Automatically Generating IDs From Title and Date), (continued)
- Re: [O] Properties ID vs. CUSTOM_ID (was: Automatically Generating IDs From Title and Date), Karl Voit, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID (was: Automatically Generating IDs From Title and Date), John Kitchin, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID, Karl Voit, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID, John Kitchin, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID, Christophe Schockaert, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID, Eric Abrahamsen, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID, Christophe Schockaert, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID, Eric Abrahamsen, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID, Carsten Dominik, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID, Carsten Dominik, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID,
Eric Abrahamsen <=
- Re: [O] Properties ID vs. CUSTOM_ID, Christophe Schockaert, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID, Samuel Wales, 2016/12/22
- Re: [O] Properties ID vs. CUSTOM_ID, Samuel Wales, 2016/12/22
- [O] org-depend improvements: Canceled Tasks Do Cancel Their Dependencies as Well, Karl Voit, 2016/12/18
- [O] org-depend improvements: TRIGGER in Combination With Set SCHEDULED, Karl Voit, 2016/12/18
- Re: [O] org-depend: dependencies between TODO entries in different files, Samuel Wales, 2016/12/12
- Re: [O] org-depend: dependencies between TODO entries in different files, Karl Voit, 2016/12/12
- Re: [O] org-depend: dependencies between TODO entries in different files, Samuel Wales, 2016/12/18