Skip to content

Commit f002ec4

Browse files
committed
update documentation
1 parent 7b8b940 commit f002ec4

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

README.mkd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ Tips and useful commands
2121
* `:call LedgerSetDate(line('.'), 'auxiliary')`
2222

2323
will set today's date as the auxiliary date of the current transaction. You
24-
can use also 'primary' in place of 'auxiliary' or pass in a different date
25-
measured as seconds since 1st Jan 1970.
24+
can use also `primary` or `unshift` in place of `auxiliary`. When you pass
25+
"unshift" the old primary date will be set as the auxiliary date and today's
26+
date will be set as the new primary date.
27+
To use a different date pass a date measured in seconds since 1st Jan 1970
28+
as the third argument.
2629

2730
* `:call LedgerSetTransactionState(line('.'), '*')`
2831

doc/ledger.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ Tips and useful commands
3131

3232
* Try account-completion (as explained below)
3333

34-
* `:call LedgerSetDate(line('.'), 'effective')`
34+
* `:call LedgerSetDate(line('.'), "auxiliary")`
3535

36-
will set today's date as the effective date of the current transaction. You
37-
can use also 'actual' in place of 'effective' or pass in a different date
38-
measured as seconds since 1st Jan 1970.
36+
will set today's date as the auxiliary date of the current transaction. You
37+
can use also "primary" or "unshift" in place of "auxiliary". When you pass
38+
"unshift" the old primary date will be set as the auxiliary date and today's
39+
date will be set as the new primary date.
40+
To use a different date pass a date measured in seconds since 1st Jan 1970
41+
as the third argument.
3942

4043
* `:call LedgerSetTransactionState(line('.'), '*')`
4144

@@ -113,7 +116,7 @@ LICENSE *ledger-license*
113116

114117
https://github.com/ledger/vim-ledger
115118

116-
Copyright 2009-2011 Johann Klähn
119+
Copyright 2009-2013 Johann Klähn
117120
Copyright 2009 Stefan Karrmann
118121
Copyright 2005 Wolfgang Oertl
119122

0 commit comments

Comments
 (0)