Project completion anywhere with a user-defined completion function #384
sdondley
started this conversation in
Show and tell
Replies: 1 comment
-
|
OK, didn't thoroughly test this cargo culted code. Only works when you are at the beginning of the current line. Will get this sorted out. Looks like an easy fix. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, you can use omni completion,
<c-x><c-o>, to pick a project when creating a new task. Example:* [ ] some new task -- project:<c-x><c->This is nice, but only works in this one context (creating a new task). Here is a very simple hack that allows you to find a project easily with a user-defined completion function. Simple drop this into the .vim/after/ftplugin/vimwiki.vim file (create it if it doesn't exist):
Works well enough. It could be improved a bit by prefixing each project name with "project:" and then assigning it to
s:matches. Unfortunately, by bash skills aren't up to par.Beta Was this translation helpful? Give feedback.
All reactions