allow plugins to list / read runtime files

also renamed most of the new functions to be
more specific about what kind of files this is for.
This commit is contained in:
Florian Sundermann
2016-09-15 16:42:45 +02:00
parent 796638d095
commit 9eeb14956c
9 changed files with 156 additions and 123 deletions

View File

@@ -529,7 +529,7 @@ func (v *View) ClearAllGutterMessages() {
// Opens the given help page in a new horizontal split
func (v *View) openHelp(helpPage string) {
if data, err := FindExtensionFile(FILE_Help, helpPage).Data(); err != nil {
if data, err := FindRuntimeFile(FILE_Help, helpPage).Data(); err != nil {
TermMessage("Unable to load help text", helpPage, "\n", err)
} else {
helpBuffer := NewBuffer(data, helpPage+".md")