spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.33k stars 1.61k forks source link

Add a vertical collection of widgets to easily select the Project and Outline explorers #2549

Open goanpeca opened 9 years ago

goanpeca commented 9 years ago

Spyder should include the outline explorer pane by default on restart and perhaps it should go in the left, instead of the right, as many other IDEs are doing!

Nodd commented 9 years ago

:+1:

jnsebgosselin commented 6 years ago

I do not understand what needs to be done to solve this issue. @goanpeca or @ccordoba12 please explain and I'll try to implement it.

ccordoba12 commented 6 years ago

@jnsebgosselin, this is what @goanpeca and me would like to see

seleccion_016

Documentos (Documents in Spanish) roughly correspond to our Outline Explorer and Proyectos (Projects) to our Projects pane. We think this will give much more visibility to these plugins (especially the Outline Explorer) and it'll make us closer to other IDEs and also JupyterLab.

jnsebgosselin commented 6 years ago

@ccordoba12 hmm, interesting. In fact, this is exactly the setup I'm using.

So if I understand correctly, to fix this issue we need to make changes to the Spyder Default Layer in the Windows Layer to have this setup by default when opening Spyder for the first time? Or is there more that needs to be done?

image

jnsebgosselin commented 6 years ago

Or maybe what you are suggesting is to have a permanent vertical toolbar where a set of predefined panes can be selected (in this case the Outline Explorer and Project Explorer), like in LibreOffice Writer?

libre_office_vert_collection

ccordoba12 commented 6 years ago

Or maybe what you are suggesting is to have a permanent vertical toolbar where a set of predefined panes can be selected

Yes, that's exactly what I'm suggesting.

jnsebgosselin commented 6 years ago

Ok, I understand.

So if we implement that, would the Outline Explorer and Project Explorer still be available as dock widget ?

ccordoba12 commented 6 years ago

No, but I think that's fine.

jnsebgosselin commented 6 years ago

Yes I agree with you

ccordoba12 commented 6 years ago

Great! The thing is they make sense when shown next to the Editor (as with other IDEs).

bcolsen commented 6 years ago

Thought one

Think file explorer with only a names column could work over there as well: image

Thought 2

I think the side tabs will leave a lot of wasted space for two or three tabs. There is only so much horizontal space in such a narrow section to show extended trees and long names. Three tabs at the top or bottom simply named (Projects, Outline, Files) could work.

ccordoba12 commented 6 years ago

I agree with your thought one but I don't understand your thought two.

bcolsen commented 6 years ago

but I don't understand your thought two.

Here's a mockup. The wasted space is in pink

sypyder side bar

Most editors have a side bar and some have tabs on the side, but most editors(and LibreOffice) also have lots of horizontal space because they only have the side bar and the editor. Spyder is running out of horizontal space with the console and variable explorer also taking horizontal space.

I think that the side tabs are great for discoverability and the the current tabs on the bottom are not very discoverable (I feel this is true for all the panels in spyder). Rstudio and other IDEs have panel tabs at the top of the section which is more discoverable and more common.

ccordoba12 commented 6 years ago

Spyder is running out of horizontal space with the console and variable explorer also taking horizontal space.

So you're suggesting that we use a vertical tabbar, right? Because that's what's proposed here. We could use the wasted space for future plugins (like a Git one).

Rstudio and other IDEs have panel tabs at the top of the section which is more discoverable and more common

This should be doable in Qt (I guess).

bcolsen commented 6 years ago

So you're suggesting that we use a vertical tabbar, right? Because that's what's proposed here. We could use the wasted space for future plugins (like a Git one).

I'm suggesting to use tabs on top of all the panels including the side bar, because vertical tabs have lots of wasted space on very long narrow panels.

On the other hand if we think we can fill this space with lots of new interesting widgets then I'm in. We could throw "find in files" over there too