There is no way to do this, since "commodityless" figures have their own
meaning to Ledger.
John
http://hledger.org/MANUAL.html#default-commodity
I guess ledger 2.x did ?
Nope, uncommoditized amounts have always been special. There has never.
been any "implied" commodity. The "D" directive is used to setup default
display characteristics, not a default commodity.
John
> Interesting! I thought otherwise from "Specifies the default commodity to use, by specifying an amount in the expected format. The entry command will use this commodity as the default when none other can be determined." in the 2.x manual. Still, I'm happy with how I'm doing it.
Ah, for the "entry" command, yes, it does do that. I'd forgotten. But never
for a Ledger data file.
John