On 06/10/24 19:39, Daniele Nicolodi wrote:
On the other hand, keeping the donor information into a custom directive
does not seem optimal to me. As your big comment block above the custom
directive suggests, the custom directive does not enforce any structure
on the fields (and allows only strings and not more complex data types,
but this may not be a limitation of this specific use).
Thinking about it a tiny bit more, if you really want to use a custom directive to record the donor data, using metadata for the different fields seems much nicer:

2024-09-28 custom "donor" "john-smith"
  name: "John Smith"
  address: "123 First Street"
  city: "Palo Alto"
  state: "CA"
  zipcode: "93501"
  phone: "123-456-7890"
  email: "[email protected]"

However, there is still no way to extract this using bean-query (and while typing this I also realized that Emacs beancount-mode also does not do syntax highlighting for the custom directive).

Although, if someone has a concrete use-case and a nice idea ion how to expose custom directive in a BQL table, it would not be difficult to add it to bean-query.

Cheers,
Dan

--
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/95102be5-47c3-414d-a076-f53b93a43d9e%40grinta.net.

Reply via email to