Re: How to select all

2005-05-20 Thread Jean-Pierre Chretien

>>Date: Fri, 20 May 2005 13:11:52 +0100
>>From: Paul Smith <[EMAIL PROTECTED]>
>>To: "lyx-users@lists.lyx.org" 
>>Subject: How to select all
>>
>>Dear All
>>
>>Is there some way of selecting the whole document? I have checked all
>>menus, but with no success.

Here (xforms,emacs-bindings
 - cursor at beginning of doc
 - C-m (Mark set)
 - down to end of doc with arrow keys
 

Used to work *really* emacs-like (C-@), but the assocation does not work here
Explicit M-x mark-on works however.

HTH

-- 
Jean-Pierre




Re: How to select all

2005-05-20 Thread Angus Leeming
Paul Smith wrote:
Dear All
Is there some way of selecting the whole document? I have checked all
menus, but with no success.
Thanks in advance,
Paul
Place your cursor at the top of the document and then type
   M-x buffer-end-select
M-x activates the minibuffer when using the emacs bind file. From that 
file:
\bind "M-x" "command-execute"

Oh, I see that the same binding is used in cua.bind too.
From the same bind file
\bind "S-C-End" "buffer-end-select"
so I guess that that will do what you want too (shift-control-End).
Angus



Re: How to select all

2005-05-20 Thread Paul Smith
On 5/20/05, Angus Leeming <[EMAIL PROTECTED]> wrote:
> > Is there some way of selecting the whole document? I have checked all
> > menus, but with no success.
> 
> Oh, I see that the same binding is used in cua.bind too.
> 
>  From the same bind file
> \bind "S-C-End" "buffer-end-select"
> 
> so I guess that that will do what you want too (shift-control-End).

That is it, thanks! Maybe, it would be worthy to add an entry in the
Edit menu with the "Select All" option, likewise all word processors.
Well, that is just a suggestion.

Paul

PS: Thanks to Jean-Pierre too.


Re: How to select all

2005-05-20 Thread Jean-Pierre Chretien

>>
>>PS: Thanks to Jean-Pierre too.

Well, I rememberd this from an ancient version of LyX, I was not awrw of the 
S-C-end binding.
Angus' hint is better as it shows that setting the cursor does set mark in that 
case.
The arrows are useful for partial precise selection over pages, and then the C-m
is compulsory.

-- 
Jean-Pierre



Re: How to select all

2005-05-20 Thread Kevin Pfeiffer
Paul Smith writes:
> On 5/20/05, Angus Leeming <[EMAIL PROTECTED]> wrote:
> > > Is there some way of selecting the whole document? I have checked
> > > all menus, but with no success.
[...]
> > so I guess that that will do what you want too (shift-control-End).
>
> That is it, thanks! Maybe, it would be worthy to add an entry in the
> Edit menu with the "Select All" option, likewise all word processors.
> Well, that is just a suggestion.

Seconded (is on my list to add to the bugzilla). Not to mention adding a 
"Ctrl-A" binding to those key bindings used by the RestOfTheWorld. ;-)

Unfortunately this does not seem to work inside a container! Perhaps there 
is another binding that selects to end-of-paragraph that would take care 
of most such cases? But a universal, context-aware 'select-all' would be 
much nicer and more "DoWhatIMean"-like IMO.

-K

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: How to select all

2005-05-20 Thread Angus Leeming
Paul Smith wrote:
From the same bind file
\bind "S-C-End" "buffer-end-select"
so I guess that that will do what you want too (shift-control-End).
That is it, thanks! Maybe, it would be worthy to add an entry in the
Edit menu with the "Select All" option, likewise all word processors.
Well, that is just a suggestion.
You can always copy ui/default.ui to your local .lyx directory and add 
the entry to your own, personal set of menus...

Angus


Re: How to select all

2005-05-20 Thread Jean-Pierre Chretien

>>Date: Fri, 20 May 2005 14:46:07 +0200 (MEST)
>>From: Jean-Pierre Chretien <[EMAIL PROTECTED]>
>>Subject: Re: How to select all
>>To: lyx-users@lists.lyx.org
>>
>>
>>>>
>>>>PS: Thanks to Jean-Pierre too.
>>
>>Well, I rememberd this from an ancient version of LyX, I was not awrw of the 
>>S-C-end binding.
>>Angus' hint is better as it shows that setting the cursor does set mark in 
>>that case.
>>The arrows are useful for partial precise selection over pages, and then the 
>>C-m
>>is compulsory.

Forget what I said, and try e.g.

->grep select /usr/local/share/lyx/bind/emacs.bind
/usr/local/share/lyx/bind/emacs.bind:# Motion + select group
/usr/local/share/lyx/bind/emacs.bind:\bind "S-Right"
"forward-select"
/usr/local/share/lyx/bind/emacs.bind:\bind "S-Left" 
"backward-select"
/usr/local/share/lyx/bind/emacs.bind:\bind "S-C-F"  
"forward-select"
/usr/local/share/lyx/bind/emacs.bind:\bind "S-C-B"  
"backward-select"
[...]



Everything needed is in here, I should read the binding file more often...
S-Right selects without setting the mark.
There are also paragraph-related selection.

The question is: how to make this binding info available in the lyx window,
better than with the binding info in the minibuffer (where you must know the
command name to find the binding).

-- 
Jean-Pierre



Re: How to select all

2005-05-20 Thread Kevin Pfeiffer
Hi,

Angus Leeming writes:
> You can always copy ui/default.ui to your local .lyx directory and add
> the entry to your own, personal set of menus...

That I've been doing (nice feature!), but something like Ctrl-A (which is 
not the same as buffer-end-select) has been around in the Mac and 
Windows world since the dawn of time (or so). And in many/most 
KDE-based apps as well.

Not offering this for these users is like putting them into a super, 
wonderful, really powerful automobile---but one that has right-side 
steering (for those of us who drive on the left side). Ouch.

In OpenOffice when I want to select a footnote I press Ctrl-A 
with my cursor anywhere in the footnote and I get a selection of the 
entire footnote. It would be nice if in LyX I could do the same inside 
containers (or a document).

Perhaps this can already be done? Might there be a way to bind a 
key (such as "C-a") to the sequence "Home, Shift-End"?


-Kevin
-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: How to select all

2005-05-20 Thread Jean-Pierre Chretien

>>From: Kevin Pfeiffer <[EMAIL PROTECTED]>
>>To: lyx-users@lists.lyx.org
>>Subject: Re: How to select all
>>Date: Fri, 20 May 2005 17:16:16 +0200

[...]
>>
>>Perhaps this can already be done? Might there be a way to bind a 
>>key (such as "C-a") to the sequence "Home, Shift-End"?

\bind "C-a" "command-sequence buffer-begin ; buffer-end-select"
In fact, it *does* exist in mac.bind.

Does not solve the "select all in container" problem however.

-- 
Jean-Pierre



Re: How to select all

2005-05-20 Thread Lars Gullik Bjønnes
Kevin Pfeiffer <[EMAIL PROTECTED]> writes:

| Not offering this for these users is like putting them into a super, 
| wonderful, really powerful automobile---but one that has right-side 
| steering (for those of us who drive on the left side). Ouch.

Hmm... I drive equally well with both configurations...
(all four (or at least three) in fact)

-- 
Lgb



Re: How to select all

2005-05-20 Thread Bennett Helm
On May 20, 2005, at 11:16 AM, Kevin Pfeiffer wrote:
That I've been doing (nice feature!), but something like Ctrl-A (which 
is
not the same as buffer-end-select) has been around in the Mac and
Windows world since the dawn of time (or so). And in many/most
KDE-based apps as well.

Not offering this for these users is like putting them into a super,
wonderful, really powerful automobile---but one that has right-side
steering (for those of us who drive on the left side). Ouch.
Note that mac.bind, the default binding file for the Mac, has C-a 
(-a) bound to "command-sequence buffer-begin ; buffer-end-select". 
No pain here!

Bennett


Re: How to select all

2005-05-20 Thread Kevin Pfeiffer
Jean-Pierre Chretien writes:
> >>From: Kevin Pfeiffer <[EMAIL PROTECTED]>

> >>Perhaps this can already be done? Might there be a way to bind a
> >>key (such as "C-a") to the sequence "Home, Shift-End"?
>
> \bind "C-a" "command-sequence buffer-begin ; buffer-end-select"
> In fact, it *does* exist in mac.bind.

Ah, I must have overlooked that; many, many thanks!

> Does not solve the "select all in container" problem however.

Ctrl-Home and Ctrl-End do seem to work, but not with the shift key.

-K

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>
Tiros-Translations


Re: How to select all

2005-05-21 Thread Paul Smith
On 5/20/05, Angus Leeming <[EMAIL PROTECTED]> wrote:
> >> From the same bind file
> >>\bind "S-C-End" "buffer-end-select"
> >>
> >>so I guess that that will do what you want too (shift-control-End).
> >
> > That is it, thanks! Maybe, it would be worthy to add an entry in the
> > Edit menu with the "Select All" option, likewise all word processors.
> > Well, that is just a suggestion.
> 
> You can always copy ui/default.ui to your local .lyx directory and add
> the entry to your own, personal set of menus...

Thanks, Angus. Your idea works fine. LyX is really flexible!

Paul


Re: How to select all

2005-05-23 Thread G. Milde
On 20.05.05, Jean-Pierre Chretien wrote:

> >>Well, I rememberd this from an ancient version of LyX, I was not awrw
> >>of the S-C-end binding. Angus' hint is better as it shows that
> >>setting the cursor does set mark in that case. The arrows are useful
> >>for partial precise selection over pages, and then the C-m is
> >>compulsory.   ^
  ^
[math-mode? ... well I guess you use emacs.bind and mean mark-toggle

What is/does the mark BTW? 
As buffer-begin and buffer-end work as expected in an inset, I
thought a 

  command-sequence buffer-begin; mark-on; buffer-end;
  
would result in a "inset aware" variant of select all, but it did not work.


> The question is: how to make this binding info available in the lyx window,
> better than with the binding info in the minibuffer (where you must know the
> command name to find the binding).

Jed (and I think also Emacs) has the functions "show_key" and
"where_is" that are very helpful to find out such things:

   show_key:  press a key and see the function bound to
   where_is:  type a function name and see the keybinding
   
My (coming up) python LyX package emulates these functions.

Günter

-- 
G.Milde web.de


Re: How to select all

2005-05-23 Thread Jean-Pierre Chretien

>>Date: Mon, 23 May 2005 10:38:36 +0200
>>From: "G. Milde" <[EMAIL PROTECTED]>
>>To: lyx-users@lists.lyx.org
>>Subject: Re: How to select all
>>X-TUD-Virus-Scanned: by amavisd-new at rks24.urz.tu-dresden.de
>>X-TUD-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on rks24
>>
>>On 20.05.05, Jean-Pierre Chretien wrote:
>>
>>> >>for partial precise selection over pages, and then the C-m is
>>> >>compulsory.   ^
>>  ^
>>[math-mode? ... well I guess you use emacs.bind and mean mark-toggle
   
Right

>>
>>What is/does the mark BTW? 

Select from the mark with the arrows, only solution to select when scolling 
goes after the current screen.

>>As buffer-begin and buffer-end work as expected in an inset, I
>>thought a 
>>
>>  command-sequence buffer-begin; mark-on; buffer-end;
>>  
>>would result in a "inset aware" variant of select all, but it did not work.
>>
>>
>>> The question is: how to make this binding info available in the lyx window,
>>> better than with the binding info in the minibuffer (where you must know the
>>> command name to find the binding).
>>
>>Jed (and I think also Emacs) has the functions "show_key" and
>>"where_is" that are very helpful to find out such things:
>>
>>   show_key:  press a key and see the function bound to
>>   where_is:  type a function name and see the keybinding
>>   
>>My (coming up) python LyX package emulates these functions.


Great ! (and TIA).

-- 
Jean-Pierre