google / google/vim-maktaba

Add helpers for command completion

Open
#26 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Vim Script
Stars
588
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Vim's command completion interface is fine for simple commands, but pretty awkward for more complex commands like :Glaive that can't necessarily base completion just on `ArgLead` (the last partial arg on the command line), and have to do complex processing on `CmdLine` using `CursorPos` and parse out the command name, leading modifiers and whatnot to handle command lines like ": ::4,'XGlaive! …".

Maktaba should include some utilities to bridge the gap between vim's completion interface and what you need to write powerful completion functions easily.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.