Commit Graph

518 Commits

Author SHA1 Message Date
Simon Michael
db83ff1000 ui: reg: track current account better, nicer title 2015-08-25 07:03:33 -07:00
Simon Michael
055d820ec7 ui: reg: increase whitespace before change amount 2015-08-25 07:02:32 -07:00
Simon Michael
cec9b7cae9 ui: reg: show all other accounts instead of <split>
For now.
2015-08-25 07:01:04 -07:00
Simon Michael
ecd9b9e54c ui: reg: don't force --no-elide
--no-elide ensures that a regular, clear account hierarchy is displayed.
The downside is that when you are filtering on account, say
assets🏦checking, it's unclear what to show when the user drills
down on the "assets" and "bank" parent accounts, without causing confusion.
2015-08-25 06:57:25 -07:00
Simon Michael
f496ec9809 ui: acc: show a better title with filename & query 2015-08-25 06:56:04 -07:00
Simon Michael
d32a028a19 ui: fix AttrMap/styles explanation per JD 2015-08-24 16:24:12 -07:00
Simon Michael
5822380719 ui: note JD layout tips, issues 2015-08-24 16:24:12 -07:00
Simon Michael
455c71c9ab ui: reg: fix width undercalculation 2015-08-24 16:24:12 -07:00
Simon Michael
5eca4bb70e ui: reg: more width calculation voodoo 2015-08-24 16:24:12 -07:00
Simon Michael
b6e98499ef ui: reg: increase post-date and inter-amt space 2015-08-24 16:24:12 -07:00
Simon Michael
efb3a154da ui: register: fix width overflow from int division 2015-08-24 16:24:12 -07:00
Simon Michael
e7aa150e52 ui: solidified register screen, added themes
- register screen:
  - smarter width-sensitive layout, with multi-commodity amounts on one line
  - items are sorted in date order
  - jumps to the latest item by default, with consistent scroll position
  - more prerendering, might speed up movement/paging slightly

- themes! --theme to select, --help to list (current themes: default, terminal, greenterm)

- border tweaks - dropped side borders, added side padding
2015-08-24 16:24:11 -07:00
Simon Michael
3bdd8916b9 ui: register screen: use full terminal width
This uses a clunky hack for now. To adapt to a window resize,
you must exit and re-enter the register screen (maybe twice).
2015-08-24 16:24:11 -07:00
Simon Michael
6b07503792 ui: move backlog to readme 2015-08-24 16:24:11 -07:00
Simon Michael
866414a528 ui: provide a more useful transaction register
The register screen is now like the register view in hledger-web (and
other accounting systems), rather than hledger's register command.
This means:

- it shows transactions affecting a particular current account, rather
  than postings matching a pattern.

- Each line represents a whole transaction.

- The account field shows the *other* account being transacted with.
  When there is more than one, they are all listed, abbreviated and
  marked with "(split)".

- The amount field shows the effect of the transaction on the current
  account; positive for an inflow to this account, negative for an
  outflow.

- The balance field should usually show the current account's historic
  balance as of the transaction date, even when you change the report
  start date. (Not working yet - currently it always shows the running
  total).

- Transactions are listed most recent first, currently.
2015-08-24 16:24:11 -07:00
Simon Michael
5953978471 ui: update for new brick branch, pgup/down works 2015-08-24 16:24:11 -07:00
Simon Michael
49e1840a0f ui: rewrite the ui using brick
hledger-ui (formerly hledger-vty) is now built on brick, a new
declarative UI layer built on vty. This brings much new power, and
should make the UI much easier to grow and maintain.

At this point, functionality and performance are similar to the old
version. There's no journal entries screen, but entering the postings
screen jumps to the latest posting, and layout is better (multiple
commodities are rendered on one line).

Requires unreleased brick from github (HEAD or some branch) for now.
2015-08-24 16:24:11 -07:00
Simon Michael
207ae772d4 ui: revive the curses UI, now named hledger-ui 2015-08-13 11:22:40 -07:00