On 10/02/24 15:24, Dan Andersson wrote:
Hi,

After doing bean-query foo.beancount to enter the interactive session, can I somehow copy-paste multiple lines in there?

It seems like multi-line queries (e.g. the examples in the documentation), when pasted in there, always get split into one command per line, resulting in errors.

Do I always have to combine those lines first, before pasting them?

Multi-line input is not currently supported by bean-query. The interactive interpreter is based on the cmd Python standard library module, which is a line based command interpreter.

Using a semicolon as query terminator instead of a newline should be possible (the Python REPL supports multi-line input statements, thus the functionality is there, somewhere) but it would require moving from a very simple REPL to something that uses a much more fancy parser.

I had investigating this on my TODO list for a long time, but I haven't had the time to look into it yet.

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/255e98e8-910b-4ec3-9d5b-aa6aeb7a3e46%40grinta.net.

Reply via email to