Extensions API: manual refresh list on accept #533

Closed
noscript opened this Issue Feb 20, 2014 · 4 comments

Projects

None yet

2 participants

@noscript

Hi. I'm working on a ctrlp extension where I need to refresh the result list when doing a certain accept action (e.g. <c-x>). Is there a function for that?

@kien
Owner
kien commented Feb 20, 2014

You can call s:PrtClearCache() with ctrlp#call({name} [, {args}]). Or just simulate <F5> with Vim's feedkeys(). The extension's init will be called again.

@noscript

That works, but is it possible to preserve the cursor on the same line?

@kien
Owner
kien commented Feb 21, 2014

It's preserved by default, unless nolim is set to 1 in the extension.

@noscript

Thanks. Just what I needed.

@noscript noscript closed this Feb 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment