You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[n/a] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[n/a] Could not reproduce inside jupyter qtconsole (if console-related)
[n/a] Tried basic troubleshooting (if a bug/error)
Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
Currently, when autocompleting, rather than landing inside the related parentheses, the cursor lands outside of the related parentheses. It would be nice to have an option to land within them.
What is the expected output? What do you see instead?
pathlib.Pa<tab># results in (| for cursor position)pathlib.Path()|# which requires immediate backtracking to use in the typical case (where one is sending arguments)# It would be very nice indeed if there were an option for:pathlib.Path(|)
# which results in immediate continuation
Versions
Spyder version: 5.4.3 (Conda)
Python version: Python 3.11.5 64-bit
Qt version: Qt 5.15.2
PyQt version: PyQt5 5.15.7
Operating System name/version:
Linux 6.2.0-34-generic
The text was updated successfully, but these errors were encountered:
Hi there @eode sorry for such a late response and thank you for the feedback! Checked this with the latest Spyder release (6.0.4) on Linux and I was able to reproduce the described behavior. Interestingly when checking this on an env with Python 3.12 the cursor ends up inside the parentheses 🤔
Python 3.10
Python 3.12
What do you think about this behavior @ccordoba12 ?
I think we should move the cursor to be inside the function/method parentheses when there are no code snippets for it (the difference with Python 3.12 that you found is due to the available code snippets for Path in that version).
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)Problem Description
Currently, when autocompleting, rather than landing inside the related parentheses, the cursor lands outside of the related parentheses. It would be nice to have an option to land within them.
What is the expected output? What do you see instead?
Versions
Linux 6.2.0-34-generic
The text was updated successfully, but these errors were encountered: