vim-beancount completion not work.

250 views
Skip to first unread message

avh...@gmail.com

unread,
Nov 2, 2016, 6:35:36 AM11/2/16
to Beancount
Hi,

I installed vim-beancount using Vundle. Everything works great, except the completion function:

I created "test.beancount" and opened some accounts, but the completion did not work, says"Pattern not found".(screenshot1)

Then I opened "example.beancount" which is created by "bean-example" command. the completion works(screenshot2). But after I add a new account "Assets:Test:Test", I can't find it at completion list(I input "A:T:T",didn't show in the list screenshot3).

I am still Vim noob,  can anyone help me?


Cheng Zhen

unread,
Nov 2, 2016, 6:41:34 AM11/2/16
to bean...@googlegroups.com
Try saving the beancount file first, then reopen it to test completion .

May it works for you.

--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/2872f011-44cb-4b26-8615-ea65eb510558%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

avh...@gmail.com

unread,
Nov 3, 2016, 11:30:05 AM11/3/16
to Beancount
have tried, still not work.


On Wednesday, November 2, 2016 at 6:41:34 PM UTC+8, Cheng Zhen wrote:
Try saving the beancount file first, then reopen it to test completion .

May it works for you.
On Wed, Nov 2, 2016 at 6:35 PM, <avh...@gmail.com> wrote:
Hi,

I installed vim-beancount using Vundle. Everything works great, except the completion function:

I created "test.beancount" and opened some accounts, but the completion did not work, says"Pattern not found".(screenshot1)

Then I opened "example.beancount" which is created by "bean-example" command. the completion works(screenshot2). But after I add a new account "Assets:Test:Test", I can't find it at completion list(I input "A:T:T",didn't show in the list screenshot3).

I am still Vim noob,  can anyone help me?


--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.

Jason Chu

unread,
Nov 3, 2016, 11:47:50 AM11/3/16
to Beancount
Right now the cached list of accounts is only updated at initial completion request (https://github.com/nathangrigg/vim-beancount/blob/master/autoload/beancount.vim#L92).  We don't reload accounts once they've been loaded once.  Quit vim and open it again.  If this doesn't work, please share an example file that you think should work and I will look into it more.

Jason Chu

unread,
Nov 3, 2016, 11:48:41 AM11/3/16
to Beancount
This is something I'd like to do, but I will probably end up doing it after I add support for python3 in vim, given that we can do much more efficient data introspection having access to beancount directly in process.
Reply all
Reply to author
Forward
0 new messages