Skip to content

complete_dictionary_matches differs from i_CTRL-X-CTRL-K #2

@aaronjensen

Description

@aaronjensen

From looking at the implementation of complete_dictionary_matches I believe it differs in at least two ways from i_CTRL-X_CTRL-K:

From :help 'dictionary':

List of file names, separated by commas, that are used to lookup words
for keyword completion commands |i_CTRL-X_CTRL-K|. Each file should
contain a list of words. This can be one word per line, or several
words per line, separated by non-keyword characters (white space is
preferred).

So the problems I see are:

  1. It is currently assumed that there is only one file in dictionary
  2. The regex anchors to ^ instead of non-keyword

That all said, I may be doing something wrong but I wasn't able to get a simple test working w/ localcomplete#dictMatches by setting my completefunc and dictionary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions