Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sources ¶
Sources encapsulates all the sources of data we use for various lookups.
func NewAll ¶
func NewAll() *Sources
NewAll gives us a Sources item which has had loaded all the data sources that we know about.
func (*Sources) LoadUnicode ¶
LoadUnicode gives us static information about Unicode data sources.
func (*Sources) LoadVim ¶
LoadVim gives us dynamically-loaded data about vim digraphs, retrieved by invoking vim. Will handle vim not being installed (but will print errors; we'll probably change this in the future).
func (*Sources) LoadVimAgain ¶ added in v0.0.2
LoadVimAgain avoids the cache so that data is loaded from Vim again
type VimData ¶
type VimData struct {
DigraphByRune map[rune][]VimDigraph
}
VimData is the set of all data we have retrieved about characters from vim.
func (VimData) DigraphsFor ¶
DigraphsFor retrieves a string which is a space-separated list of the known digraph sequences which will produce a given rune.
type VimDigraph ¶
VimDigraph encapsulates a vim digraph sequence, which is an input tuple of keypresses which together result in a rune. After typing "Ctrl-K", you might enter "Pd" to get "£".