Re: Exploring properties

2020-02-25 Thread John Kitchin
You might take a look at ebib, which is something like this for bibtex files (also a plain text db). You can bend bibtex into being a database, with custom entry types. What ebib does for bibtex might also be possible for recutils too. Similarly, bbdb offered an emacsy interface to a database of

Re: Exploring properties

2020-02-24 Thread Vikas Rawal
I don't know if this is useful. But this is what I could come up with. This might at least motivate somebody to think of other possible advantages/uses of building org-mode capabilities to interact with databases. Vikas --- Feature request: To build tools to facilitate using org-mode as a

Re: Exploring properties

2020-02-24 Thread Bastien
Hi Vikas, Vikas Rawal writes: > I am essentially thinking of org-mode providing an > interface for feeding data to recutils. Yes, that would probably be useful. If you want to write a feature request, please write it as if the reader does not know recutils and you precise use-case, so that we

Re: Exploring properties

2020-02-23 Thread Vikas Rawal
Thanks Bastien for advice and for connecting with Jose. It would be useful to write some lisp for inserting and adding data from org into rec files. It could either be from org-mode tables or from properties. I am essentially thinking of org-mode providing an interface for feeding data to

Re: Exploring properties

2020-02-23 Thread John Kitchin
org-ql (https://github.com/alphapapa/org-ql) is also quite good for this kind of thing. Here is even a database like query to find the heading, and EMAIL property from all the files in a list returned by the function nb-org-files. (org-ql-query :select '(cons (fifth (org-heading-components))

Re: Exploring properties

2020-02-23 Thread Bastien
Hi Vikas, Vikas Rawal writes: > Would you think that an extension of org-collector is the direction to > look at? Doesn't look like org-collector has seen any updates in a > long time. You might want to look at recutils instead. It was announced on org-mode mailing list here 10 years ago:

Re: Exploring properties

2020-02-23 Thread Vikas Rawal
> > > I don't know if I have missed something obvious. But I am trying to > > read all the properties data (key-value pairs) into an R source code > > block (essentially to gather into a data.frame before further > > processing). > > You might want to look at `org-map-entries'. Thanks. It seems

Re: Exploring properties

2020-02-23 Thread Vikas Rawal
> > You might want to look at `org-map-entries'. > Would you think that an extension of org-collector is the direction to look at? Doesn't look like org-collector has seen any updates in a long time. Vikas

Re: Exploring properties

2020-02-23 Thread Bastien
Hi Vikas, Vikas Rawal writes: > I don't know if I have missed something obvious. But I am trying to > read all the properties data (key-value pairs) into an R source code > block (essentially to gather into a data.frame before further > processing). You might want to look at `org-map-entries'.

Exploring properties

2020-02-22 Thread Vikas Rawal
I don't know if I have missed something obvious. But I am trying to read all the properties data (key-value pairs) into an R source code block (essentially to gather into a data.frame before further processing). I thought properties would be a neat way to put together a small database, and then