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
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
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
Johann Klähn
7c67866b22
ledger.vim: use full width, not only 80 chars
...
Also add option g:ledger_maxwidth to provide old behaviour
by putting a line like this in .vimrc:
let g:ledger_maxwidth = 80
I think that it would make sense to put all the functions and
everything that has to do with foldtext in ftplugin/ledger.vim
2009-06-12 23:09:55 +02:00
John Wiegley
e282d55d63
Johann Klähn: Updated ledger.vim to 0.0.5
2009-03-26 16:38:41 -04:00
John Wiegley
ca42f2b9a7
Johann Klähn: Added metadata support for ledger.vim
2009-03-24 18:07:56 -04:00
John Wiegley
944c63e6f2
The Great Renaming, Part II
...
The last commit did not contain the majority of changes because of a
slight mishap. This contains the real changeset.
2009-02-23 19:07:30 -04:00
Mark Carter
6e4581690d
Added new contrib/getquote-uk.py script
2009-02-23 14:35:04 -04:00
John Wiegley
08559bff34
Moved scripts from contrib/scripts/ into contrib/
2009-02-23 14:04:50 -04:00
John Wiegley
066aef6090
Added a repl.sh sample script to the contrib/ directory.
2009-02-04 20:52:40 -04:00
John Wiegley
024e10cbfa
Updated ledger.vim to the latest version.
2009-01-28 17:16:20 -04:00
John Wiegley
8cebce5676
Added code for the csv2ledger parser that I use personally.
2008-08-08 19:21:55 -04:00
John Wiegley
f6f4a46cf5
Moved around most of the files so that source code is in src/, documentation
...
is in doc/, etc.
2008-08-05 18:05:49 -04:00