Skip to content

Instantly share code, notes, and snippets.

@simonmichael
Forked from anonymous/gist:4354489
Last active December 10, 2015 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonmichael/4354506 to your computer and use it in GitHub Desktop.
Save simonmichael/4354506 to your computer and use it in GitHub Desktop.
hledger --width design notes

The --width/-w options adjusts the width of the output. By default, register's output is 80 characters wide. To allow more space for long descriptions and account names, use -w to increase the width to 120 characters, or -wN to set any desired width (at least 45 recommended). The date and amount fields have fixed width, and the remainder is split between description and account.

With multiple comma-separated values, -w sets the respective field widths:

-w 10,20,30,10,10

A total width or field width of auto means be as wide as necessary to avoid clipping data. If a current terminal width can be detected, the total width will be limited to this. Eg:

-w auto
-w 10,20,auto,auto,auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment