Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor split view #1179

Closed
tubberd opened this Issue Mar 3, 2016 · 18 comments

Comments

Projects
None yet
9 participants
@tubberd
Copy link

tubberd commented Mar 3, 2016

Coming from Code::Blocks IDE.
I've been using CodeLite for a while now, and so far it seems to be excellent.
However, there is one crucial feature (for me) missing, or at least i cant find it.
Is there a way to split view the editor? So we can have multiple different files open in 2 views? Say, header and implementation file at the same time, for example? In Code::Blocks for example, you can simply drag a tab/file to some edge of the IDE and it will automatically create a seperate editor frame.

@eranif

This comment has been minimized.

Copy link
Owner

eranif commented Mar 3, 2016

This was the case in CodeLite a year ago, however, since then we switched to different tab system which does not support this.
There are multiple bugs that needs to be fixed before we can switch back to wxAuiNotebook

@tubberd

This comment has been minimized.

Copy link
Author

tubberd commented Mar 3, 2016

forgive me for repeating the comparison with CB, but as far as i know CB is also based on wxWidgets, ans CB itself has been working relatively bugfree as long as ive used it? i suppose they use wxAuiNotebook ?

@eranif

This comment has been minimized.

Copy link
Owner

eranif commented Mar 3, 2016

C::B forked and maintain several wxWidgets control (to name a few: wxScintilla, wxAuiNotebook) while I prefer to use the builtin ones (e.g. CodeLite uses wxStyledTextCtrl instead of wxScintilla)

I don't like to keep the extra maintenance - its a simple man power question nothing more

@tubberd

This comment has been minimized.

Copy link
Author

tubberd commented Mar 3, 2016

Ah, i see. Great work on CodeLite though! love it :)

@eranif eranif closed this Mar 5, 2016

@eranif

This comment has been minimized.

Copy link
Owner

eranif commented Mar 5, 2016

I closed this, note that if you will provide a pull-request, I will be happy to apply it

@milasudril

This comment has been minimized.

Copy link

milasudril commented Jun 1, 2017

The tabs are just confusing. Especially when you have 20 files open. Drop them and use a vertical panel that can show all open files. Something like Tab tab in the workspace view. Add highlight to the current file, and maybe also add a tree view. Then use that instead.

@AJenbo

This comment has been minimized.

Copy link
Collaborator

AJenbo commented Jun 1, 2017

@milasudril your commenting on a close issue. The current file in Tab is already highlighted and you can move the panel where you like. Also Explorer already gives you a treeview.

@milasudril

This comment has been minimized.

Copy link

milasudril commented Jun 1, 2017

@AJenbo What I thought was:

  1. The tab widget cannot handle split editor
  2. Tabs are not needed. A vertical list of open files is much more useful

(1) and (2) => Remove the tabs, so this issue can be solved.

@AJenbo

This comment has been minimized.

Copy link
Collaborator

AJenbo commented Jun 1, 2017

Hmm I see. As eranif said, it's not that it can't be solved. its a question of man power. Pull request are welcome. With something like this I think a series of small changes and preparations would the way to go instead of attempting to do it all at once.

@dghart

This comment has been minimized.

Copy link
Collaborator

dghart commented Jun 2, 2017

Hi,
Another point to add to what's already been said: not everyone will agree that a vertical panel is better. I much prefer tabs.

So any pull request or patch should be adding the option of using a vertical panel, not making it compulsory.

@canmetan

This comment has been minimized.

Copy link

canmetan commented Dec 29, 2017

I personally prefer a split view with tabs as well.
It's very convenient to look at the header file, see the variables etc. while you're working on a cpp file.
Plus you can look at other headers if you're going to use functions from there or if you have an input text file that you will parse, it's useful. Since we already have tabs and since C::B source code is open source, I figure it shouldn't be extremely difficult to simply incorporate existing code. I'm not familiar with the code base and don't have much time unfortunately. I know it's easy to ask and hard to do, so I will just say that the person who does this will be my hero 👶 Enjoying code lite for now, might go back to C::B in the future just because of this back and forth switch. Thank you for providing this awesome IDE devs.

@guy-rouillier

This comment has been minimized.

Copy link

guy-rouillier commented Mar 30, 2018

Found this issue via search. eranif said he wants to stick with standard wxWidgets controls. I see that wxWidgets has a wxSplitterWindow:

http://docs.wxwidgets.org/3.0/overview_splitterwindow.html

Maybe this wasn't available when this question was first raised? I know, I know, submit a patch. Thanks.

@eranif

This comment has been minimized.

Copy link
Owner

eranif commented May 24, 2018

This is now implemented in git master, hope that this is what you meant:

splitter-view

@aviallon

This comment has been minimized.

Copy link
Contributor

aviallon commented May 24, 2018

@AJenbo

This comment has been minimized.

Copy link
Collaborator

AJenbo commented May 24, 2018

Really exciting

@guy-rouillier

This comment has been minimized.

Copy link

guy-rouillier commented May 24, 2018

Thanks, much appreciated!

@canmetan

This comment has been minimized.

Copy link

canmetan commented May 24, 2018

@eranif the hero! Thanks mate I will definitely check this out.

@jdyatsin

This comment has been minimized.

Copy link

jdyatsin commented Oct 8, 2018

Thanks! very nice feature.
I installed git master, but I cannot find this option. Can you please explain how I can enable this feature?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.