NanoLedger icon indicating copy to clipboard operation
NanoLedger copied to clipboard

Support for hledger's "code" field

Open akosiaris opened this issue 6 months ago • 3 comments

First off, thanks for this software!

Now for the issue I am seeing, hledger supports a code field. This comes after the status mark, but before the description. It can more or less be any valid hledger identifier. e.g. (1234) or (foobar) or (here is a nice string). I tend to put there a UUID, either a provided one, or one I generate, but that's just me.

What I end up seeing when using nanoledger is this

Image

The payee field is joined with the code field and I need to scroll the field to see the payee, which admittedly isn't a great user experience.

A quick look at https://github.com/chvp/NanoLedger/blob/main/app/src/main/java/be/chvp/nanoledger/data/parser/TransactionParser.kt#L11 seems to not contain an implementation for the code field, but I am not even a newbie in Kotlin, so I might be wrong.

It would be nice if the code field was supported.

akosiaris avatar Sep 23 '25 15:09 akosiaris

Interesting, I didn't know about that field. In the short term I can definitely fix that it's not part of the payee, but letting it be editable will probably wait for a larger rework of the form that I'm still cooking up in my head (related #241, #229, maybe #302 as well).

chvp avatar Sep 23 '25 19:09 chvp

That's absolutely fine as far as i am concerned. It's your project and it's your time going into this. Whatever works for you. Thanks for posting the related issues.

akosiaris avatar Sep 23 '25 19:09 akosiaris

I did that first part in #341. I'll release it soon, but an update of one of the libraries I used broke the search functionality, so I'll have to fix that first.

EDIT: Released in 1.2.0.

chvp avatar Oct 18 '25 16:10 chvp