From 7e3a8fdcd6cda31fae4d727452d7431b5d19937c Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Fri, 26 Apr 2019 06:11:55 -0700 Subject: [PATCH 1/3] Fix a number of minor bugs in the Twitter module --- modules/twitter/widget.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/twitter/widget.go b/modules/twitter/widget.go index 4c6adcfd..cd614745 100644 --- a/modules/twitter/widget.go +++ b/modules/twitter/widget.go @@ -12,11 +12,12 @@ import ( ) const HelpText = ` - Keyboard commands for Textfile: + Keyboard commands for Twitter: /: Show/hide this help window h: Previous Twitter name l: Next Twitter name + o: Open the Twitter handle in a browser arrow left: Previous Twitter name arrow right: Next Twitter name @@ -156,7 +157,7 @@ func (widget *Widget) keyboardIntercept(event *tcell.EventKey) *tcell.EventKey { widget.Next() return nil case "o": - wtf.OpenFile(widget.CurrentSource()) + wtf.OpenFile(widget.currentSourceURI()) return nil } @@ -171,3 +172,8 @@ func (widget *Widget) keyboardIntercept(event *tcell.EventKey) *tcell.EventKey { return event } } + +func (widget *Widget) currentSourceURI() string { + src := "https://twitter.com/" + widget.CurrentSource() + return src +} From 16e68371d87058b2cf261df995f9162d3884a3d8 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Fri, 26 Apr 2019 06:13:31 -0700 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bde31f52..c3ec2f50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ * Multi-page sigils off-by-one error fixed, [#413](https://github.com/wtfutil/wtf/issues/413) * Many points of potential and probably race conditions improved to not have race conditions. Stability should be much greater now +* In the Twitter module, the following have been fixed: + * Help text says "Twitter" instead of "TextFile" + * Keyboard-command "o" opens the current Twitter handle in the browser + * Keyboard-command "o" is documented in the help text ## 0.7.1 From 95d40adf05cadda49afe2ff87b1b8a7aceed946e Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Fri, 26 Apr 2019 06:14:15 -0700 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3ec2f50..5b0bb026 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ ### 🐞 Fixed * Multi-page sigils off-by-one error fixed, [#413](https://github.com/wtfutil/wtf/issues/413) -* Many points of potential and probably race conditions improved to not have race conditions. Stability should be much greater now +* Many points of potential and probable race conditions have been improved to not have race conditions. WTF should be quite a bit more stable now * In the Twitter module, the following have been fixed: * Help text says "Twitter" instead of "TextFile" * Keyboard-command "o" opens the current Twitter handle in the browser