On 6/13/16 6:30 AM, Simon Michael wrote:
On 6/9/16 12:41 PM, Fergus Cameron wrote:
Nah, text-editor is better idea. Create a temp file (mktemp) and
output some data to it from either an 'entry' transaction or a static
template (with current date, I guess). Then invoke VISUAL or EDITOR
on it (or 'vi' if nothing there) and once that exits, append to the
current ledger file. Job done. IMHO.
I'm interested too. Recently I've begun adding data entry to hledger-ui,
by integrating the console-style hledger add command. I was thinking of
the above, but I think the editor modes work best eg for account name
completion when they can see the full file, so I plan to do that. It
makes for easier saving too. In any case, for this kind of thing we need
to find out the file position of a transaction.
PS: I mean, for editing we'd like to have the file position. For adding,
it's a simple append, just as you said.
--
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.