From 455fcffb5e92de8c7835af899ff310455a769203 Mon Sep 17 00:00:00 2001 From: Anand Sudhir Prayaga Date: Fri, 27 Jul 2018 10:36:02 +0200 Subject: [PATCH] Fix keyboard command "o" in the todo widget Pass the full path of the todo file to openFileUtil. Fix #256 --- todo/widget.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/todo/widget.go b/todo/widget.go index 7ce923e5..9d8723c5 100644 --- a/todo/widget.go +++ b/todo/widget.go @@ -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 }