Commit graph

30 commits

Author SHA1 Message Date
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
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
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
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
Johann Klähn
7654ecc102 vim: complete account names with compl-keyword
Basic support for keyword completion (<C-X> <C-N>)
Will only work on account names with no spaces
2009-06-17 21:48:11 +02:00
Johann Klähn
9701548f7e vim: highlight account names
This helps to avoid confusion when an account is not
seperated from the amount by two spaces or a tab but only by one space.
In these cases the amount will now be highlighted
as if it belongs to the account name.

Thanks to user 'plaindocs' for reporting this.
2009-06-17 12:40:50 +02:00
Johann Klähn
b96df34d75 ledger.vim: split into multiple files
for better extendability
2009-06-15 23:37:57 +02:00