Commit Graph

49 Commits

Author SHA1 Message Date
Simon Michael
b9affbaee9 ui: acc: show enter key in bottom help 2015-09-04 07:36:23 -07:00
Simon Michael
d83b22028b ui: acc: show short account names in tree mode again
This broke for some reason.
2015-09-04 07:29:34 -07:00
Simon Michael
8685a78795 ui: acc: enter key also enters register, for now 2015-09-03 21:05:45 -07:00
Simon Michael
25a0a7c4dd ui: make keys bold in bottom help 2015-09-03 21:03:03 -07:00
Simon Michael
ebc4022888 ui: after exiting --register, select that account 2015-09-03 20:51:05 -07:00
Simon Michael
472b0aee75 ui: whitespace 2015-09-03 20:46:36 -07:00
Simon Michael
d46f511b79 ui: allow navigating to accounts after --register 2015-09-03 20:40:43 -07:00
Simon Michael
07041e1b65 ui: fix --ignore-assertions, perhaps more 2015-09-03 16:09:52 -07:00
Simon Michael
9f2d59948e ui: styled amounts, smarter accounts column sizing 2015-08-28 17:55:50 -07:00
Simon Michael
74512814ec cli/ui/web: rename X.Options modules to X.XOptions
Make these modules' names more like the heavily-used types they
define (CliOpts, UIOpts, WebOpts). This is consistent with
RawOptions and ReportOptions, and helps with code navigation.
2015-08-28 12:43:51 -07:00
Simon Michael
61f994e162 ui: update backlog 2015-08-28 11:43:29 -07:00
Simon Michael
8a343002f6 ui: fix vector-related breakage with GHC < 7.10 2015-08-28 11:39:23 -07:00
Simon Michael
570e340b7c ui: fix missing dependencies/bounds 2015-08-28 11:28:40 -07:00
Simon Michael
5792c67666 ui: refactor depth key handling 2015-08-28 11:28:22 -07:00
Simon Michael
f3dd5eb830 fix options breakage with GHC < 7.10 2015-08-28 11:17:49 -07:00
Simon Michael
c897c03469 ui: number keys > max depth clear the depth limit 2015-08-28 10:31:40 -07:00
Simon Michael
6b17305196 ui: +/- adjusts the depth limit (accounts screen) 2015-08-28 10:01:54 -07:00
Simon Michael
4dd1e9c725 clean up options validation a little 2015-08-28 09:57:01 -07:00
Simon Michael
4f351d6c9c ui: --register starts in the register screen 2015-08-28 08:48:40 -07:00
Simon Michael
eefa9c42a3 ui: remove debug code 2015-08-28 08:12:33 -07:00
Simon Michael
cc0c981d29 ui: display depth and other filters independently
As the comment says:
In hledger,
- reportopts{depth_} indicates --depth options
- reportopts{query_} is the query arguments as a string
- the report query is based on both of these.
For hledger-ui, currently, we move depth: arguments out of reportopts{query_}
and into reportopts{depth_}, so that depth and other kinds of filter query
can be displayed (and controlled) independently.
2015-08-28 08:07:54 -07:00
Simon Michael
d1467d7967 ui: drop unneeded args field, use opts instead 2015-08-28 06:36:07 -07:00
Simon Michael
898b0ec82a ui: fix typo breaking build 2015-08-28 06:29:24 -07:00
Simon Michael
3fa0ad8eb6 ui: drop old posting register screen's code 2015-08-27 22:53:12 -07:00
Simon Michael
b51f45c675 ui: misc enhancements, allow depth adjustment
- clean up options a bit, enable -V/--value (affects the accounts screen)
- more informative top/bottom borders, including key help
- number keys adjust the depth limit (accounts screen)
- remove obsolete args parameter
2015-08-27 22:46:14 -07:00
Simon Michael
d662df77f5 ui: don't let a depth limit disrupt the register 2015-08-26 11:07:16 -07:00
Simon Michael
e5f00b3e05 ui: simplify & format screen titles 2015-08-25 16:01:12 -07:00
Simon Michael
b38db8610f ui: add filepath to cabal file 2015-08-25 10:23:17 -07:00
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
229715ef9e ui: update backlog 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
ebcfdac109 ui: require split
For splitOn. The extra package is an alternative to consider.
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
64cc886bb5 ui: update cabal file, readme, changelog 2015-08-13 11:52:10 -07:00
Simon Michael
207ae772d4 ui: revive the curses UI, now named hledger-ui 2015-08-13 11:22:40 -07:00