sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 03857e5680349e6f1de01f3802f71e5f65c28807
parent 2b215c694d8cbb6105529b93c887895fdb928544
Author: Seva Zhidkov <zhidkovseva@gmail.com>
Date:   Mon, 14 Dec 2015 21:54:41 +0400

@ in thread-view now update the thread

Regenerate messages in thread-view-model when '@' hotkey clicked by calling update function that update text and marking buffer dirty.

GCI task: https://codein.withgoogle.com/dashboard/task-instances/5633471321997312/

Diffstat:
M History.txt | 1 +
M lib/sup/modes/thread_view_mode.rb | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/History.txt b/History.txt
@@ -4,6 +4,7 @@
 * Antoni Kaniowski: INDENT_SPACES are now configurable via config.yaml
 * Sharif Olorin: Use standard unit abbreviations for attachment sizes
 * Vickenty Fesunov: Optimize text rendering
+* Seva Zhidkov: '@' reloads thread-view.
 * Various bug fixes
 
 == 0.22.1 / 2015-06-18
diff --git a/lib/sup/modes/thread_view_mode.rb b/lib/sup/modes/thread_view_mode.rb
@@ -52,6 +52,7 @@ EOS
     k.add :toggle_detailed_header, "Toggle detailed header", 'h'
     k.add :show_header, "Show full message header", 'H'
     k.add :show_message, "Show full message (raw form)", 'V'
+    k.add :reload, "Update message in thread", '@'
     k.add :activate_chunk, "Expand/collapse or activate item", :enter
     k.add :expand_all_messages, "Expand/collapse all messages", 'E'
     k.add :edit_draft, "Edit draft", 'e'
@@ -204,6 +205,10 @@ EOS
     @layout[m].state = (@layout[m].state == :detailed ? :open : :detailed)
     update
   end
+  
+  def reload
+    update
+  end
 
   def reply type_arg=nil
     m = @message_lines[curpos] or return