mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Simplify the inclusion of the Common config settings into each module
Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -113,7 +113,12 @@ func (widget *KeyboardWidget) InputCapture(event *tcell.EventKey) *tcell.EventKe
|
||||
|
||||
// LaunchDocumentation opens the module docs in a browser
|
||||
func (widget *KeyboardWidget) LaunchDocumentation() {
|
||||
url := "https://wtfutil.com/modules/" + widget.settings.Name
|
||||
path := widget.settings.DocPath
|
||||
if path == "" {
|
||||
path = widget.settings.Type
|
||||
}
|
||||
|
||||
url := "https://wtfutil.com/modules/" + path
|
||||
utils.OpenFile(url)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user