* Transaction Folding

I added a major feature to ledger mode and completed testing and
documenting it today.  Enh246 asked for "code folding".  That is the
idea that you can selectively hide portions of the buffer.  For ledger
it means you can now easily show only the transaction in a buffer that
you want to see. From the documentation:

By default this command is bound to C-c C-f.  EMACS will ask for a
regular expression, which at its simplest is just text you want to
match.  For example, lets say you want to review the transactions in
your checking account named "Assets:Checking".  Type C-c C-f, then
type "Checking" in the minibuffer.  EMACS will hide all other
transactions and highlight the remaining transactions.  You can edit
them without fear that your other transaction have had anything done,
they are only hidden from view.

The color used to highlight the xaction can be customized in the EMACS
customization menu. It is called ledger-occur-xact-face, and can be
changed to alter any charactistic of a font that you want.  If you
don't want any highlighting, simply set ledger-occur-use-face-unfolded
to nil in the customization menu.

To clear the highlighting and show all transactions, type C-c C-f
again.

This has been tested on a Ledger file with over 11000 postings and the
speed is reasonable but not instantaneous.

* Reconciling and Folding

By default the reconcile mode now uses transaction hiding to show only
transactions meeting the reconcile regex.  The reconcile widow itself
will only show a summary of uncleared transaction while the main
buffer will show all transaction meeting the regex, cleared or not.
This behavior can be disabled by setting ledger-fold-on-reconcile to
nil in the emacs customization menus.

* Integration with Calc mode

Another really cool feature that John put in a long time ago is the
ability to use the EMACS calc-mode to edit amounts.  Simply put the
cursor in an account and type C-c C-v.  Emacs calc will fire up will
the current amount at the top of stack ready for editing.  If the was
no amount after the eaccount, it will ensure two spaces after the
account and fire up calc.  Once you are done calculating the new value
'y' inserts the value at the top of the stack into the ledger buffer.
--
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

-- 

--- 
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/groups/opt_out.


Reply via email to