Re: [9fans] acme search backwards

2015-09-03 Thread Rudolf Sykora
On 3 September 2015 at 16:14, erik quanstrom  wrote:
> somehow I thought that was going to be the response, but that's not really 
> true unless acme has been rewritten on the lower level kbd model.
>
> that model also introduces user space kbd control, so good luck using it in 
> the event of panic.

Sorry, I don't orient.
Does it all mean that I could nowadays possibly get the wanted behaviour
(using, say, ctrl+3b for the purpose) on 9front while I cannot on
the original plan9?

Thanks
Ruda



Re: [9fans] acme search backwards

2015-09-03 Thread Kurt H Maier
On Thu, Sep 03, 2015 at 07:14:58AM -0700, erik quanstrom wrote:
> somehow I thought that was going to be the response, but that's not really 
> true unless acme has been rewritten on the lower level kbd model.

patches 
 
> that model also introduces user space kbd control, so good luck using it in 
> the event of panic.

welcome



Re: [9fans] acme search backwards

2015-09-03 Thread Stanley Lieber
> somehow I thought that was going to be the response

gee, erik



On Sep 3, 2015, 10:16 AM, at 10:16 AM, erik quanstrom  
wrote:
>somehow I thought that was going to be the response, but that's not
>really true unless acme has been rewritten on the lower level kbd
>model.
>
>that model also introduces user space kbd control, so good luck using
>it in the event of panic.
>
>- erik
>
>
>On Sep 3, 2015 6:34 AM, Aram Hăvărneanu  wrote:
>>
>> On Thu, Sep 3, 2015 at 3:11 PM, erik quanstrom
> wrote:
>> > because the keyboard doesn't pass modal presses to user space
>>
>> There has been solved in 9front in 2011:
>http://man.cat-v.org/9front/8/kbdfs
>>
>> --
>> Aram Hăvărneanu
>>
>>


Re: [9fans] acme search backwards

2015-09-03 Thread erik quanstrom
somehow I thought that was going to be the response, but that's not really true 
unless acme has been rewritten on the lower level kbd model.

that model also introduces user space kbd control, so good luck using it in the 
event of panic.

- erik


On Sep 3, 2015 6:34 AM, Aram Hăvărneanu  wrote:
>
> On Thu, Sep 3, 2015 at 3:11 PM, erik quanstrom  wrote: 
> > because the keyboard doesn't pass modal presses to user space 
>
> There has been solved in 9front in 2011: http://man.cat-v.org/9front/8/kbdfs 
>
> -- 
> Aram Hăvărneanu 
>
>


Re: [9fans] acme search backwards

2015-09-03 Thread Aram Hăvărneanu
On Thu, Sep 3, 2015 at 3:11 PM, erik quanstrom  wrote:
> because the keyboard doesn't pass modal presses to user space

There has been solved in 9front in 2011: http://man.cat-v.org/9front/8/kbdfs

-- 
Aram Hăvărneanu



Re: [9fans] acme search backwards

2015-09-03 Thread erik quanstrom
On Thu Sep  3 02:40:05 PDT 2015, rudolf.syk...@gmail.com wrote:
> On 3 September 2015 at 11:16, Mathieu Lonjaret
> > https://groups.google.com/d/msg/comp.os.plan9/Q6R9iuu0lE8/u3h-FUnXOmEJ
> 
> Thanks for the link!
> I wonder, why is it that they claim that implementing the functionality
> of:
> 3b = search forward, shift+3b = search backward
> is not feasible on plan9...

because the keyboard doesn't pass modal presses to user space, and devmouse
already takes shift+right -> middle, for insufficient mice.

- erik



Re: [9fans] acme search backwards

2015-09-03 Thread Rudolf Sykora
On 3 September 2015 at 11:16, Mathieu Lonjaret
> https://groups.google.com/d/msg/comp.os.plan9/Q6R9iuu0lE8/u3h-FUnXOmEJ

Thanks for the link!
I wonder, why is it that they claim that implementing the functionality
of:
3b = search forward, shift+3b = search backward
is not feasible on plan9...

Ruda



Re: [9fans] acme search backwards

2015-09-03 Thread Mathieu Lonjaret
No, I meant other implementation suggestions.

Since you're all as lazy as I am, here it is:
https://groups.google.com/d/msg/comp.os.plan9/Q6R9iuu0lE8/u3h-FUnXOmEJ



On 2 September 2015 at 16:01,  wrote:

> > Also there was a discussion on 9fans about it with other
> > suggestions/solutions.
>
>  :-/RE
>
> is what I remember Russ recommending,  It's not perfect, but it does help.
>
> Lucio.
>
>
>


Re: [9fans] acme search backwards

2015-09-02 Thread lucio
> I.e., the suggestions you mention are still far from reciprocal
> to a b3-click on any word in the text file.

It's just one of those Pandora's boxes, once it's open it can't be
closed.  I have continual trouble with unintentionlly pressing the
Cape-Lock key at the same time as the letter A and finding myself
typing text at the beginning of the line (which could be a paragraph,
in Acme) instead of the place I was at one Ctrl-A earlier.

Still, you could set an indicator that reverses the direction of B3's
search.  It's just not all that useful and programming it and testing
it may be more effort than you gain from the trouble.  Also, knowing
which way you're going next time you click B3 may not be very clear
and you further need to decide whether it is a window-wide or global
setting.

Lucio.




Re: [9fans] acme search backwards

2015-09-02 Thread Rudolf Sykora
On 2 September 2015 at 16:37, Alexander Kapshuk
 wrote:
> On Wed, Sep 2, 2015 at 5:01 PM,   wrote:
>>> Also there was a discussion on 9fans about it with other
>>> suggestions/solutions.
>>
>>  :-/RE
>>
>> is what I remember Russ recommending,  It's not perfect, but it does help.
>>
>> Lucio.
>>
>>
>
> Page 4 of A Tutorial for Sam Command Language, by Rob Pike, suggests
> the following usage:

> Just precede the pattern with a minus
> sign, which reverses the direction of the search:
> -/Emacs/
>
> Similarly,
> $-/Emacs/
> finds the last occurrence in the file, so
> 0/Emacs/,$-/Emacs/
> selects the text from the first to last Emacs, inclusive.


I actually know all of what you write, and the question
was meant explicitly differently.
I.e., the suggestions you mention are still far from reciprocal
to a b3-click on any word in the text file.
Copying (or even selecting a whole portion of) a word to get
it into a formula like :-/.../ somewhere is ugly, to say the least.

Thanks anyway!
Ruda



Re: [9fans] acme search backwards

2015-09-02 Thread Alexander Kapshuk
On Wed, Sep 2, 2015 at 5:01 PM,   wrote:
>> Also there was a discussion on 9fans about it with other
>> suggestions/solutions.
>
>  :-/RE
>
> is what I remember Russ recommending,  It's not perfect, but it does help.
>
> Lucio.
>
>

Page 4 of A Tutorial for Sam Command Language, by Rob Pike, suggests
the following usage:
>>>
Just precede the pattern with a minus
sign, which reverses the direction of the search:
-/Emacs/

Similarly,
$-/Emacs/
finds the last occurrence in the file, so
0/Emacs/,$-/Emacs/
selects the text from the first to last Emacs, inclusive.
<<<



Re: [9fans] acme search backwards

2015-09-02 Thread lucio
> Also there was a discussion on 9fans about it with other
> suggestions/solutions.

 :-/RE

is what I remember Russ recommending,  It's not perfect, but it does help.

Lucio.




Re: [9fans] acme search backwards

2015-09-02 Thread Mathieu Lonjaret
I had done https://bitbucket.org/mpl/acme-with-easy-backwards-search , but
since I wasn't bright enough to host it as a diff I don't really remember
how it works or what I changed. I think I had added a Rev command to the
tag bar of the window. Although it wasn't useful enough for me to keep on
maintaining it, I'm pretty sure it was working.

Also there was a discussion on 9fans about it with other
suggestions/solutions.

On 2 September 2015 at 08:08, Rudolf Sykora  wrote:

> Hi,
>
> by chance, hasn't somebody changed acme so that one can easily,
> say with a ctrl key, change the direction of the search done by the
> 3rd mouse button? I find it very missing.
>
> Thanks
> Ruda
>
>


[9fans] acme search backwards

2015-09-01 Thread Rudolf Sykora
Hi,

by chance, hasn't somebody changed acme so that one can easily,
say with a ctrl key, change the direction of the search done by the
3rd mouse button? I find it very missing.

Thanks
Ruda