Thread View: news.software.readers
20 messages
20 total messages
Started by Stephan Dragehjerte
Wed, 31 Mar 1999 00:00
I like slrn!
Author: Stephan Dragehjerte
Date: Wed, 31 Mar 1999 00:00
Date: Wed, 31 Mar 1999 00:00
21 lines
1220 bytes
1220 bytes
..or perhaps it's just the fact that it's the first news reader, I've got
working as I like it .. besides Netscape.
Reading news in text mode is way better than with any graphic interface!
However, I'd like if TAB switched from making the header browser active
and the article. Then the up/down arrow keys could be used to view the
message, scrolling with one line at a time, instead of an entire page..
--
-Stephan /
/ tisprut productions [tm]
Re: I like slrn!
Author: drifter
Date: Wed, 31 Mar 1999 00:00
Date: Wed, 31 Mar 1999 00:00
6 lines
960 bytes
960 bytes
>Reading news in text mode is way better than with any graphic interface! yeah, couldn't agree more...just getting into it myself Garry
Re: I like slrn!
Author: Thomas Schultz
Date: Thu, 01 Apr 1999 00:00
Date: Thu, 01 Apr 1999 00:00
22 lines
1549 bytes
1549 bytes
On 31 Mar 1999, Stephan Dragehjerte <stephan@maskinen.test> wrote:
> However, I'd like if TAB switched from making the header browser active
> and the article. Then the up/down arrow keys could be used to view the
> message, scrolling with one line at a time, instead of an entire page..
I use the up/down arrow keys to scroll the article and page up / page
down to browse the header window:
setkey article article_lineup "\e[A"
setkey article article_linedn "\e[B"
setkey article down "\e[6~"
setkey article up "\e[5~"
Using the usual keymapping, you can zoom the article window by
pressing 'z' and the header window by pressing 'h' (at least in
current versions of slrn, I don't know about yours).
--
Kind regards,
Thomas Schultz
Re: I like slrn!
Author: Stephane Gibier
Date: Thu, 01 Apr 1999 00:00
Date: Thu, 01 Apr 1999 00:00
33 lines
1552 bytes
1552 bytes
Stephan Dragehjerte <stephan@maskinen.test> wrote :
> Yes, but what I want, cannot be acomplished just by modifying
> at key to do something else. I want a specielt "read mode".
It is a great idea and it will be added in the whishlist. I like the
idea to switch between header-window / body-window with the TAB key. How
to indicate the focused "window" ?
I have a couple a slrn macros to map the Up/Down arrow keys in article
mode when the article is visible or not. I use it to navigate quickly
across headers when they are zoomed. Just try it...
define article_smartup()
{
if( is_article_visible() )
call( "article_lineup" );
else
call( "up" );
}
definekey( "article_smartup", "\e[A", "article" );
define article_smartdn()
{
if( is_article_visible() )
call( "article_linedn" );
else
call( "down" );
}
definekey( "article_smartdn", "\e[B", "article" );
Re: I like slrn!
Author: Stephan Dragehjerte
Date: Thu, 01 Apr 1999 00:00
Date: Thu, 01 Apr 1999 00:00
28 lines
1619 bytes
1619 bytes
On Thu, 01 Apr 1999 00:04:33 GMT, Keith <kew@-nospam-teleport.com> wrote:
>>
>> However, I'd like if TAB switched from making the header browser active
>> and the article. Then the up/down arrow keys could be used to view the
>> message, scrolling with one line at a time, instead of an entire page..
>
>You can program ALL keys in slrn for your needs. Please read the slrn FAQ
>and take a look at your slrnrc file.
Yes, but what I want, cannot be acomplished just by modifying
at key to do something else. I want a specielt "read mode".
But perhaps slrn is already capeable doing this; perhaps all I need to do,
is change a 0 to 1 in my .slrnrc?
Perhaps I really should I read the docs? =)
>--
>HTH,
>
>Keith
-Stephan /
/ tisprut productions [tm]
Re: I like slrn!
Author: Stuart Millington
Date: Fri, 02 Apr 1999 00:00
Date: Fri, 02 Apr 1999 00:00
16 lines
1565 bytes
1565 bytes
In article <slrn7g7qkg.6m2.sgibier@hermes.olympus.fr>, Stephane Gibier wrote: >idea to switch between header-window / body-window with the TAB key. How >to indicate the focused "window" ? I'm using the DOS-under-NT version so don't know how this would effect other versions, but would a colour change of the 2 title bars do it/be possible? -- ----------------------------------------------------------------------- - Stuart Millington - - mailto:phupp@dsv1.co.uk - - http://www.wormhole.demon.co.uk/ http://www.wormhole.easynet.co.uk/ -
Re: I like slrn!
Author: Stephan Dragehjerte
Date: Sat, 03 Apr 1999 00:00
Date: Sat, 03 Apr 1999 00:00
48 lines
2458 bytes
2458 bytes
On 1 Apr 1999 21:52:16 GMT, Stephane Gibier <sgibier@mail.dotcom.fr> wrote:
>Stephan Dragehjerte <stephan@maskinen.test> wrote :
>
>> Yes, but what I want, cannot be acomplished just by modifying
>> at key to do something else. I want a specielt "read mode".
>
>It is a great idea and it will be added in the whishlist. I like the
>idea to switch between header-window / body-window with the TAB key. How
>to indicate the focused "window" ?
I haven't been using slrn for very long, so I don't know about how
you guys have configured it.
I only have two different "modes": 1) a header windows for browsing headers,
2) a header + article window for reading articles.
I don't know if a 3rd window is possible or whatever. Honestly, I haven't
given it much thought; The TAB thing was just a thing I immediately felt
an urgent need for.
But perhaps this setup:
1) Header window focused:
The header window is the only window visible. Arrow keys browse one
line at a time; PgUp/PgDn browse a page - 1 line at a time.
2) Article window focused:
The article window is the only window visible.
Same keys as 1).
I don't think it's that necessary to view both windows at a time;
The "active-article"-bar indicates which article was read last,
so I don't think the TAB-windows-switching would be that complicated..
>I have a couple a slrn macros to map the Up/Down arrow keys in article
[FZZ..]
Thanks. So I just put them in the end of my ~/.slrnrc?
--
-Stephan /
/ tisprut productions [tm]
Re: I like slrn!
Author: Dawn Owens-Nicholson
Date: Tue, 06 Apr 1999 00:00
Date: Tue, 06 Apr 1999 00:00
17 lines
1340 bytes
1340 bytes
Stephane Gibier wrote: > I like the idea to switch between header-window / body-window with the TAB > key. How to indicate the focused "window" ? Have you looked at 'z'ooming the article window? You could bind the TAB key to that very easily: setkey article "zoom_article_window" "^I" in your slrnrc. Or make a macro to go between hiding the body window and a zoomed article and bind this to the TAB key (so you never see the screen split between header list and article body). is_article_window_zoomed() can tell you the state of the article window for zooming. Happy newsreading!
Re: I like slrn!
Author: Ralph Sontag
Date: Tue, 06 Apr 1999 00:00
Date: Tue, 06 Apr 1999 00:00
21 lines
1498 bytes
1498 bytes
sgibier@mail.dotcom.fr (Stephane Gibier) writes: >It is a great idea and it will be added in the whishlist. I like the >idea to switch between header-window / body-window with the TAB key. How >to indicate the focused "window" ? Good Idea! I'm looking for a possibility to switch to the header window at end of thread. There is a status line which says "end of thread", but I think, slrn should show the headers again at this point automatically. Btw: Is there a "body search" in slrn? Subject and authorsearch are great, but sometimes I want to look through the bodies. Ralph. -- Ralph Sontag | Str. der Nationen 62/282B | 09107 Chemnitz | MIME | e-mail: sontag@mathematik.tu-chemnitz.de | Tel. +49 371 531 1384 | welcome! |
Re: I like slrn!
Author: Stephan Dragehjerte
Date: Thu, 08 Apr 1999 00:00
Date: Thu, 08 Apr 1999 00:00
20 lines
1382 bytes
1382 bytes
Dawn Owens-Nicholson once said:
[..]
> Or make a macro to go between hiding the body window and a
> zoomed article and bind this to the TAB key (so you never see the screen
> split between header list and article body). is_article_window_zoomed() can
> tell you the state of the article window for zooming.
Where do I put these macroes? In the end of my ~/.slrnrc?
--
-Stephan /
/ tisprut productions [tm]
Re: I like slrn!
Author: tony summerfelt
Date: Thu, 08 Apr 1999 00:00
Date: Thu, 08 Apr 1999 00:00
84 lines
2865 bytes
2865 bytes
On 6 Apr 1999 09:27:22 GMT, Ralph Sontag wrote:
> Btw: Is there a "body search" in slrn? Subject and authorsearch are
> great, but sometimes I want to look through the bodies.
working with some of the other macros this is what i came up with. you need
to throw the following line in your .slrnrc
interpret "/<path to slrn's macro directory/fsearch.sl"
%this is the fsearch.sl
%
define newsgroup_search (criteria)
{
variable flags;
flags= get_header_flags ();
uncollapse_threads ();
do
{
if (re_search_article (criteria))
{
call ("show_article");
call ("uncatchup");
return;
}
set_header_flags (flags);
}
while (header_down (1));
}
variable criteria = "";
variable last_search=criteria;
define cycle_groups ()
{
criteria = read_mini ("find", "",criteria);
!if (strlen(criteria))
{
criteria=last_search;
!if (strlen(criteria))
return;
}
call ("bob");
do
{
call ("select_group");
newsgroup_search (criteria);
call ("quit");
}
while (group_down_n (1));
error ("not found");
}
define art_search ()
{
criteria = read_mini ("find", "",criteria);
!if (strlen(criteria))
{
criteria=last_search;
!if (strlen(criteria))
return;
}
newsgroup_search (criteria);
}
definekey ("cycle_groups", "^f", "group");
definekey ("art_search", "^f", "article");
--
.t
*------------------------------------------------------------------------
| long and useless .sig removed. email me for the 10 meg version
|
| 'you want a toe? I can get you a toe.'
|
| take myspleen out to reply via email
*------------------------------------------------------
Re: I like slrn!
Author: tony summerfelt
Date: Sat, 10 Apr 1999 00:00
Date: Sat, 10 Apr 1999 00:00
24 lines
1615 bytes
1615 bytes
On 8 Apr 1999 20:35:27 GMT, Stephan Dragehjerte wrote: > Where do I put these macroes? In the end of my ~/.slrnrc? the one i posted can be saved as fullsearch.sl in your /slrn/macros directory. you need the `interperet' line in your .slrnrc file -- .t *------------------------------------------------------------------------ | long and useless .sig removed. email me for the 10 meg version | | 'you want a toe? I can get you a toe.' | | take myspleen out to reply via email *------------------------------------------------------
Re: I like slrn!
Author: Stephan Dragehjerte
Date: Sat, 10 Apr 1999 00:00
Date: Sat, 10 Apr 1999 00:00
25 lines
1540 bytes
1540 bytes
tony summerfelt once said:
> On 8 Apr 1999 20:35:27 GMT, Stephan Dragehjerte wrote:
>
> > Where do I put these macroes? In the end of my ~/.slrnrc?
>
> the one i posted can be saved as fullsearch.sl in your /slrn/macros
> directory.
Hm, where is that? ~/.slrn/macroes?
> you need the `interperet' line in your .slrnrc file
Explain how, please =). Just interprete "fullsearch.sl"
somewhere in my .slrnrc?
> --
> .t
-Stephan /
/ tisprut productions [tm]
Re: I like slrn!
Author: John E. Davis
Date: Sun, 11 Apr 1999 00:00
Date: Sun, 11 Apr 1999 00:00
18 lines
1729 bytes
1729 bytes
On 10 Apr 1999 23:19:37 GMT, Stephan Dragehjerte <stephan@maskinen.dyn.ip>
wrote:
>Explain how, please =). Just interprete "fullsearch.sl"
>somewhere in my .slrnrc?
This is explained in the file slrn/doc/README.macros. Briefly, if you
have a file called `fullsearch.sl' in some directory, e.g.,
/home/stephan/slrn/macros/, then put
interpret "/home/stephan/slrn/macros/fullsearch.sl"
in your .slrnrc file.
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis Cambridge, MA 02139-4307
Re: I like slrn!
Author: markus
Date: Sun, 11 Apr 1999 00:00
Date: Sun, 11 Apr 1999 00:00
16 lines
1379 bytes
1379 bytes
In article <slrn7h1ni3.og1.davis@aluche.mit.edu>, John E. Davis wrote: >This is explained in the file slrn/doc/README.macros. I'm by no means in the position to judge on your docmentation style, John, but maybe it's quit useful if you mention in the man-page for slrn how to use S-Lang macro with an example ? Man-pages come with every distribution, but documention files are often missing or hard to find. sincerly, Markus
Re: I like slrn!
Author: Ralph Sontag
Date: Mon, 12 Apr 1999 00:00
Date: Mon, 12 Apr 1999 00:00
21 lines
1555 bytes
1555 bytes
tsummerfelt1@myspleenhome.com (tony summerfelt) writes: >> Btw: Is there a "body search" in slrn? Subject and authorsearch are >> great, but sometimes I want to look through the bodies. >working with some of the other macros this is what i came up with. you need >to throw the following line in your .slrnrc >interpret "/<path to slrn's macro directory/fsearch.sl" Great - it seem's to work! Thanks a lot, especially also for the hint with the "interpret"-line. I think, this should be also a hint in the man-page. Ralph. -- Ralph Sontag | Str. der Nationen 62/282B | 09107 Chemnitz | MIME | e-mail: sontag@mathematik.tu-chemnitz.de | Tel. +49 371 531 1384 | welcome! |
Re: I like slrn!
Author: Peppe
Date: Tue, 13 Apr 1999 00:00
Date: Tue, 13 Apr 1999 00:00
81 lines
3341 bytes
3341 bytes
Thus wrote tony summerfelt <tsummerfelt1@myspleenhome.com>
> On 6 Apr 1999 09:27:22 GMT, Ralph Sontag wrote:
> > Btw: Is there a "body search" in slrn? Subject and authorsearch are
> > great, but sometimes I want to look through the bodies.
Thanks for the script. I have a couple of suggestions though:
> %this is the fsearch.sl
> %
> define newsgroup_search (criteria)
> {
> variable flags;
> flags= get_header_flags ();
This should go inside the loop to take effect on each article.
> uncollapse_threads ();
> do
> {
> if (re_search_article (criteria))
> {
> call ("show_article");
I get an error "show_article not in current keymap". Anyway, the
article is already shown after re_search_article().
> call ("uncatchup");
As you do set_header_flags() below, this is not necessarry. Actually
it will undelete messages that were marked deleted.
> return;
> }
> set_header_flags (flags);
> }
> while (header_down (1));
> }
May I propose instead
define newsgroup_search (criteria)
{
variable flags, n = 0;
do
{
if ( andelse {n == 0} {is_thread_collapsed ()})
{
n = thread_size ();
uncollapse_thread ();
}
flags = get_header_flags ();
if (re_search_article (criteria))
return 1;
set_header_flags (flags);
if (n == 1)
collapse_thread ();
if (n)
n--;
}
while (header_down (1));
return 0;
}
where I have added handling of threads. If they are collapsed,
collapse them after searching if no articles matched.
The return value can be used to show a message, if the search failed.
If anyone are interested, I am working on a revised version that will
stay put in article mode (rather than go to the last message), if no
matching message was found.
Peppe
--
Preben Guldberg __/-\__ Q: How many Microsoft employees does
c928400@student.dtu.dk (o o) it take to change a lightbulb?
---------------------oOOo (_) oOOo A: Just one.
http://www.student.dtu.dk/~c928400 They're good at screwing things up.
Re: I like slrn!
Author: Vadim Zeitlin
Date: Wed, 14 Apr 1999 00:00
Date: Wed, 14 Apr 1999 00:00
13 lines
1435 bytes
1435 bytes
On 13 Apr 99 21:44:56 GMT, Peppe <c928400@student.dtu.dk> wrote: >If anyone are interested, I am working on a revised version that will >stay put in article mode (rather than go to the last message), if no >matching message was found. Hello, could you please post it here when it's done? Thanks in advance, VZ
Re: I like slrn!
Author: Peppe
Date: Wed, 14 Apr 1999 00:00
Date: Wed, 14 Apr 1999 00:00
191 lines
6706 bytes
6706 bytes
Thus wrote Vadim Zeitlin <zeitlin@seth.lpthe.jussieu.fr>
> On 13 Apr 99 21:44:56 GMT, Peppe <c928400@student.dtu.dk> wrote:
> >If anyone are interested, I am working on a revised version that will
> >stay put in article mode (rather than go to the last message), if no
> >matching message was found.
> Hello,
> could you please post it here when it's done?
Sure. It ended up rather long though. It could probably have been much
simpler, had I allowed the use of marks (";"). It got the better of
me, so I decided to make it as clean as possible with respect to user
environment.
Hope it is useful,
Peppe
% -------------------------------------------------------------------------
% Search body of articles.
%
% Original script: Tony Summerfelt <tsummerfelt1@myspleenhome.com>
% Revised (heavily): Preben "Peppe" Guldberg <c928400@student.dtu.dk>
% Last revised: Wed 14 Apr 1999
% Original appeared in news.software.readers, message id:
% <slrn7go2cj.3vvjt5f.tsummerfelt1@co146453-a.kico1.on.wave.home.com>
%
% Note: use with caution when reading online. Especially in group
% mode you might get to download a lot of messages.
% Tag the current article by number.
% Returns two values:
% - the number of the tag
% - whether the article was already tagged (0 or 1)
define tag_stay_put ()
{
variable collapsed, tagged;
tagged = get_header_tag_number ();
if (tagged)
return tagged, 1;
else
{
collapsed = is_thread_collapsed ();
if (header_down (1))
{
header_up (1);
call ("tag_header");
header_up (1);
}
else
call ("tag_header");
if (collapsed)
collapse_thread ();
return get_header_tag_number (), 0;
}
}
% Untag an article. This is done by retagging the article (as within slrn).
% It must be specified how many times to toggle:
% - once: tag is the highest numbered tagged article
% - twice: not the highest numbered
% Call this function only if you know how many times to tag!
define untag_stay_put (n)
{
variable collapsed;
collapsed = is_thread_collapsed ();
loop (n)
call ("tag_header");
if (collapsed)
collapse_thread ();
}
% Untag another message (number tag1)
define untag_other_message (tag1)
{
variable tag2, tagged, visible;
(tag2, tagged) = tag_stay_put ();
visible = is_article_visible ();
if (visible)
call ("hide_article");
() = goto_num_tagged_header (tag1);
if (tagged)
{
untag_stay_put (1);
goto_num_tagged_header (tag2);
}
else
{
untag_stay_put (2);
goto_num_tagged_header (tag1);
untag_stay_put (1);
}
if (visible)
call ("hide_article");
}
% Search onwards for an article where the criteria is found in the body.
define body_search (criteria)
{
variable tag, tagged, visible, flags, n;
(tag, tagged) = tag_stay_put ();
visible = is_article_visible ();
n = 0;
do
{
if ( andelse {n == 0} {is_thread_collapsed ()})
{
n = thread_size ();
uncollapse_thread ();
}
flags = get_header_flags ();
if (re_search_article (criteria))
{
!if (tagged)
untag_other_message (tag);
return 1;
}
set_header_flags (flags);
if (n == 1)
collapse_thread ();
if (n)
n--;
}
while (header_down (1));
goto_num_tagged_header (tag);
!if (tagged)
untag_stay_put (1);
!if (visible)
call ("hide_article");
return 0;
}
% The function calling the search routine. Works in group mode,
% aswell as article mode.
%
% First two global variables for later reference:
variable _criteria = "";
variable _last_search = _criteria;
% Should we prompt for the use of metamail (probably not)
variable _prompt_for_metamail = 0;
%
define query_body_search ()
{
variable group, old_use_metamail, success;
_criteria = read_mini ("Search message bodies for", "", _criteria);
!if (strlen (_criteria))
{
_criteria = _last_search;
!if (strlen (_criteria))
return;
}
group = current_newsgroup ();
old_use_metamail = get_variable_value ("use_metamail");
set_integer_variable ("use_metamail", _prompt_for_metamail);
success = 0;
if (is_group_mode ())
{
%call ("bob");
do
{
if (select_group () == -1)
continue;
success = body_search (_criteria);
if (success)
break;
else
call ("quit");
}
while (group_down_n (1));
!if (success)
while (group != current_newsgroup ())
group_up_n (1);
}
else
success = body_search (_criteria);
set_integer_variable ("use_metamail", old_use_metamail);
!if (success)
error ("No articles matched: " + _criteria);
}
definekey ("query_body_search", "\e/", "group");
definekey ("query_body_search", "\e/", "article");
% vim: ts=4 sw=4 sts=0 et ai si
--
Preben Guldberg __/-\__
c928400@student.dtu.dk (o o) There ain't no devil,
----------------------oOOo (_) oOOo there's just God when he's drunk.
http://www.student.dtu.dk/~c928400/ --Tom Waits: Heartattack and Vine
Re: I like slrn!
Author: tony summerfelt
Date: Sat, 17 Apr 1999 00:00
Date: Sat, 17 Apr 1999 00:00
40 lines
2228 bytes
2228 bytes
On 13 Apr 99 21:44:56 GMT, Peppe wrote: > Thanks for the script. I have a couple of suggestions though: > This should go inside the loop to take effect on each article. > > As you do set_header_flags() below, this is not necessarry. Actually > it will undelete messages that were marked deleted. > where I have added handling of threads. If they are collapsed, > collapse them after searching if no articles matched. > The return value can be used to show a message, if the search failed. most of the stuff i wrote in slang or perl, was when i first started with slrn/jed. i stole mercilessly until i got something working then generally forgot bout it :) usually i read just enough documentation to do what i wanted... i'll probably use your version over mine :) -- .t *------------------------------------------------------------------------ | long and useless .sig removed. email me for the 10 meg version | | 'you want a toe? I can get you a toe.' | | take myspleen out to reply via email *------------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads