* [sup-talk] Can sup only "save threads" on exit??
@ 2008-11-04 22:55 Steve Goldman
2008-11-05 0:36 ` John Bent
0 siblings, 1 reply; 15+ messages in thread
From: Steve Goldman @ 2008-11-04 22:55 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-04 22:55 [sup-talk] Can sup only "save threads" on exit?? Steve Goldman
@ 2008-11-05 0:36 ` John Bent
2008-11-05 13:06 ` Nicolas Pouillard
2008-11-05 14:34 ` Steve Goldman
0 siblings, 2 replies; 15+ messages in thread
From: John Bent @ 2008-11-05 0:36 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-05 0:36 ` John Bent
@ 2008-11-05 13:06 ` Nicolas Pouillard
2008-11-06 16:19 ` William Morgan
2008-11-05 14:34 ` Steve Goldman
1 sibling, 1 reply; 15+ messages in thread
From: Nicolas Pouillard @ 2008-11-05 13:06 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-05 0:36 ` John Bent
2008-11-05 13:06 ` Nicolas Pouillard
@ 2008-11-05 14:34 ` Steve Goldman
2008-11-05 17:59 ` William Morgan
` (2 more replies)
1 sibling, 3 replies; 15+ messages in thread
From: Steve Goldman @ 2008-11-05 14:34 UTC (permalink / raw)
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.
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-05 14:34 ` Steve Goldman
@ 2008-11-05 17:59 ` William Morgan
2008-11-06 14:38 ` Steve Goldman
2008-11-06 14:40 ` Nicolas Pouillard
2008-11-06 22:35 ` [sup-talk] Can sup only "save threads" on exit?? William Morgan
2 siblings, 1 reply; 15+ messages in thread
From: William Morgan @ 2008-11-05 17:59 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-05 17:59 ` William Morgan
@ 2008-11-06 14:38 ` Steve Goldman
2008-11-06 16:18 ` William Morgan
0 siblings, 1 reply; 15+ messages in thread
From: Steve Goldman @ 2008-11-06 14:38 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-05 14:34 ` Steve Goldman
2008-11-05 17:59 ` William Morgan
@ 2008-11-06 14:40 ` Nicolas Pouillard
2008-11-06 15:00 ` [sup-talk] [PATCH] save contacts.txt on '$' Nicolas Pouillard
2008-11-06 22:35 ` [sup-talk] Can sup only "save threads" on exit?? William Morgan
2 siblings, 1 reply; 15+ messages in thread
From: Nicolas Pouillard @ 2008-11-06 14:40 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] [PATCH] save contacts.txt on '$'
2008-11-06 14:40 ` Nicolas Pouillard
@ 2008-11-06 15:00 ` Nicolas Pouillard
2008-11-10 4:51 ` William Morgan
0 siblings, 1 reply; 15+ messages in thread
From: Nicolas Pouillard @ 2008-11-06 15:00 UTC (permalink / raw)
---
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-06 14:38 ` Steve Goldman
@ 2008-11-06 16:18 ` William Morgan
0 siblings, 0 replies; 15+ messages in thread
From: William Morgan @ 2008-11-06 16:18 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-05 13:06 ` Nicolas Pouillard
@ 2008-11-06 16:19 ` William Morgan
2008-11-07 14:18 ` Nicolas Pouillard
0 siblings, 1 reply; 15+ messages in thread
From: William Morgan @ 2008-11-06 16:19 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-05 14:34 ` Steve Goldman
2008-11-05 17:59 ` William Morgan
2008-11-06 14:40 ` Nicolas Pouillard
@ 2008-11-06 22:35 ` William Morgan
2008-11-07 17:13 ` Mike Stipicevic
2 siblings, 1 reply; 15+ messages in thread
From: William Morgan @ 2008-11-06 22:35 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-06 16:19 ` William Morgan
@ 2008-11-07 14:18 ` Nicolas Pouillard
2008-11-10 4:49 ` William Morgan
0 siblings, 1 reply; 15+ messages in thread
From: Nicolas Pouillard @ 2008-11-07 14:18 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-06 22:35 ` [sup-talk] Can sup only "save threads" on exit?? William Morgan
@ 2008-11-07 17:13 ` Mike Stipicevic
0 siblings, 0 replies; 15+ messages in thread
From: Mike Stipicevic @ 2008-11-07 17:13 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Can sup only "save threads" on exit??
2008-11-07 14:18 ` Nicolas Pouillard
@ 2008-11-10 4:49 ` William Morgan
0 siblings, 0 replies; 15+ messages in thread
From: William Morgan @ 2008-11-10 4:49 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] [PATCH] save contacts.txt on '$'
2008-11-06 15:00 ` [sup-talk] [PATCH] save contacts.txt on '$' Nicolas Pouillard
@ 2008-11-10 4:51 ` William Morgan
0 siblings, 0 replies; 15+ messages in thread
From: William Morgan @ 2008-11-10 4:51 UTC (permalink / raw)
Applied, thanks!
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2008-11-10 4:51 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-04 22:55 [sup-talk] Can sup only "save threads" on exit?? Steve Goldman
2008-11-05 0:36 ` John Bent
2008-11-05 13:06 ` Nicolas Pouillard
2008-11-06 16:19 ` William Morgan
2008-11-07 14:18 ` Nicolas Pouillard
2008-11-10 4:49 ` William Morgan
2008-11-05 14:34 ` Steve Goldman
2008-11-05 17:59 ` William Morgan
2008-11-06 14:38 ` Steve Goldman
2008-11-06 16:18 ` William Morgan
2008-11-06 14:40 ` Nicolas Pouillard
2008-11-06 15:00 ` [sup-talk] [PATCH] save contacts.txt on '$' Nicolas Pouillard
2008-11-10 4:51 ` William Morgan
2008-11-06 22:35 ` [sup-talk] Can sup only "save threads" on exit?? William Morgan
2008-11-07 17:13 ` Mike Stipicevic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox