-
Notifications
You must be signed in to change notification settings - Fork 27
[REQUEST] restrict digraph completion to a subset #8
Description
Hi, thanks for this vim plugin! I use digraph completion most often, and UnicodeName mapped to ga.
With the current implementation, all characters that combine to a digraph, any digraph, are converted in a visual selection. Instead, would it be possible to restrict completion to a user-defined digraph subset? In most practical cases, this would allow visually selecting all text in the file and pressing F4 to convert all non-converted digraphs -- and those digraphs only -- in one fell swoop, instead of having to dig down the file for each unconverted digraph and change it with visual F4 one by one.
For instance, g:digraph_output_subset could be set to an array of decimal codes corresponding to the requested output digraphs, and the plugin would convert only character pairs that combined into one of those codes.
Thanks for your consideration.
P.S. I tried reproducing the Digraphs! A example found in unicode.txt help file, but nothing happens. It seems the plugin is stuck waiting for something or taking too long to complete (at least a minute). I can interrupt it and return to vim by pressing Ctrl+C. Other examples in unicode.txt seem to work.