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

multiple tabs in an editor #3014

Open
amrit-poudel opened this issue Feb 28, 2016 · 16 comments
Open

multiple tabs in an editor #3014

amrit-poudel opened this issue Feb 28, 2016 · 16 comments

Comments

@amrit-poudel
Copy link

This comment is not about an "issue" in Spyder, but more about its feature.

I was just wondering whether it was possible to arrange multiple tabs in a single editor in a vertical way (instead of a horizontal way that is currently available) so that it is easy to see which files are open. I can't seem to find this feature in Spyder. Matlab editor and other editors like sublime etc., have this feature and is very convenient when we want to edit multiple files.

Thanks.

@ccordoba12
Copy link
Member

Could you post an screenshot of what you want?

@amrit-poudel
Copy link
Author

multipletabs

Here is a screenshot of Matlab editor. On the left you will notice multiple tabs with respective file names. The tab position can be chosen anywhere (top, bottom, left or right).

@goanpeca
Copy link
Member

we will need to make a custom tab widget to hhave more freedom on the way we locate the tabs. can be done...

@amrit-poudel
Copy link
Author

I can give it a try on my own, but am not sure where to start from.

Also, I like to be able to change the position/location of the file in the tab, just like in matlab.

@goanpeca
Copy link
Member

@amrit-poudel could you post some screenshots of the different things that you would like to see (matlab screenshots)

@goanpeca
Copy link
Member

Also what is the behavior when you have more files open than what fits on available vertical screen?

@ccordoba12
Copy link
Member

ccordoba12 commented Sep 24, 2016

@goanpeca, I don't think it's useful to pursue this now that we have the new file switcher.

@goanpeca
Copy link
Member

Probably, just wanted to have more context ;-)

@amrit-poudel
Copy link
Author

amrit-poudel commented Sep 24, 2016

Thanks for the update and added new features. However, I think file switcher is not as efficient as having multiple tabs. This is my (user) perspective.

As for @goanpeca 's question, if we have more files open, we can put a scroller that can allow us to scroll up and down.

It appears to me that the most recent version of spyder (v 3) does not seem to offer a choice to user where to put the tabs. The tabs are placed horizontally on the top, which is not always convenient.

Also, I would like to be able to move files within the tabs, which is not possible in the recent version of spyder.

@ghost
Copy link

ghost commented Nov 25, 2016

I saw that (as long as I am understanding correctly) the ability to drag/drop reorder tabs (when there are multiple files/tabs open in the editor) has made it on to the roadmap for Spyder 3.1 and this is great news!! I'm a former Matlab user of many many years and have now transitioned to Spyder over the past ~year or so. I am using Spyder 3.0.2 now and this feature (drag/drop reordering of editor tabs) is IMHO one of the primary weaknesses of Spyder-- it impedes my productivity pretty much on a daily basis. It would be VERY helpful to have this implemented finally.

@ccordoba12
Copy link
Member

@DanCodigaMWRA, yep, reordering tabs (but not having tabs organized vertically, which this is issue is about) will come in 3.1 :-)

Thanks for your patience.

@HeiniK
Copy link

HeiniK commented Jan 31, 2018

Vertical tabs, or multiline horizontal tabs would also be of great practical use to me. If i have more than about 6-8 files openend in the editor, I always have to scroll back and forth through the displayed tabs.

File switching by Ctrl+page up/page down can be quite a pain in the eye, when browsing through 15-20 files.

@jnsebgosselin
Copy link
Member

@HeiniK Have you tried using the fileswitcher (Ctrl+P)? If yes, why is it not solving this issue and how could it be improved?

The fileswitcher works like an improved version of a vertical tabbar with search capabilities and with the added benefit of not cluttering the interface, especially when working split editors. It can also be used to browse through the outline tree of a file with Ctrl+Alt+P or by adding @ in the search bar.

fileswitcher_demo

@amrit-poudel
Copy link
Author

For users who are used to Matlab, file switch is not very efficient since you have to constantly do back and forth/ scroll up and down, as the above user has also pointed out. It may be efficient if you have, say 100 files open, but that is very rare. Having a vertical tab, just like in Matlab, is very handy, at least for those doing scientific computing where it is common to work with a fewer number of files.

@jnsebgosselin
Copy link
Member

@amrit-poudel thanks for the inputs. There is also the dropdown menu on the left side of the tabbar that can be used to quickly navigate between files.

image

But I understand it is not the same thing as having a permanent and fully functional vertical tabbar like in Matlab. How does it looks in Matlab when the editor is split? Let's say something like in the image below. Isn't there a lot of wasted space due to the vertical tabbar?

image

@m-beau
Copy link

m-beau commented Jun 13, 2020

Up, any update on this front? This would be an awesome feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants