Re: Keyboard switching between documents?

2004-10-08 Thread Dominik Waßenhoven
G. Milde schrieb:
On  7.10.04, Peter Ljunglöf wrote:
[switching between buffers]
You could file a feature request for next-buffer and
previous-buffer commands at the lyx bugzilla.
Have a look at http://bugzilla.lyx.org/show_bug.cgi?id=608 and 
http://bugzilla.lyx.org/show_bug.cgi?id=515

Dominik.-


Re: Keyboard switching between documents?

2004-10-07 Thread G. Milde
On  7.10.04, Peter Ljunglöf wrote:
> 
> Hi, I have a question on keyboard bindings and .bind files
> 
> When working on multiple documents at once, it's nice to be able to 
> switch between documents (buffers) fast. I have tried a bit to add this 
> feature to my personal .bind file, but without success so far.

So did I...
 
> Q: Is it possible to make a .bind file for keyboard switching between 
> open documents/buffers?
> 
> * Either, binding
>   "C-M-Left" to "next buffer" and
>   "C-M-Right" to "previous buffer".

Not that I know of. You could file a feature request for next-buffer and
previous-buffer commands at the lyx bugzilla.

> * Or, an alternative, binding
>   "C-M-1" to "buffer nr 1" and
>   "C-M-2" to "buffer nr 2" and
>   "C-M-3" to "buffer nr 3" etc.

There is the (not really fast) variant of "M-k 1" ... "M-k N" for buffer
number 1 ... N available out of the box.

As this is not really fast, one could try to get the "C-M-1" etc bound to
push the needed key sequence back to LyX. I know this is possible with the
lyxserver, but I hope there is an easier way too (maybe command-sequence;
 ).

Günter

-- 
G.Milde web.de


Keyboard switching between documents?

2004-10-07 Thread Peter Ljunglöf
Hi, I have a question on keyboard bindings and .bind files
When working on multiple documents at once, it's nice to be able to 
switch between documents (buffers) fast. I have tried a bit to add this 
feature to my personal .bind file, but without success so far.

Q: Is it possible to make a .bind file for keyboard switching between 
open documents/buffers?

* Either, binding
"C-M-Left" to "next buffer" and
"C-M-Right" to "previous buffer".
* Or, an alternative, binding
"C-M-1" to "buffer nr 1" and
"C-M-2" to "buffer nr 2" and
"C-M-3" to "buffer nr 3" etc.
I know there is a function "buffer-switch", but it has to get the full 
filename as argument. And I know that it is possible to use bookmarks, 
but then I have to save the bookmark everytime I leave the buffer.

regards, Peter
---
--- Peter Ljunglöf  PhD student, Göteborg University --
--- [EMAIL PROTECTED]  http://www.cs.chalmers.se/~peb 
---