Add Buffer.AbsPath and a plugin function DirectoryName (#455)

* Add Buffer.AbsPath

* Add a plugin function DirectoryName

* Update plugins.md
This commit is contained in:
10sr
2016-11-19 01:53:48 +09:00
committed by Zachary Yedidia
parent 4ce02e4c85
commit 7bc8d77387
3 changed files with 10 additions and 4 deletions

View File

@@ -57,6 +57,8 @@ as Go's GOOS variable, so `darwin`, `windows`, `linux`, `freebsd`...)
* `JoinPaths(dir... string) string` combines multiple directories to a full path
* `DirectoryName(path string)` returns all but the last element of path ,typically the path's directory
* `GetOption(name string)`: returns the value of the requested option
* `AddOption(name string, value interface{})`: sets the given option with the given