Re: new function request

2012-07-20 Thread Jean-Marc Lasgouttes

Le 07/07/2012 12:31, Kornel Benko a écrit :

Hi,

very often I use more than 1 window while editing a file in lyx.

This is handy, but starting with window-new forces me always also

to use File-Open...

I'd like to have a function like window-new-current-buffer, which
behaves like

in emacs File-New Frame, e.g. creates a new window with the current
buffer displayed.


Note thatere is a checkbox in prefs for opening new files in new windows 
rather than tabs.


JMarc



Re: Re: new function request

2012-07-20 Thread Kornel Benko
Am Freitag, 20. Juli 2012 um 11:20:25, schrieb Jean-Marc Lasgouttes 
lasgout...@lyx.org
 Le 07/07/2012 12:31, Kornel Benko a écrit :
  Hi,
 
  very often I use more than 1 window while editing a file in lyx.
 
  This is handy, but starting with window-new forces me always also
 
  to use File-Open...
 
  I'd like to have a function like window-new-current-buffer, which
  behaves like
 
  in emacs File-New Frame, e.g. creates a new window with the current
  buffer displayed.
 
 Note thatere is a checkbox in prefs for opening new files in new windows 
 rather than tabs.
 
 JMarc

That is nice. Though not exactly fitting to the desired feature.
I like windows _and_ tabs.

Kornel

signature.asc
Description: This is a digitally signed message part.


Re: new function request

2012-07-20 Thread Jean-Marc Lasgouttes

Le 07/07/2012 12:31, Kornel Benko a écrit :

Hi,

very often I use more than 1 window while editing a file in lyx.

This is handy, but starting with "window-new" forces me always also

to use File->Open...

I'd like to have a function like "window-new-current-buffer", which
behaves like

in emacs "File->New Frame", e.g. creates a new window with the current
buffer displayed.


Note thatere is a checkbox in prefs for opening new files in new windows 
rather than tabs.


JMarc



Re: Re: new function request

2012-07-20 Thread Kornel Benko
Am Freitag, 20. Juli 2012 um 11:20:25, schrieb Jean-Marc Lasgouttes 

> Le 07/07/2012 12:31, Kornel Benko a écrit :
> > Hi,
> >
> > very often I use more than 1 window while editing a file in lyx.
> >
> > This is handy, but starting with "window-new" forces me always also
> >
> > to use File->Open...
> >
> > I'd like to have a function like "window-new-current-buffer", which
> > behaves like
> >
> > in emacs "File->New Frame", e.g. creates a new window with the current
> > buffer displayed.
> 
> Note thatere is a checkbox in prefs for opening new files in new windows 
> rather than tabs.
> 
> JMarc

That is nice. Though not exactly fitting to the desired feature.
I like windows _and_ tabs.

Kornel

signature.asc
Description: This is a digitally signed message part.


new function request

2012-07-07 Thread Kornel Benko
Hi,
very often I use more than 1 window while editing a file in lyx.
This is handy, but starting with window-new forces me always also
to use File-Open...

I'd like to have a function like window-new-current-buffer, which behaves like
in emacs File-New Frame, e.g. creates a new window with the current buffer 
displayed.

I checked, if there were a possibility to use command-sequence, but could not 
find
a way to get actual buffer name to use.
(I had in mind:
command sequence set-current-buffer-name into somename; buffer-new; 
buffer-switch (in new window) somename
)

But even if I had the buffer name, the sequence would not work, because 
buffer-switch does not address the new window.

Regards
Kornel


signature.asc
Description: This is a digitally signed message part.


Re: new function request

2012-07-07 Thread Pavel Sanda
Kornel Benko wrote:
 very often I use more than 1 window while editing a file in lyx.
 This is handy, but starting with window-new forces me always also
 to use File-Open...

You should use View menu (see bottom).

 I'd like to have a function like window-new-current-buffer, which behaves 
 like

I support this request, though I think that better would be make it part of 
window-new LFUN
(e.g. adding optional parameter windows-new current-buffer).
It shouldn't be hard to implement.

Pavel


Re: Re: new function request

2012-07-07 Thread Kornel Benko
Am Samstag, 7. Juli 2012 um 14:21:39, schrieb Pavel Sanda sa...@lyx.org
 Kornel Benko wrote:
  very often I use more than 1 window while editing a file in lyx.
  This is handy, but starting with window-new forces me always also
  to use File-Open...
 
 You should use View menu (see bottom).

Thanks, I missed that one (too hidden for me)

  I'd like to have a function like window-new-current-buffer, which behaves 
  like
 
 I support this request, though I think that better would be make it part of 
 window-new LFUN
 (e.g. adding optional parameter windows-new current-buffer).

Yes

 It shouldn't be hard to implement.
 
 Pavel

Kornel

signature.asc
Description: This is a digitally signed message part.


new function request

2012-07-07 Thread Kornel Benko
Hi,
very often I use more than 1 window while editing a file in lyx.
This is handy, but starting with "window-new" forces me always also
to use File->Open...

I'd like to have a function like "window-new-current-buffer", which behaves like
in emacs "File->New Frame", e.g. creates a new window with the current buffer 
displayed.

I checked, if there were a possibility to use command-sequence, but could not 
find
a way to get actual buffer name to use.
(I had in mind:
"command sequence set-current-buffer-name into somename; buffer-new; 
buffer-switch (in new window) somename"
)

But even if I had the buffer name, the sequence would not work, because 
buffer-switch does not address the new window.

Regards
Kornel


signature.asc
Description: This is a digitally signed message part.


Re: new function request

2012-07-07 Thread Pavel Sanda
Kornel Benko wrote:
> very often I use more than 1 window while editing a file in lyx.
> This is handy, but starting with "window-new" forces me always also
> to use File->Open...

You should use View menu (see bottom).

> I'd like to have a function like "window-new-current-buffer", which behaves 
> like

I support this request, though I think that better would be make it part of 
window-new LFUN
(e.g. adding optional parameter "windows-new current-buffer").
It shouldn't be hard to implement.

Pavel


Re: Re: new function request

2012-07-07 Thread Kornel Benko
Am Samstag, 7. Juli 2012 um 14:21:39, schrieb Pavel Sanda 
> Kornel Benko wrote:
> > very often I use more than 1 window while editing a file in lyx.
> > This is handy, but starting with "window-new" forces me always also
> > to use File->Open...
> 
> You should use View menu (see bottom).

Thanks, I missed that one (too "hidden" for me)

> > I'd like to have a function like "window-new-current-buffer", which behaves 
> > like
> 
> I support this request, though I think that better would be make it part of 
> window-new LFUN
> (e.g. adding optional parameter "windows-new current-buffer").

Yes

> It shouldn't be hard to implement.
> 
> Pavel

Kornel

signature.asc
Description: This is a digitally signed message part.