upstreammuse / cashpiles

0 stars 0 forks source link

Reconcile separates transaction from its comments #33

Open upstreammuse opened 2 years ago

upstreammuse commented 2 years ago

Reconciling is putting the reconcile command between comments and transactions that should remain together in the ledger.

Expected cause: The comment is 'undated', and belongs to the previous date, so comes before the balance command. The transaction is dated after the balance command, so comes after.

Perhaps the insertion behavior could be smart w.r.t. blank lines and comments? (Comments on their own are a blank line in the model, so it's the same in either case.) Perhaps blank lines and comments always inherit the date of the following item, rather than the date of the preceding item? That assumes comment-on-top, though, and comment-on-bottom would break that. It's almost pointing to needing some way to link blank lines that have comments to 'above' or 'below' items. Or even going further than that and defining some kind of 'content blocks' that are separated by truly blank lines (no comments).