spyder icon indicating copy to clipboard operation
spyder copied to clipboard

Outline pane is automatically shown when editor is maximized

Open newyorker123 opened this issue 4 years ago • 2 comments

Issue Report Checklist

  • [ ] Searched the issues page for similar reports
  • [ ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • [ ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • [ ] Could not reproduce inside jupyter qtconsole (if console-related)
  • [ ] Tried basic troubleshooting (if a bug/error)
    • [ ] Restarted Spyder
    • [ ] Reset preferences with spyder --reset
    • [ ] Reinstalled the latest version of Anaconda
    • [ ] Tried the other applicable steps from the Troubleshooting Guide
  • [ ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

When I click the maximize current pane on the top tool bar to maximize editor, the outline pane automatically shown on the right side. But in the view option, the outline is actually not checked. I have to first check the outline option(nothing happens), then check it again to close the outline pane.

截屏2021-08-23 下午5 03 20

What steps reproduce the problem?

  1. click the maximize current pane to maximize editor
  2. the outline pane is shown on the right side

What is the expected output? What do you see instead?

Outline pane not shown. Or at least the outline option should be checked when shown.

Paste Traceback/Error Below (if applicable)


PASTE TRACEBACK HERE

Versions

  • Spyder version: 5.1.1 (also happen in 5.0.5)
  • Python version: 3.8.8
  • Qt version:
  • PyQt version:
  • Operating System name/version: Mac BigSur

Dependencies

PASTE DEPENDENCIES HERE

newyorker123 avatar Aug 23 '21 09:08 newyorker123

Hi @newyorker123,

When you hit maximize the editor, it will open by default the outline on the right side. What is weird is that the pane is not checked on the menu, we will look into to add the fix in our future releases.

Thanks for reporting!

steff456 avatar Aug 23 '21 14:08 steff456

To fix this, I propose to hide the Unlock position and Undock actions of the Outline plugin and show only Close. But that action would need an extra implementation to know that we don't need to show the Outline when the Editor is maximized again.

In addition, if users would like to recover this functionality, they'd need to go to View > Panes > Outline to show it again. But for that, we need to update the Outline state in that menu when the editor is maximized (see https://github.com/spyder-ide/spyder/pull/19448#pullrequestreview-1109685546 for more context).

ccordoba12 avatar Oct 11 '22 05:10 ccordoba12

Removing the "file path" above the tabs would be good to save screen space. The full path is already shown when the mouse is over the tab, so, this static "file path" info is unnecessary.

JohnRobson avatar Jun 09 '24 05:06 JohnRobson