When I quit, sup goes through a slow process where it "saves" all the modified threads. This is problematic because 1) it takes a long time, and 2) if sup crashes before I get a chance to exit, then I have to rearchive everything again. Thanks. -- Steve Goldman sgoldman at tower-research.com T: 212.219.6014 F: 212.219.6007 Tower Research Capital, LLC 377 Broadway, 11th Fl. New York, NY 10013
Excerpts from Steve Goldman''s message of Tue Nov 04 15:55:57 -0700 2008:> > When I quit, sup goes through a slow process where it "saves" all the > modified threads. This is problematic because 1) it takes a long > time, and 2) if sup crashes before I get a chance to exit, then I have > to rearchive everything again. >Do a ''H'' and look at the help. ''$'' does save now. John> Thanks. > -- > > Steve Goldman > sgoldman at tower-research.com > > T: 212.219.6014 > F: 212.219.6007 > > Tower Research Capital, LLC > 377 Broadway, 11th Fl. > New York, NY 10013
Excerpts from John Bent''s message of Wed Nov 05 01:36:00 +0100 2008:> Excerpts from Steve Goldman''s message of Tue Nov 04 15:55:57 -0700 2008: > > > > When I quit, sup goes through a slow process where it "saves" all the > > modified threads. This is problematic because 1) it takes a long > > time, and 2) if sup crashes before I get a chance to exit, then I have > > to rearchive everything again. > > > Do a ''H'' and look at the help. ''$'' does save now.The help is ''?'' actually. -- Nicolas Pouillard aka Ertai
Excerpts from John Bent''s message of Tue Nov 04 19:36:00 -0500 2008:> Excerpts from Steve Goldman''s message of Tue Nov 04 15:55:57 -0700 2008: > > > > When I quit, sup goes through a slow process where it "saves" all the > > modified threads. This is problematic because 1) it takes a long > > time, and 2) if sup crashes before I get a chance to exit, then I have > > to rearchive everything again. > > > Do a ''H'' and look at the help. ''$'' does save now. > > JohnGreat. Is there a setting to make sup do this automatically every once in a while? It would be nice to be able to leave sup open all day, or many days, and not have to worry about remembering to hit ''$'' or a crash. Thanks. -- Steve Goldman sgoldman at tower-research.com T: 212.219.6014 F: 212.219.6007 Tower Research Capital, LLC 377 Broadway, 11th Fl. New York, NY 10013
Reformatted excerpts from Steve Goldman''s message of 2008-11-05:> Great. Is there a setting to make sup do this automatically every > once in a while? It would be nice to be able to leave sup open all > day, or many days, and not have to worry about remembering to hit ''$'' > or a crash.There is not. Patches accepted! -- William <wmorgan-sup at masanjin.net>
Excerpts from William Morgan''s message of Wed Nov 05 12:59:18 -0500 2008:> Reformatted excerpts from Steve Goldman''s message of 2008-11-05: > > Great. Is there a setting to make sup do this automatically every > > once in a while? It would be nice to be able to leave sup open all > > day, or many days, and not have to worry about remembering to hit ''$'' > > or a crash. > > There is not. Patches accepted!Point me to a beginning ruby tutorial! I''ve never contributed to anything open source before. So exciting. -- Steve Goldman sgoldman at tower-research.com T: 212.219.6014 F: 212.219.6007 Tower Research Capital, LLC 377 Broadway, 11th Fl. New York, NY 10013
Excerpts from Steve Goldman''s message of Wed Nov 05 15:34:42 +0100 2008:> Excerpts from John Bent''s message of Tue Nov 04 19:36:00 -0500 2008: > > Excerpts from Steve Goldman''s message of Tue Nov 04 15:55:57 -0700 2008: > > > > > > When I quit, sup goes through a slow process where it "saves" all the > > > modified threads. This is problematic because 1) it takes a long > > > time, and 2) if sup crashes before I get a chance to exit, then I have > > > to rearchive everything again. > > > > > Do a ''H'' and look at the help. ''$'' does save now. > > > > John > > Great. Is there a setting to make sup do this automatically every > once in a while? It would be nice to be able to leave sup open all > day, or many days, and not have to worry about remembering to hit ''$'' > or a crash.I have this in my ~/.sup/hooks/before-poll.rb: say "Saving threads" InboxMode.instance.save However saving from time to time would be nice also. Moreover saving the contacts.txt file on ''$'' would be also nice. -- Nicolas Pouillard aka Ertai
---
lib/sup/modes/thread-index-mode.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/sup/modes/thread-index-mode.rb
b/lib/sup/modes/thread-index-mode.rb
index 4de4613..3dd0498 100644
--- a/lib/sup/modes/thread-index-mode.rb
+++ b/lib/sup/modes/thread-index-mode.rb
@@ -386,6 +386,7 @@ EOS
end
def save
+ BufferManager.say("Saving contacts...") {
ContactManager.instance.save }
dirty_threads = @mutex.synchronize { (@threads +
@hidden_threads.keys).select { |t| t.dirty? } }
return if dirty_threads.empty?
--
1.5.5.rc3
Reformatted excerpts from Steve Goldman''s message of 2008-11-06:> Point me to a beginning ruby tutorial! I''ve never contributed to > anything open source before. So exciting.There are a couple Ruby for beginners tutorials: - http://pine.fm/LearnToProgram/?Chapter=01, - http://poignantguide.net/ruby/ (best read while high), - http://tryruby.hobix.com/ But you might be better of with Ruby for Java programmers stuff: - http://onestepback.org/articles/10things/ - http://www.jroller.com/obie/entry/ruby_primer_for_java_programmers etc. You''ll also have to know git to contribute to Sup. See http://sup.rubyforge.org/wiki/wiki.pl?Contributing. -- William <wmorgan-sup at masanjin.net>
Reformatted excerpts from nicolas.pouillard''s message of 2008-11-05:> The help is ''?'' actually.''H'' is help everywhere except thread-view-mode, where it''s overridden to view headers. Maybe it shouldn''t be. -- William <wmorgan-sup at masanjin.net>
Reformatted excerpts from Steve Goldman''s message of 2008-11-05:> Is there a setting to make sup do this automatically every > once in a while? It would be nice to be able to leave sup open all > day, or many days, and not have to worry about remembering to hit ''$'' > or a crash.I''ve been avoiding this because currently the only way to undo changes in thread-index-mode is to press @, which reverts you to the state you were last time you pressed $. Undo patches also welcome. :) -- William <wmorgan-sup at masanjin.net>
Excerpts from William Morgan''s message of Thu Nov 06 17:19:37 +0100 2008:> Reformatted excerpts from nicolas.pouillard''s message of 2008-11-05: > > The help is ''?'' actually. > > ''H'' is help everywhere except thread-view-mode, where it''s overridden > to view headers. Maybe it shouldn''t be.I often use ''H'' for headers, it''s pretty natural. I think the ''?'' binding is sufficient for help and that the ''H'' alias could be removed. Moreover to help newcomers having a little text in the bottom bar like "type ''?'' for help" would be nice. -- Nicolas Pouillard aka Ertai
I had hoped to work on this in a bit... Excerpts from William Morgan''s message of Thu Nov 06 17:35:13 -0500 2008:> Reformatted excerpts from Steve Goldman''s message of 2008-11-05: > > Is there a setting to make sup do this automatically every > > once in a while? It would be nice to be able to leave sup open all > > day, or many days, and not have to worry about remembering to hit ''$'' > > or a crash. > > I''ve been avoiding this because currently the only way to undo changes > in thread-index-mode is to press @, which reverts you to the state you > were last time you pressed $. Undo patches also welcome. :)-- Mike Stipicevic Chairman, RPI Student Branch of the IEEE stipim at rpi.edu mstipicevic at ieee.org
Reformatted excerpts from nicolas.pouillard''s message of 2008-11-07:> I often use ''H'' for headers, it''s pretty natural. I think the ''?'' > binding is sufficient for help and that the ''H'' alias could be > removed. > > Moreover to help newcomers having a little text in the bottom bar like > "type ''?'' for help" would be nice.Your wish is my command! -- William <wmorgan-sup at masanjin.net>