Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LicenseHeaderFilename is the file name to look for in projects. // // TODO: this belongs in the license header plugin, since not all // languages need it. LicenseHeaderFilename = ".license-header" // DefaultFontSize is the font size that will be used if no font // size settings are found in the config files. DefaultFontSize = 12 )
Variables ¶
View Source
var ( // App is an XDG application config. It's exported so that plugins can load their own config // files from vidar's config directories. // // TODO: we should unexport this and provide functions to access its methods. Allowing plugins // to assign to App is misleading and potentially dangerous. App = xdg.New("", "vidar") // BuiltinFonts is a list of the fonts that we have built in to the // editor. This is done so that vidar will always be able to start, // even if none of the fonts on a user's system are parseable. BuiltinFonts = map[string][]byte{ "gomono": gomono.TTF, "gomonobold": gomonobold.TTF, "gomonoitalic": gomonoitalic.TTF, "gomonobolditalic": gomonobolditalic.TTF, } )
View Source
var ( DefaultProject = Project{ Name: "*default*", Path: "/", Gopath: os.Getenv("GOPATH"), } )
Functions ¶
func AddProject ¶
func AddProject(project Project)
func Bindings ¶
func Bindings(commandName string) (events []gxui.KeyboardEvent)
func SetDefaultBindings ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.