* Zack Williams <[email protected]> [2012-03-17 11:56]:
> You can already tightly control what is displayed with expressions
> after the bal/reg command.  I have some fairly complex invocations
> of ledger, which I keep in scripts or rakefiles that wrap all the
> ledger options so I don't have to type them out each time.

Yes, that's a good point.  I forgot to mention that you can achieve
some of the things I want this way.  For example, in my first example,
I could have specified:
  ledger reg assets:receivable:adsense and "any(assets:bank)
to only get the cash payment.

However, I think re-write rules would allow you to do more than what
is currently possible (such as changing descriptions, account names,
etc).

But I think expressions are an important part.  I think it would be
useful if we could specify a file on the command line that contains
expressions, so you could easily put complex expressins in a file.
(As you say, you could just put them in a shell file; but I think you
may want to re-use the same expressions for different queries, so
specifying the file on the command line is more flexible.)

So I guess my feature request can be split into two parts:
 - Allow expressions to be read from a file
 - Add expressions or some syntax to allow re-writing of transactions

> Also, take a look at the 2012-02-19 list post titled "the Transfer
> account pattern", which is the account formulation pattern I came
> across that allows accounts to cancel out when balanced.

Yep, I saw that mail and find it very interest.  I solve this problem
in a different way but I believe your solution is more elegant.

However, I don't see how transfer accounts would solve the particular
problem I raised in my message.
-- 
Martin Michlmayr
http://www.cyrius.com/

Reply via email to