[ANNOUNCE] ledger 3.3.0

2023-02-07 Thread Martin Michlmayr
I tagged ledger 3.3.0:
https://github.com/ledger/ledger/releases/tag/v3.3.0

Thanks to all contributors who made this release possible!  It's been
a long time since the last release and there are quite a number of
changes.

Here are the changes in 3.3.0:

- Use `$PAGER` when environment variable is set (bug #1674)

- Make `--depth` correctly fold postings to accounts of greater depth into the
  parent at the specified level (bug #987)

- When using wild-cards in the `include` directive, include matched files in
  sorted order (bug #1659)

- Ensure absolute path for include (bug #2075)

- Try to use `$XDG_HOME_CONFIG/ledger/ledgerrc` or `~/.config/ledger/ledgerrc`
  first

- Improve Python 3 support and drop support for Python 2

- Add support for automatically reading files encrypted with GPG (bug #1949)

- Add support for a "debit" column in the `convert` command (bug #1120)

- Fix parsing of files without end of line (bug #516)

- Fix incorrect parsing of expressions containing a `-` without spaces (bug 
#2001)

- Fix payee metadata on postings not being validated and payee aliases not
  being honored (bug #556 & bug #1892)

- Fix ledger interpreting a posting with 0 difference as a null-posting,
  which leads to it auto-balancing the posting (bug #1942)

- Correctly escape all string values in lisp report (bug #2034)

- Fix a regression where empty commodities were shown (bug #1969)

- Fix a regression where using multiple commodities in one transaction triggers
  an assertion (bug #1998)

- Fix --time-colon for negative time amounts

- Use correct int return type for stream input operations (bug #2058)

- Use amount_width for balance report

- Remove some UTF-8 code that was having no effect (bug #2061)

- Fix unrounding for equity

- Fix SIGABRT when python subcommand raises an exception

- Improve XML reports

- Support building on older versions of CMAKE (less than 3.7)

- Fix compilation with Boost 1.76 (bug #2030)

- Fix Msys2 MinGW build (bug #1905)

- Fix unicode problems on Windows (bug #1986)

- Fix the issue that with Boost >= 1.77 `include` directive cannot find the file
  to include for stdin (`-f -`). Also for `-f -` when `include` cannot find the
  file it reports the error with full path now. (bug #2057 & bug #2092)

- Fix Nix build

- Rename `quoted_rfc4180` to `quoted_rfc`, as numbers used in function names
  confuses the parser (#2007).

- Numbers are no longer permitted in value expression function names.

- Various documentation improvements

-- 
Martin Michlmayr
https://www.cyrius.com/

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/Y%2BNQ8nCbaWk0Z10R%40jirafa.cyrius.com.


Re: Query Help

2023-02-07 Thread Randy Josleyn

On 2/8/23 06:18, Jasel17212 wrote:

Two questions:

Is there a shorthand way to write the following query?

ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr 
"has_meta('tag2')"


This seems to work for me:

ledger reg ^exp and expr "has_meta('tag1') | has_meta('tag2')"

Sorry I don't have an answer to the second question. —Randy

--

--- 
You received this message because you are subscribed to the Google Groups "Ledger" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/82c982c0-0f38-8e9c-1709-368f2b54ccea%40gmail.com.


Re: Query Help

2023-02-07 Thread Jasel17212
John,

I'm using zsh so entered:

ledger reg ^exp and "(%tag1 | %tag2)" 

The results were for tag2 only. 


I used the group-by tag as follows:

ledger reg ^exp and expr "(has_meta('tag1') or has_meta('tag2'))" 
--group-by tag('tag1')

The results was:

zsh: missing delimiter for 'u' glob qualifier


Thoughts on either result?
On Tuesday, February 7, 2023 at 6:08:28 PM UTC-6 jwie...@gmail.com wrote:

> > "J" == Jasel17212  writes:
>
> J> Is there a shorthand way to write the following query?
>
> J> ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr
> J> "has_meta('tag2')"
>
> You may need to escape it from your shell, but this should do it:
>
> ledger reg ^exp & (%tag1 | %tag2)
>
> J> ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr
> J> "has_meta('tag2')" --group-by 
>
> --group-by tag('tag1')
>
> John
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/b34b2681-74f9-4709-9a66-f32479a789bbn%40googlegroups.com.


Re: Query Help

2023-02-07 Thread John Wiegley
> "J" == Jasel17212   writes:

J> Is there a shorthand way to write the following query?

J> ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr
J> "has_meta('tag2')"

You may need to escape it from your shell, but this should do it:

ledger reg ^exp & (%tag1 | %tag2)

J> ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr
J> "has_meta('tag2')" --group-by 

--group-by tag('tag1')

John

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/m2edr1m32k.fsf%40newartisans.com.


Re: Query Help

2023-02-07 Thread federico lopez
On Tue, Feb 7, 2023 at 5:18 PM Jasel17212  wrote:

> Two questions:
>
> Is there a shorthand way to write the following query?
>
> ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr
> "has_meta('tag2')"
>
>
Hi JL,

Maybe just a little shorter:

reg ^exp and expr "(has_meta('tag1') or has_meta('tag2'))"

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAPYcn%3D4kruKiO6m1cwJsXSSj1aAd4Vzpges38K-ZitfLSUoESA%40mail.gmail.com.


Query Help

2023-02-07 Thread Jasel17212
Two questions:

Is there a shorthand way to write the following query?

ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr 
"has_meta('tag2')"

Is there a way to group the results of this query by tag?

ledger reg ^exp and expr "has_meta('tag1')" or ^exp and expr 
"has_meta('tag2')" --group-by 

Thanks
JL

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/717b2d79-9c33-4575-a457-aefba90efb6bn%40googlegroups.com.