🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
31 messages
31 total messages Started by paf the dog Thu, 23 Feb 2006 19:54
[slrn in VT] reply quoting only selection
#180925
Author: paf the dog
Date: Thu, 23 Feb 2006 19:54
13 lines
1365 bytes
hello,

does someone know if exists a way to reply that would invoke the editor
with ONLY what has been "mouse-selected" quoted?

I and a friend are working on it but before going further I prefer to
ask if it already exists (though it's almost finished actually)

again, I am speaking of the Linux console, not xterm or whatever

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#180934
Author: Whiskers
Date: Fri, 24 Feb 2006 01:56
21 lines
1909 bytes
On 2006-02-23, paf the dog <pafbaboonlechien@neuf.fr> wrote:
> hello,
>
> does someone know if exists a way to reply that would invoke the editor
> with ONLY what has been "mouse-selected" quoted?
>
> I and a friend are working on it but before going further I prefer to
> ask if it already exists (though it's almost finished actually)
>
> again, I am speaking of the Linux console, not xterm or whatever

I gave up and learned to get used to 'snipping' in the editor - the one I 
use can be given 'macros' that make such things easier.  

However, a slrn macro that could do what you describe would probably find 
several users.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn in VT] reply quoting only selection
#180935
Author: SINNER
Date: Fri, 24 Feb 2006 02:58
21 lines
1974 bytes
* paf the dog wrote in news.software.readers:
> hello,

> does someone know if exists a way to reply that would invoke the editor
> with ONLY what has been "mouse-selected" quoted?

> I and a friend are working on it but before going further I prefer to
> ask if it already exists (though it's almost finished actually)

> again, I am speaking of the Linux console, not xterm or whatever

I think the best you can hope for is for you to be presented with an
empty article with headers and attribution in tact and you could paste
the recently _swept_ or highlighted text into the article and continue
to comment.

Of course I would love to be proven wrong as it would be quite useful. I
miss this feature from Xnews.

-- 
David
Re: [slrn in VT] reply quoting only selection
#180937
Author: paf the dog
Date: Fri, 24 Feb 2006 03:31
83 lines
3198 bytes
SINNER grumbled:
> Of course I would love to be proven wrong as it would be quite useful. I
> miss this feature from Xnews.

it is almost done

only remains one bug: one *must* select whole lines

it works if your selection contains part of the first line, but the last
line *must* be a line selection

I just used it to reply to you :)

if you select only part of last line, it is not included in the
selection, which is not a big deal, but it is sent to stdin of the tty
and then one can get into big troubles :D

unless the line starts with i and your editor is vim, in which case you
will exceptionnally be lucky to get your piece of line, unquoted and
truncated of its leading i. If it's a Q, you get into visual mode and
the remaining line is sent as commands and wow it can hurt a bit ;)

and since I miss xnews too, I just finished a plugin that makes quotes
be replaced by quotation marks -1 + space + [...]

it works in a cycle. pressing your associated keystroke makes first the
most quoted text to be replaced, then the level below and so forth until
the > level, and then back to the full article

seems to work smoothly but I am tired and cannot do all and every bug
trackings right now. But it seems to work.

Did another one, for vim this time, that makes you change quoted lines
above cursor into a quoted [...]. It does it either to all quoted text
of the same or upper level, crecending (is this english?) or all quoted
text of same or upper level, whatever the disposition

erm, say, you have such text:

blee:
> blah:
>> blo:
>>> dsfsdf
>>> dfggfdg
>>
>> erm yes
>>
>>> trerertr
>>
>> but then, no
>>
>
> glglglgl
> pouet pouet
> tralala

in one case you'll get, in case your cursor is on > pouet pouet first
character:

blee:
> blah:
>> blo:
>>> dsfsdf
>>> dfggfdg
>>
>> erm yes
>>
> [...]
> pouet pouet
> tralala

and in the other case:

blee:
> [...]
> pouet pouet
> tralala

now I need some sleep 8-|

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#180936
Author: Troy Piggins
Date: Fri, 24 Feb 2006 03:36
29 lines
2254 bytes
* SINNER wrote:
> * paf the dog wrote in news.software.readers:
>> hello,
>
>> does someone know if exists a way to reply that would invoke the editor
>> with ONLY what has been "mouse-selected" quoted?
>
>> I and a friend are working on it but before going further I prefer to
>> ask if it already exists (though it's almost finished actually)
>
>> again, I am speaking of the Linux console, not xterm or whatever
>
> I think the best you can hope for is for you to be presented with an
> empty article with headers and attribution in tact and you could paste
> the recently _swept_ or highlighted text into the article and continue
> to comment.
>
> Of course I would love to be proven wrong as it would be quite useful. I
> miss this feature from Xnews.

That's the only way I was thinking it could be done.  Because when you
make the selection you are using slrn's "pager", when composing you are
using your editor (eg vim).  Copy/paste would be the only way.

-- 
Troy Piggins
Ubuntu 5.10  pkgs : kernel 2.6.12-9-386, postfix 2.2.4, procmail 3.22
Compiled from src : slrn 0.9.8.1/rt (score_color patch), mutt 1.5.11i
                      vim 6.4
Re: [slrn in VT] reply quoting only selection
#181051
Author: paf the dog
Date: Sun, 26 Feb 2006 14:09
116 lines
5561 bytes
paf the dog grumbled:
> and since I miss xnews too, I just finished a plugin that makes quotes
> be replaced by quotation marks -1 + space + [...]

Corrigendum:
quotation marks + space + [...]

We still try to make the possible partial last string selected get into
the buffer -say, if you select like this:
http://algazelle.free.fr/select1.png

but until we make it, it can only be usable in either of these ways:
http://algazelle.free.fr/select2.png
http://algazelle.free.fr/select3.png

you have to be aware that it is BAD and UGLY programming, but it works
like a charm in so far as you DON'T select PARTIALLY the LAST line. It
MUST be a whole line.

Still, I'll have again a look if ever I find a way to get it to work in
any circumstances. It is probably nothing but I am quite an heretic C
programmer so, it can take some time

still, if someone would like to give it a try, here it is
http://algazelle.free.fr/xenor-paste

it simply gives you back the content of the selection buffer so you may
use it with a thingy that quotes it:
http://algazelle.free.fr/xenor-quote

xenor is the friend with whom I made this (actually he made most of it,
I just found out where to get the selection buffer and how to cleanup
stdin, and did a few minor things)

*still*, I would need a new greek letter before alpha, to qualify the
development status so PLEASE be indulgent.

I works good enough to make me use it with no hesitation and it helps
quite a lot sometimes so, if it may be helpful for you...

we will try to complete it and then give the very small piece of code,
promised.

I have a large enough buffer I think, allowing more than 256×96 char
selection

I think it will be enough for many framebuffers, and anyway, the one
that does select such a piece of text to quote it, has nothing to do on
usenet ;D

oh another thing: do NOT use it if you made no selection, since it will
wait for something on it's stdin (though it has quite a funny side
effect: if you made no selection for some time, or you left clicked
making no selection, and the buffer is empty, vim (dunno about other
editors) waits for a line of input and then, inserts it as quoted text.

so, if you want to reply to some crap, for instance, you may just select
nothing and call your editor with the thing in its pipe, you'll then
have to type *blindly* something and it will replace the text you reply
to.

if I post something like

vim is a not so bad editor but notepad is far more featured and powerful
and elegant

and you call the piped editor on it with no selection you may then be
prompted and get into vim with something like

-----------------------------------
[headers]

paf the dog said:
>  bullshit

--<iamnotagoodsigdelimiter>
your sig
----------------------------------­

it is not especially wanted but well it's eventually rather convenient
:)

ok, now, please take a look at my own little plugin file

http://algazelle.free.fr/myslangfun.sl

look at repondrautruc() since it contains the pipe with the two
programs. You may certainly change things in these lines, look at them.

if you used to reply by pressing f it remains the same except that it
makes sure that the post_editor_command is the original one. This is
repondratou()

invoking your editor with only your selection quoted, is made, in this
plugin file, by pressing Esc-f. I like it since in fr-latin9 it is also
done with Alt-f

besides, I have put a test whether slrn is run in a tty or not, and in
case it is in X window, I substitute wxpaste for xenor-paste. It does
the same (a bit better actually) but in X Window, not in a tty.
wxpaste ships with WindowMaker, if ever you don't have it.

besides, you'll find abregeur, a function that makes quoted text be
abbreviated with [...] if you press Esc-c (well with fr-latin9.map Alt-c
*is* actually Esc-c, so, since the two keys are neighbours...).
It needs the recursive function scanneur above so do not delete one and
leave the other.
I may have forgotten to remove variables that are not used, I was tired.
If you find any, don't hesitate. If you know how to make anything more
efficient or beautiful or whatever, please do so

don't forget xenor-paste is not really finished

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181053
Author: paf the dog
Date: Sun, 26 Feb 2006 14:25
34 lines
2346 bytes
paf the dog grumbled:
> besides, you'll find abregeur, a function that makes quoted text be
> abbreviated with [...] if you press Esc-c (well with fr-latin9.map Alt-c
> is actually Esc-c, so, since the two keys are neighbours...).

I maybe should also put another thing online, which is a vim plugin that
makes you replace *while editing* the above quoted text with > [...]

it replaces all above text that quotation is equal or superior to this
of the line your cursor is on (first char.)
OR
all above text that:
(
	quotation is equal or superior to this of the line your cursor is on
	(first char.)
	AND
	quotation is equal or superior to this of the line JUST BELOW
)

please see news:slrndvsvfo.906.pafbaboonlechien@jeannot.frigo.gla for
examples

the vim plugin is there:
http://algazelle.free.fr/plugseb.vim

maybe you should change the mapcheck and nmap commands on lines 67 & 68
since it is useful on my french keyboard but maybe not on yours

it is just a sort of undo command that puts you back on your previous
position after possibly cancelling F2 or F3 (Troaptipoints(0|1))

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181054
Author: paf the dog
Date: Sun, 26 Feb 2006 14:33
17 lines
1913 bytes
paf the dog grumbled:
> still, if someone would like to give it a try, here it is
> http://algazelle.free.fr/xenor-paste
 
oops by the way, here is what I uploaded, so check it
-rwxr-xr-x    1 seb      users       12369 fév 26 14:00 .bin/xenor-paste*

> it simply gives you back the content of the selection buffer so you may
> use it with a thingy that quotes it:
> http://algazelle.free.fr/xenor-quote
-rwxr-xr-x    1 root     root        11252 fév 22 07:57 /ulb/xenor-quote*

check size and time

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181058
Author: paf the dog
Date: Sun, 26 Feb 2006 17:06
16 lines
1694 bytes
paf the dog grumbled:
> ok, now, please take a look at my own little plugin file
> 
> http://algazelle.free.fr/myslangfun.sl
 
or wait a bit if you want, I think of a very little improvement to get
the pager display the same area instead of going back to top each time

won't be long, an hour or two

and if it is fast enouh I'll add a toggle (or kinda) to stay in
"collapsed quotation" mode even if you read another article

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181059
Author: paf the dog
Date: Sun, 26 Feb 2006 17:41
20 lines
1831 bytes
paf the dog grumbled:
> won't be long, an hour or two

argh, more than that :(

2.4.  article_cline_number:
...
Counting starts at 1 and ignores hidden lines.

my array is fed with article_as_string, my line numbering is the,
different and it may be uneasy to know the real number of the line
displayed at top

so, I wont do this today. I am too tired to get again into detail

but I will make it sooner or later

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181092
Author: paf the dog
Date: Mon, 27 Feb 2006 16:22
30 lines
2201 bytes
paf the dog grumbled:
> paf the dog grumbled:
>> ok, now, please take a look at my own little plugin file
>> 
>> http://algazelle.free.fr/myslangfun.sl

UPDATE

> or wait a bit if you want, I think of a very little improvement to get
> the pager display the same area instead of going back to top each time

I will need some more time to do this

> and if it is fast enouh I'll add a toggle (or kinda) to stay in
> "collapsed quotation" mode even if you read another article

but this one is done

Since an article may have its quoted text collapsed one, two, three
times or even more, and you don't know how many levels exist in the
newly displayed article, it will collapse all levels of quoted text if
you had collapsed the previous article quoted text, whether you
collapsed it one, two, three levels etc.

if you don't like this behaviour, you can comment the register_hook at
top of the file

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181093
Author: paf the dog
Date: Mon, 27 Feb 2006 16:25
26 lines
1814 bytes
SINNER grumbled:
> * paf the dog wrote in news.software.readers:
>> [...]
>
>> [...]
>
>> [...]
>
>> [...]
>
> I think the best you can hope for is for you to be presented with an
> empty article with headers and attribution in tact and you could paste
> the recently _swept_ or highlighted text into the article and continue
> to comment.
>
> Of course I would love to be proven wrong as it would be quite useful. I
> miss this feature from Xnews.

erm... :D

I'll have to do something to check whether empty lines are amidst
uniform level quoted lines or not, to avoid this silly effect :)

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181094
Author: paf the dog
Date: Mon, 27 Feb 2006 16:51
13 lines
1660 bytes
paf the dog grumbled:
>>> http://algazelle.free.fr/myslangfun.sl
> 
> UPDATE

and re-updated, I had forgotten to remove a debug thingy

or if you don't want to download it again, just remove the message
function in the last function, permabregeur

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181106
Author: paf the dog
Date: Mon, 27 Feb 2006 21:33
32 lines
1879 bytes
paf the dog grumbled:
> I'll have to do something to check whether empty lines are amidst
> uniform level quoted lines or not, to avoid this silly effect :)

fixed

I had to add  a bit heavy test to avoid deleting an empty line ofter
quotes that would be followed by normal text, in order to respect the
gap one may want to keep between quotes and normal text.

If you don't mind losing this empty line, you may replace, on lines
117-120, this:

#v+
or (andelse {i<(tblsz-1)}
			{is_substr(dyntbl[i+1], dynres) == 2}
			{dyntbl[i]==char(10)}
	)
#v-

by

#v+
or dyntbl[i]==char(10)
#v-

the file is still at the same place
http://algazelle.free.fr/myslangfun.sl

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181107
Author: paf the dog
Date: Mon, 27 Feb 2006 21:35
14 lines
1357 bytes
paf the dog grumbled:
> [...]
> #v+
> or (andelse {i<(tblsz-1)}
> 			{is_substr(dyntbl[i+1], dynres) == 2}
> 			{dyntbl[i]==char(10)}
> 	)
> #v-

much fancier with tabs set to 4 spaces

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181115
Author: SINNER
Date: Tue, 28 Feb 2006 00:18
32 lines
2339 bytes
* paf the dog wrote in news.software.readers:
> paf the dog grumbled:
>> [...]
>> #v+
>> or (andelse {i<(tblsz-1)}
>> 			{is_substr(dyntbl[i+1], dynres) == 2}
>> 			{dyntbl[i]==char(10)}
>> 	)
>> #v-

> much fancier with tabs set to 4 spaces

I cant make it work. 

It breaks @
----------------------snip-----------------
static define repondratou () %{{{
{
	set_string_variable("post_editor_command", "vim -f -Nu	~/.vimmail +%d '%s'");
	call ("followup");
} %}}}
---------------------snip----------------------------------------------------------

so I changed it to what I use in my

set editor_command since I dont use post_editor_command which is

set editor_command "/usr/games/fortune -se > /home/sinner/.fortune && cat /home/sinner/.sig /home/sinner/.fortune > /home/sinner/.signature && vim -f '+set tw=72' +%d '%s'"

-- 
David
Aliquid melius quam pessimum optimum non est.
Re: [slrn in VT] reply quoting only selection
#181120
Author: paf the dog
Date: Tue, 28 Feb 2006 01:45
45 lines
2800 bytes
SINNER grumbled:
> I cant make it work.
> 
> It breaks @
> ----------------------snip-----------------
> static define repondratou () %{{{

oh yes repondrautruc and repondratou are the two things that let you
chose the way you reply, either with only what you mouse-selected, or
the usual way, quoting everything.

Thus, these parts _have_ to be edited since none of us has the same
editor settings. I don't think many people have a .vimmail file :)

you just have to make sure you insert in your editor the output of
xenor-paste|xenor-quote

What remains of the line is up to each of us

Apart from that, the "abregeur" is updated, I have uploaded a news file.
Though, as you already have modified it to your own use, you may simply
change it yourself by replacing line 96
temoin = 0;
to
if (toutoutou==0) temoin = 0;

the difference it makes is that, if you stay in "abbreviated mode" (the
[...] stuff) to read each article, if ever you read one with no quotes,
the next one was not "abbreviated (say, collapsed, it's easier)

now it is not a problem anymore

Of course this is only a pager issue, nothing to do with replying
(except that a usual slrn reply would insert what the pager displays,
thus possibly collapsed quotes)

did you try xenor-paste and xenor-quote? did you try to reply this way?
It works on my 2.4 kernel and on xenor's 2.6

Too bad that actually almost nobody cares :D still, I love it, it is
quite convenient at least for my own use

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181121
Author: paf the dog
Date: Tue, 28 Feb 2006 01:49
14 lines
1906 bytes
paf the dog grumbled:
> oh yes repondrautruc and repondratou are the two things that let you
> chose the way you reply, either with only what you mouse-selected, or
> the usual way, quoting everything.

it may be clearer if I tell that «repondratou» would stand for something
like "replytoall" and «repondrautruc» for "replytostuff"

I wrote these things "from scratch", it first was kind of a draft so I
used french variables or functions names...

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181122
Author: paf the dog
Date: Tue, 28 Feb 2006 01:55
27 lines
2264 bytes
paf the dog grumbled:
> http://algazelle.free.fr/myslangfun.sl
> 
> look at repondrautruc() since it contains the pipe with the two
> programs. You may certainly change things in these lines, look at them.
> 
> if you used to reply by pressing f it remains the same except that it
> makes sure that the post_editor_command is the original one. This is
> repondratou()
> 
> invoking your editor with only your selection quoted, is made, in this
> plugin file, by pressing Esc-f. I like it since in fr-latin9 it is also
> done with Alt-f
> 
> besides, I have put a test whether slrn is run in a tty or not, and in
> case it is in X window, I substitute wxpaste for xenor-paste. It does
> the same (a bit better actually) but in X Window, not in a tty.
> wxpaste ships with WindowMaker, if ever you don't have it.

make sure you have wxpaste before trying in X Window, and please note
that the editor command lines are _mine_ and need of course to be
updated according to the way you invoke your editor, and what editor,
etc.

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181123
Author: paf the dog
Date: Tue, 28 Feb 2006 02:03
14 lines
1516 bytes
paf the dog grumbled:
> quotation marks + space + [...]

I think everyone will have noticed it but in case not, I have mapped
this mechanism to Esc-c

Besides, concerning replying to selection, it's mapped to Esc-f

So, you may also change this or at least check these shortcuts are not
already in use

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181125
Author: SINNER
Date: Tue, 28 Feb 2006 02:38
17 lines
1926 bytes
* paf the dog wrote in news.software.readers:

[...]

> Too bad that actually almost nobody cares :D still, I love it, it is
> quite convenient at least for my own use

I tried changing every occurrence in your post_editor_command to:

vim -f '+set tw=72' +%d '%s'

and I still cant make it work.

If I could make it work I'd be singing its praises :)
-- 
David
Quente como frigideira sem cabo.
Re: [slrn in VT] reply quoting only selection
#181127
Author: paf the dog
Date: Tue, 28 Feb 2006 03:10
30 lines
2266 bytes
SINNER grumbled:
> I tried changing every occurrence in your post_editor_command to:
> 
> vim -f '+set tw=72' +%d '%s'
> 
> and I still cant make it work.

you mean, replying to selection?

actually you would need to add, for instance between +%d and '%s' the
commands for vim to delete what it inserted (so to say, the whole
article as it is displayed in the pager) and insert the "clipboard"
buffer

try

vim -f '+set tw=72' +%d +'sil:.+1,/^$/-1d' +'sil:-1r!xenor-paste|xenor-quote' '%s'

make sure xenor-paste and xenor-quote are in /usr/local/bin or /usr/bin
or wherever that is mentionned in your $PATH

f to reply, Esc-f (or alt-f if your keymap agrees) to reply to selection
(whole lines)

apart from this, any problem with the Esc-c command that collapses
quotes in the pager?

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181129
Author: SINNER
Date: Tue, 28 Feb 2006 03:28
31 lines
2497 bytes
* paf the dog wrote in news.software.readers:
> SINNER grumbled:
>> [...]

> you mean, replying to selection?

> actually you would need to add, for instance between +%d and '%s' the
> commands for vim to delete what it inserted (so to say, the whole
> article as it is displayed in the pager) and insert the "clipboard"
> buffer

> try

> vim -f '+set tw=72' +%d +'sil:.+1,/^$/-1d' +'sil:-1r!xenor-paste|xenor-quote' '%s'

I will play with it.

> make sure xenor-paste and xenor-quote are in /usr/local/bin or /usr/bin
> or wherever that is mentionned in your $PATH

> f to reply, Esc-f (or alt-f if your keymap agrees) to reply to selection
> (whole lines)

> apart from this, any problem with the Esc-c command that collapses
> quotes in the pager?

Nope, that worked great!

-- 
David
Quente como frigideira sem cabo.
Re: [slrn in VT] reply quoting only selection
#181156
Author: paf the dog
Date: Thu, 02 Mar 2006 02:06
19 lines
1645 bytes
Whiskers grumbled:
> However, a slrn macro that could do what you describe would probably find
> several users.

did not find many :D

I really thought many tty slrn users would have liked the availability
of this feature but it does not semm so.
Well at least I wanted it and I have it.

I works well you know

if only I could allow partial selection of last line it would really be
great but until then, even with whole lines selections, it is already
very useful

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181157
Author: paf the dog
Date: Thu, 02 Mar 2006 02:09
10 lines
1477 bytes
paf the dog grumbled:
> I really thought many tty slrn users would have liked the availability
> of this feature

especially considering it works in X Window too, with the display test
in the macro and the help of wxpaste

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181169
Author: Whiskers
Date: Thu, 02 Mar 2006 12:23
24 lines
1974 bytes
On 2006-03-02, paf the dog <pafbaboonlechien@neuf.fr> wrote:
> Whiskers grumbled:
>> However, a slrn macro that could do what you describe would probably find
>> several users.
>
> did not find many :D
>
> I really thought many tty slrn users would have liked the availability
> of this feature but it does not semm so.
> Well at least I wanted it and I have it.
>
> I works well you know
>
> if only I could allow partial selection of last line it would really be
> great but until then, even with whole lines selections, it is already
> very useful

You may never know how many people use your script; it's out there in the
big wide world, making its own way  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn in VT] reply quoting only selection
#181170
Author: paf the dog
Date: Thu, 02 Mar 2006 14:12
39 lines
2706 bytes
Whiskers grumbled:
> You may never know how many people use your script; it's out there in the
> big wide world, making its own way  :))

I have to confess some miserable kind of "self-satisfaction" about this
little thing (the C program that dumps the console clipboard) but once
back from my pink cloud I will get used to leave it make its own life,
yep :)

I wish I am not alone to suffer of looking forward to see it used

erm and while I write this, I have to say I just noticed a bad bug :(

not in the program, but in the mechanism to insert its output into vim.
If you save and, once prompted to send or cancel or re-edit, you chose
to re-edit, the editor is invoked with the same editor_command line and
the very bad side effect is that it "runs" again the search/delete and
insert commands I have put in the vim command line :(
I check again...

yes :(

well, the deletion and pasting are cancelled pressing u (in vim, and
with any pertinent cancel command in other editors I think)

all this is very... erm... approximative... still, in, say, "normal
conditions", it's handy

It really need some fixing

Maybe I should rather give my small piece of C that gets the paste
buffer to Thomas Schultz, he could make better use of it by using it
directly in slrn code to make it offer the feature of replying to
selection. And above that, he *is* a C programmer, I am not, so he may
find how to fix the "partial last line selection"  problem...

-- 
paf the dog
remove primate to reply
Re: [slrn in VT] reply quoting only selection
#181175
Author: Whiskers
Date: Thu, 02 Mar 2006 19:03
52 lines
3416 bytes
On 2006-03-02, paf the dog <pafbaboonlechien@neuf.fr> wrote:
> Whiskers grumbled:
>> You may never know how many people use your script; it's out there in the
>> big wide world, making its own way  :))
>
> I have to confess some miserable kind of "self-satisfaction" about this
> little thing (the C program that dumps the console clipboard) but once
> back from my pink cloud I will get used to leave it make its own life,
> yep :)

I don't think it's unreasonable to feel some satisfaction at providing 
something that others can benefit from; 'miserable' should not apply!

> I wish I am not alone to suffer of looking forward to see it used

You never know when you might get feedback or encouragement  :))

> erm and while I write this, I have to say I just noticed a bad bug :(
>
> not in the program, but in the mechanism to insert its output into vim.
> If you save and, once prompted to send or cancel or re-edit, you chose
> to re-edit, the editor is invoked with the same editor_command line and
> the very bad side effect is that it "runs" again the search/delete and
> insert commands I have put in the vim command line :(
> I check again...
>
> yes :(
>
> well, the deletion and pasting are cancelled pressing u (in vim, and
> with any pertinent cancel command in other editors I think)
>
> all this is very... erm... approximative... still, in, say, "normal
> conditions", it's handy
>
> It really need some fixing

I expect you'll get around to it  :))

> Maybe I should rather give my small piece of C that gets the paste
> buffer to Thomas Schultz, he could make better use of it by using it
> directly in slrn code to make it offer the feature of replying to
> selection. And above that, he *is* a C programmer, I am not, so he may
> find how to fix the "partial last line selection"  problem...

There's certainly nothing to be lost by offering it.  I think slrn has 
acquired features originated by many different users - which could explain 
why it works so well  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn in VT] reply quoting only selection
#181178
Author: Neil Woods
Date: Thu, 02 Mar 2006 19:53
22 lines
2124 bytes
>>>>> paf the dog <pafbaboonlechien@neuf.fr> writes:

> paf the dog grumbled:
>> I really thought many tty slrn users would have liked the availability
>> of this feature

It's a pity you post using X-No-Archive.  People looking for such a
macro in the future won't be able to find references to this so easily.

> especially considering it works in X Window too, with the display test
> in the macro and the help of wxpaste

Only if you happen to be using WindowMaker or have it installed. 

You may be able to use xcutsel(1x) and/or xclipboard(1x) to do the same
thing, which happens to be part of the main X distribution, and thus not
window manager specific.
-- 
Neil.
Faith may be defined briefly as an illogical belief in the occurrence of the
improbable.
		-- H. L. Mencken
Re: [slrn in VT] reply quoting only selection
#181179
Author: Neil Woods
Date: Thu, 02 Mar 2006 20:12
12 lines
1765 bytes
>>>>> Neil Woods <cnw+usenet-0603@pobox.com> writes:

> You may be able to use xcutsel(1x) and/or xclipboard(1x) to do the same
> thing, which happens to be part of the main X distribution, and thus not
> window manager specific.

Which is a kludge at best, since these two programs are GUI
based. I agree that wxpaste is much better, since it's command line based.
-- 
Neil.
There are more dead people than living, and their numbers are increasing.
		-- Eugene Ionesco
Re: [slrn in VT] reply quoting only selection
#181194
Author: paf the dog
Date: Thu, 02 Mar 2006 23:30
15 lines
1666 bytes
Neil Woods grumbled:
> It's a pity you post using X-No-Archive.  People looking for such a
> macro in the future won't be able to find references to this so easily.

argh yes! :(

I will post a summary without this header (I can't even remind why I
have it set)

Actually I also need to post a summary on the french-speaking dedicated
newsgroup, I will do both

-- 
paf the dog
remove primate to reply
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