Skip to content

Refresh outline only when saving file #15078

@robach

Description

@robach

Hello,

Thanks for your reply about issue #5821,
With some sed (cf. below)

sed -i 's/^if ./#%% &\n&/' test.py
sed -i 's/^ if .
/#%%% &\n&/' test.py
sed -i 's/^ if .*/#%%%% &\n&/' test.py

the code now has a nice foldable outline. (using the "group code cells" option)

I had a question though :
in the older version of spyder,
the outline was updated only when saving the file,
with the new version of spyder,
the outline is refreshed at each keyboard typing inside the Editor,
and it takes a lot of CPU (the computer has to start its fan).

Is there a way to revert back to the "only refresh outline on save" version ?
Please let me know.
Thanks.
Best regards.
.

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

What steps reproduce the problem?

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

Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

  • Spyder version:
  • Python version:
  • Qt version:
  • PyQt version:
  • Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions