Outline exporer items auto expands to follow cursor position in latest 4.x
See original GitHub issueProblem Description
After PR #13109, the outline explorer is expanded automatically to follow where the cursor is in the editor. I think this is a UX regression to what was done in PR #7962.
I think that it is ok that the highlight in the Outline explorer follows the cursor position if the item is already visible, but it should not expand items automatically. That is why we have the Go to cursor position button.

Versions
- Spyder version: 4.2.0.dev0 2b8b7f669
- Python version: 3.7.6 64-bit
- Qt version: 5.12.5
- PyQt5 version: 5.12.3
- Operating System: Windows 10
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Outline — Spyder 5 documentation
Follow cursor position : Automatically highlight and expand the entry corresponding to the current cursor position in the Editor.
Read more >Code Explorer – Outline - Documentation - VisualGDB
This page provides an overview of the Outline view in Code Explorer. Contents. Overview Navigating the Outline Favorite Items Included Files
Read more >CSS Basic User Interface Module Level 4 - W3C
The UA determines the cursor to display based on the current context. Specifically, auto behaves as text over selectable text or editable ...
Read more >108766 – Navigator should highlight headings/objects ...
track headings in navigator 'All' Content Navigation View (742.73 KB, ... the pages and the topics regarding the current cursor position ...
Read more >Visual Studio Code Tips and Tricks
Access all available commands based on your current context. Keyboard Shortcut: Ctrl+Shift+P. Command Palette. Default keyboard shortcuts. All of the commands ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think we should preserve the behavior @andfoy added of automatically following the cursor (I find it more useful), but with an option to revert back to the previous behavior.
Yes, don’t worry, I can add an option on PR https://github.com/spyder-ide/spyder/pull/13885