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

Restore option to open a new editor window #8011

Closed
gerazov opened this issue Oct 5, 2018 · 14 comments · Fixed by #8192
Closed

Restore option to open a new editor window #8011

gerazov opened this issue Oct 5, 2018 · 14 comments · Fixed by #8192

Comments

@gerazov
Copy link

gerazov commented Oct 5, 2018

Hi guys,

First let me say kudos to the whole team and community for version 4! Even though it is still in beta I've been using it with no problems and it's amazing! I just love the new features in the editor e.g. the foldable code, the vertical guides and scrolling past the end! Great job!

I am missing one feature from Spyder3 though - the option to open a new window of the editor - it was extremely convenient when using a dual monitor display. Is it possible to put it back?

Thanks for all your hard work!

@jnsebgosselin
Copy link
Member

Thanks for the report and the kind words

I am missing one feature from Spyder3 though - the option to open a new window of the editor - it was extremely convenient when using a dual monitor display. Is it possible to put it back?

You mean the option to have an Editor in the main window, and another Editor in a detached window?

@gerazov
Copy link
Author

gerazov commented Oct 5, 2018

Yup. In Spyder3 if you right-click on the tab bar in the Editor it was called New Window. Now there is a Undock Editor window there.

@jnsebgosselin
Copy link
Member

This is a design decision that was made when implementing PR #3824.

I understand this option in Spyder 3 was handy when using two monitors. I do not know how hard it could be to bring it back in 4 without causing too much Ux confusion due to the changes made in PR #3824.

@gerazov
Copy link
Author

gerazov commented Oct 5, 2018

Hmm that's a bummer - because this bounds us to edit on one monitor ...

I think it should be doable though - yesterday I succeeded in undocking the Editor and then re-instantiating a new one using the View > Panes > Editor which was unchecked. So I had an Editor in a separate window plus the docked one. Also the undocked Editor actually had the Window Manager title bar - so it was really a window on its own.

Today however when I undock the Editor pane it doesn't have the WM title bar and the Editor pane option remains checked so I can't replicate 😞

Ok I restarted Spyder and I could do the same - undock one Editor and restart a new one through the View menu - yeeey! 😃 but the Outline works for only the undocked window ...

@jnsebgosselin
Copy link
Member

I think it should be doable though - yesterday I succeeded in undocking the Editor and then re-instantiating a new one using the View > Panes > Editor which was unchecked. So I had an Editor in a separate window plus the docked one. Also the undocked Editor actually had the Window Manager title bar - so it was really a window on its own.

Today however when I undock the Editor pane it doesn't have the WM title bar and the Editor pane option remains checked so I can't replicate 😞

What you are describing is not intended by design, but if its a valid workaround for your problem, why not exploit it!

To reproduce what you were able to do yesterday, make sure the option View > Lock Panes is checked, then detach the Editor with the little icon in the Editor toolbar, not through the Undock Editor Window action in the Cog menu, then show the docked editor back with View > Panes > Editor. In fact, you can create the number of detached Editor you want with this method :)

IMO, the way undocking and creating new windows is working currently in Spyder 4 is very confusing.

image

@ccordoba12
Copy link
Member

Jean, this looks like a bug. What should we do to fix it?

@gerazov
Copy link
Author

gerazov commented Oct 5, 2018

Ahaha 😃 sweet!

It would be nice if this stays as an option. (Please don't fix it 👍 )

And the Outline works! - but if you go for Maximize current pane in the main window - then that Outline links only for the first undocked window.

@ccordoba12
Copy link
Member

IMO, the way undocking and creating new windows is working currently in Spyder 4 is very confusing.

I think I know what you mean: we should switch the behavior on the Undock action and the little button that undocks in dock widgets, right?

@jnsebgosselin
Copy link
Member

jnsebgosselin commented Oct 9, 2018

Jean, this looks like a bug. What should we do to fix it?

Yes, this is a bug, but this doesn't seem to cause any error.

IMO, the way undocking and creating new windows is working currently in Spyder 4 is very confusing.

I think I know what you mean: we should switch the behavior on the Undock action and the little button that undocks in dock widgets, right?

I think that this is a good solution.

It is confusing currently because clicking on the undock button in the titlebar of the dockwidgets creates a new window if Lock panes is checked and undocks the plugin if Lock panes is not checked. IMO this is confusing and there is no way to know that the behavior of the undock button is linked with the Lock panes action.

So I think:

  • Clicking on the undock button should always undock plugins, not matter what is the state of the Lock panes option.
  • A New Window action should be added to each plugin cog menu.

@ccordoba12 ccordoba12 changed the title Feature request: Spyder4 - option to open a new window of the editor Switch the behavior of the Undock action and button Nov 2, 2018
@ccordoba12 ccordoba12 added this to the v4.0beta2 milestone Nov 2, 2018
@ccordoba12 ccordoba12 removed this from the v4.0beta2 milestone Nov 2, 2018
@ccordoba12
Copy link
Member

This is basically a duplicate of #5515.

@ccordoba12 ccordoba12 changed the title Switch the behavior of the Undock action and button Restore option to open a new editor window Nov 3, 2018
@ccordoba12 ccordoba12 reopened this Nov 3, 2018
@ccordoba12 ccordoba12 added this to the v4.0beta2 milestone Nov 3, 2018
@ccordoba12
Copy link
Member

Sorry, I read carefully this issue and I think this is a valid request, given the significance of the Editor over the other plugins.

Therefore, I'll restore this option in PR #8192.

@Amishaaaaaa
Copy link

IMG20221002152828.jpg

How to get a new editor...i cannot find where to code since closed both the editor and the kernel. Dont know how to get it back.

@ccordoba12
Copy link
Member

You need to go to the menu View > Panes to restore closed panes.

@Amishaaaaaa
Copy link

done. Thankyou soo much!

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

Successfully merging a pull request may close this issue.

4 participants