[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Properties ID vs. CUSTOM_ID
From: |
Christophe Schockaert |
Subject: |
Re: [O] Properties ID vs. CUSTOM_ID |
Date: |
Thu, 22 Dec 2016 20:45:23 +0100 |
User-agent: |
mu4e 0.9.16; emacs 24.5.1 |
Eric Abrahamsen writes:
> Karl Voit <address@hidden> writes:
>
>> I'd prefer using manually written :ID: instead since migration would
>> not be trivial to me.
>
> You could also use the `org-property-set-functions-alist' trick with the
> :ID: property. If you added an "ID" entry to that alist, Org's usual
> automatic id creation would be unaffected, but if you set ID manually,
> you could write a function that would first prompt for your
> human-readable string, then check for ID uniqueness and append random
> characters to your string until it was unique. I think that would be a
> nice addition to org-id.el.
>
> Eric
I thikn the tricky part would be that we can only ensure ID uniqueness
for the current agenda at the time of the ID creation. What if we later
merge another set of files where ID were created independantly to our
acustomed agenda files ?
I like the idea of assigning a date since we would reduce chances to
define at the same time the same string and the same day. If meticulous,
we could assign a date and a time or random string as you suggest, Eric
(a tiny UUID :).
I think I read somewhere the first inactive timestamp could be used to
tag an entry with a date. At least, I do that frequently.
Thus, if available, we could even use it as a date when creating the ID
in order to have an indication of the creation time for the heading
instead of creation time of the link.
Here it is for my suggestions.
Dates might not be appropriate for every situation, though...
Christophe
--
---------------> mailto:address@hidden
Once it's perfectly aimed, the flying arrow goes straight to its target.
Thus, don't worry when things go right.
There will be enough time to worry about if they go wrong.
Then, it's time to fire a new arrow towards another direction.
Don't sink. Adapt yourself ! The archer has to shoot accurately and quickly.
[Words of Erenthar, the bowman ranger] <---------------<<<<
- Re: [O] a general ID picker, (continued)
- Re: [O] a general ID picker, Eric Abrahamsen, 2016/12/20
- [O] Automatically Generating IDs From Title and Date, Karl Voit, 2016/12/18
- Re: [O] Automatically Generating IDs From Title and Date, Samuel Wales, 2016/12/18
- [O] Properties ID vs. CUSTOM_ID (was: Automatically Generating IDs From Title and Date), Karl Voit, 2016/12/20
- 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 <=
- 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, 2016/12/22
- 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