Re: Copy-pasting multiline (multiple lines) query into bean-query

2024-02-16 Thread Daniele Nicolodi
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

Re: Copy-pasting multiline (multiple lines) query into bean-query

2024-02-16 Thread Daniele Nicolodi
On 16/02/24 01:08, Robert Hotchkiss wrote: I did jot this down in my notes, but not sure if my notes are accurate: - bean-query interactive uses the python gnu readline package (not to be confused with python library's readline)    -

Re: Copy-pasting multiline (multiple lines) query into bean-query

2024-02-15 Thread Robert Hotchkiss
I was not able to figure out how to do multi-line queries in interactive bean-query so I paste them into my beancount file and use fava to run them or run them with: > bean-query run I did jot this down in my notes, but not sure if my notes are accurate: - bean-query interactive uses the

Re: Copy-pasting multiline (multiple lines) query into bean-query

2024-02-14 Thread Martin Blais
I don't know. If it's supported in https://docs.python.org/3/library/cmd.html it should be possible to improve it. On Tue, Feb 13, 2024 at 5:55 AM Dan Andersson wrote: > Motivation: Give people (including Windows users) copy-pasteable commands > they can simply use as-is (regardless of

Re: Copy-pasting multiline (multiple lines) query into bean-query

2024-02-13 Thread Dan Andersson
Motivation: Give people (including Windows users) copy-pasteable commands they can simply use as-is (regardless of platform). On Tuesday, February 13, 2024 at 10:51:12 AM UTC Dan Andersson wrote: > Hi, I'm aware that backslashes can be used for Bash. > I was referring to the *interactive*

Re: Copy-pasting multiline (multiple lines) query into bean-query

2024-02-13 Thread Dan Andersson
Hi, I'm aware that backslashes can be used for Bash. I was referring to the *interactive* session (after doing only "bean-query foo.beancount"). I guess I was hoping it wouldn't "complete" a command until it sees a semicolon, but currently it seems to complete a command after every newline. On

Re: Copy-pasting multiline (multiple lines) query into bean-query

2024-02-10 Thread Martin Blais
This is a bash question. Look at how multiple lines are handled in bash (should be lots of info online). On Sat, Feb 10, 2024 at 9:24 AM Dan Andersson wrote: > Hi, > > After doing bean-query foo.beancount to enter the interactive session, can > I somehow copy-paste multiple lines in there? > >

Copy-pasting multiline (multiple lines) query into bean-query

2024-02-10 Thread Dan Andersson
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