Same file in 2 different windows?

Discussion about CodeLite development process and patches
apa
CodeLite Enthusiast
Posts: 11
Joined: Fri Apr 17, 2009 11:56 pm
Contact:

Same file in 2 different windows?

Post by apa »

Hi,

probably a stupid question:
I would like to have the same file in two (or more) different windows. Each time I tried this, I ended up failing:
a) Opening the same file twice switches to the existing file window tab
b) detaching the file first, then trying to open it up again, switches focus to the detached tab.

What am I doing wrong?
Thx
Arndt
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Same file in 2 different windows?

Post by eranif »

apa wrote:What am I doing wrong?
Nothing. You cant have the same window opened twice in codelite

Eran
Make sure you have read the HOW TO POST thread
apa
CodeLite Enthusiast
Posts: 11
Joined: Fri Apr 17, 2009 11:56 pm
Contact:

Re: Same file in 2 different windows?

Post by apa »

Hi, Eran

would this be worth a feature request? I tend to remember that earlier version of CodeLite used to support this, but I may be wrong ...

An alternative would be to allow editor windows to be (horizontally) split, Visual Studio e.g. has such a feature.

The justification/application of such a feature is that it is sometimes handy to look at 2 spots of the same file at the
same time instead of scrolling back and forth.

Thx,rgds
Arndt
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Same file in 2 different windows?

Post by DavidGH »

Hi,

A workaround on Linux: create a symlink to the file you want to view twice; you'll find that you can load the symlink separately, as CodeLite thinks it's a different file.

I don't know if the 'shortcuts' on other platforms will do the same thing.

Regards,

David
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Same file in 2 different windows?

Post by eranif »

apa wrote:would this be worth a feature request?
Yes
apa wrote:I tend to remember that earlier version of CodeLite used to support this, but I may be wrong ...
I dont think so. If you were able to do that, than it was a bug ;)
apa wrote:The justification/application of such a feature is that it is sometimes handy to look at 2 spots of the same file at the
same time instead of scrolling back and forth.
Sure, go ahead and open a FR for this

Eran
Make sure you have read the HOW TO POST thread
Post Reply