Re: Limiting properties and property values

2020-02-23 Thread Vikas Rawal
Dear Eric, Bastien and John, Thanks for references to recutils and org-ql. These are very interesting, and I am looking at those. A recutils database with a possibility of selecting, inserting and updating records from org is one possibility. Let me play around with these tools a bit and see

Re: Limiting properties and property values

2020-02-23 Thread Fraga, Eric
On Sunday, 23 Feb 2020 at 15:10, Vikas Rawal wrote: > I am thinking of using org-mode to compile a small database. Although org is fantastic, it is sometimes worth considering other tools (and with babel, these can often be brought into the org sphere of activity easily). For instance, GNU

Re: Limiting properties and property values

2020-02-23 Thread John Kitchin
One solution to this is a function you would write that validates the properties, and prevents saving if they are invalid. You would want to use it in a buffer/directory hook. For example: (defun validate-properties () (goto-char (point-min)) (catch 'error (while (re-search-forward

Re: Limiting properties and property values

2020-02-23 Thread Vikas Rawal
On Sun, 23 Feb 2020 at 15:02, Bastien wrote: > Hi Vikas, > > Vikas Rawal writes: > > > 1. Is it possible to restrict the sub-tree of a headline to have only > > properties specified in the column property of the parent? That is, > > no additional property can be specified. > > No, it is

Re: Limiting properties and property values

2020-02-23 Thread Bastien
Hi Vikas, Vikas Rawal writes: > 1. Is it possible to restrict the sub-tree of a headline to have only > properties specified in the column property of the parent? That is, > no additional property can be specified. No, it is currently not possible. What would be the use-case? > 2. Is it

Limiting properties and property values

2020-02-22 Thread Vikas Rawal
Dear all, I have two queries regarding use of properties in org mode. 1. Is it possible to restrict the sub-tree of a headline to have only properties specified in the column property of the parent? That is, no additional property can be specified. 2. Is it possible to limit the allowed values