Johann Klähn
1ef5e525be
vim. add completion cache and payee completion
2011-05-09 19:57:50 +02:00
Johann Klähn
2da33a83e5
vim. update documentation somewhat
2011-05-09 19:57:50 +02:00
Johann Klähn
976d9e5d8b
vim. correctly parse first lines of transactions
...
This fixes trailing comments being chopped of
and later readded with too few spaces. (when calling format_head())
2011-05-09 19:57:50 +02:00
Vladimir Parfinenko
da341726c2
vim. fix highlighting of accounts
...
fixes such situations: "baz:foo a foo:baz"
2011-02-27 15:44:29 +06:00
Johann Klähn
67aadeb808
vim. fix unset completion type
2011-01-04 16:30:04 -05:00
Johann Klähn
64ce9e2e99
vim. highlight typed tags
...
See mailing list on June 12 2010 / "New: Support for typed metadata"
Message-Id: <D22C04C4-64F7-49B9-8006-2F7F97A4298A@gmail.com>
2010-10-07 18:09:01 +02:00
Johann Klähn
4d56417f75
vim. parse comments at eol in parse_body()
2010-09-15 21:18:23 +02:00
Johann Klähn
2a82edb9f0
vim. highlight metadata on same line as posting
2010-09-15 20:46:18 +02:00
Johann Klähn
4886646614
vim. fix off-by-one bug in ToggleTransactionState
2010-09-15 20:08:22 +02:00
Johann Klähn
453327a180
vim. fix issue with description in from_lnum()
...
Thanks to Chad Voegele, see mailing list ledger-cli@googlegroups.com:
Whenever I had a transaction such as
2010/09/10 * castle bar, nyc (beer)
the transaction.from_lnum function would recognize (beer) as the code
for the transaction which is incorrect since it comes at the end of
the line.
Message ID:
73e397f4-234e-46fe-87e5-45f86f934bf1@k30g2000vbn.googlegroups.com
2010-09-15 20:03:27 +02:00
Johann Klähn
c2384b6046
vim. fix highlighting of comments at end of line
2010-09-13 13:09:17 +02:00
Johann Klähn
0f81c67c29
vim. change syntax file to allow comments at eol
2010-09-13 12:55:36 +02:00
Johann Klähn
86153f670d
vim. remove tag completion for now
2010-09-12 14:23:30 +02:00
Johann Klähn
3a679a695d
vim. avoid misinterpretion of 1 char words
2010-09-12 14:18:06 +02:00
Johann Klähn
1be3a79385
vim. check for most common case first (parse_body)
2010-09-08 23:29:36 +02:00
Johann Klähn
6c0ccd5ffd
vim. add LedgerToggleTransactionState()
...
By using
call LedgerToggleTransactionState(line('.'), ' *?')
the state of the transaction will toggle through:
no state -> * -> ? -> no state -> …
beginning at what ever state it currently has.
Adjust to your liking.
Thanks to Chad Voegele for the suggestion.
2010-09-08 23:24:39 +02:00
Johann Klähn
58fcb0f30f
vim. make sure cursor/line is on a transaction
...
Thanks to Chad Voegele for reporting and fixing this in
the first place.
2010-09-08 22:31:42 +02:00
Johann Klähn
019a60e6d1
vim. update s:get_columns()
2010-09-08 22:18:28 +02:00
Johann Klähn
e4060eb421
vim. get transactions in a range of lines
2010-09-08 17:34:38 +02:00
Johann Klähn
eea6f33a2e
vim. fix return type of s:transaction.from_lnum()
2010-09-08 17:34:05 +02:00
Johann Klähn
f7f8432c52
vim. add function to parse postings
2010-09-08 14:48:28 +02:00
Johann Klähn
ae3a8b6e11
vim. add case of automatic transactions
2010-09-08 14:44:34 +02:00
Johann Klähn
84fea7f136
vim. reimplement function to change state
...
Note: You now have to provide the line number:
call LedgerSetTransactionState(line('.', '*')
2010-09-08 10:23:06 +02:00
Johann Klähn
f8c804ac79
vim. allow use of 0 as timestamp
...
To remove the effective date you would now call the function like this:
call LedgerSetDate(line('.'), 'effective', -1)
2010-09-08 10:10:09 +02:00
Johann Klähn
66b39c46d1
vim. add function to modify actual/effective date
...
This allows you to set the effective date in a convenient way.
Maybe I will add date selection using calendar.vim by Yasuhiro
Matsumoto. Until then, you can map this to use today's date:
call LedgerSetDate(line('.'), 'effective')
2010-09-08 10:01:44 +02:00
Johann Klähn
cf40d1c9d7
vim. introduce basic transaction 'class'/concept
2010-09-08 10:00:17 +02:00
Johann Klähn
2dff4dea3f
vim. add function to change item state ~ reconcile
...
To try this, map or call the following function:
LedgerSetTransactionState('') – removes state
LedgerSetTransactionState('*') – sets 'checked' state
…
The logic used to distinguish the different parts
of the first line of a transaction is rather basic
but proved to work so far.
2010-09-07 21:05:08 +02:00
Johann Klähn
04f564f01c
vim. use ledger print as 'formatprg'
...
You can now try to select some lines using V (visual mode)
and have them automatically formatted using gq
2010-09-07 17:59:26 +02:00
Johann Klähn
0570c9c416
vim. display warning messages in quickfix window
...
To use this option you must set g:ledger_bin = "ledger --strict"
before the compiler plugin is loaded (your .vimrc for example).
2010-08-14 12:24:46 +02:00
Johann Klähn
31d8d41d02
vim. add syntax highlighting for tag/pop
2010-06-11 17:02:24 -04:00
Johann Klähn
2c6031a233
vim. add syntax highlighting for tag/pop
2010-06-11 13:28:23 +02:00
Johann Klähn
020c3fb2b6
vim. ledger command can be changed
2010-02-22 13:07:39 +01:00
Johann Klähn
eafc23bd4e
vim. Add quickfix support
2010-02-21 19:48:17 +01:00
Johann Klähn
50889bf2b8
vim. polish syntax highlighting
2010-02-21 19:48:00 +01:00
John Wiegley
752677edf0
Merge commit 'kljohann/master' into next
2009-06-29 16:17:22 +01:00
Johann Klähn
2aa9f5115c
vim. remove old completion by keyword
2009-06-29 16:41:36 +02:00
Johann Klähn
d680df8712
vim. Update README
2009-06-29 16:41:35 +02:00
Johann Klähn
396e1a5002
Fix account completion for virtual transactions
2009-06-29 16:41:35 +02:00
Johann Klähn
84e6a6e926
vim. list 'deeper' entries first (completion)
2009-06-29 16:41:35 +02:00
Johann Klähn
a853a1c59a
vim. some refactoring
2009-06-29 16:41:35 +02:00
Johann Klähn
fbf211c95e
vim. basic support for tag completion
2009-06-29 16:41:35 +02:00
Johann Klähn
7aabf29285
vim. add function to collect all tags in a file
2009-06-29 16:41:34 +02:00
Johann Klähn
4156a0488c
vim. fix for accounts with spaces
2009-06-29 16:41:34 +02:00
Johann Klähn
3b1898f3e8
vim: add current text to completion
2009-06-29 16:41:33 +02:00
Johann Klähn
4621f1117e
vim: First try on omni completion for account names
...
That is a completion which is aware of what it should complete.
Currently only account names are supported.
When you insert an account name like this:
Asse<C-X><C-O>
You will get a list of top-level accounts that start like this.
Go ahead and try something like:
As:Ban:Che<C-X><C-O>
When you have an account like this, 'Assets:Bank:Checking'
should show up.
2009-06-29 16:41:33 +02:00
John Wiegley
6fbce9dd1a
Merge commit 'kljohann/master' into next
2009-06-28 12:38:12 +01:00
John Wiegley
440124eacc
Restored --download, although not done yet
...
The problem at this point is that it's recording prices in the price
database multiple times; it should only need to download a price for
each commodity once per day.
2009-06-24 02:44:07 +01:00
Johann Klähn
1d8111b43c
Fix small 'bug' on accounts with spaces
2009-06-23 01:20:20 +02:00
Johann Klähn
8e8d9e5c85
vim: add README
2009-06-17 23:27:33 +02:00
Johann Klähn
360025ac2f
vim: fill text for "table" can be modified
2009-06-17 23:24:01 +02:00