1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Fix keyboard command "o" in the todo widget

Pass the full path of the todo file to openFileUtil.

Fix #256
This commit is contained in:
Anand Sudhir Prayaga 2018-07-27 10:36:02 +02:00
parent c705297805
commit 455fcffb5e

View File

@ -130,7 +130,8 @@ func (widget *Widget) keyboardIntercept(event *tcell.EventKey) *tcell.EventKey {
return nil
case "o":
// Open the file
wtf.OpenFile(widget.filePath)
confDir, _ := cfg.ConfigDir()
wtf.OpenFile(fmt.Sprintf("%s/%s", confDir, widget.filePath))
return nil
}