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

Smart cursor and backspace/delete-> inconsistend behaviour when at end of line #22218

Open
skjerns opened this issue Jul 1, 2024 · 0 comments

Comments

@skjerns
Copy link
Contributor

skjerns commented Jul 1, 2024

Problem Description

When shifting lines, the smart cursor behaves inconsistently.

Consider the following example where I want to remove the last digit of each variable (i.e. the 1,2,3,4)

var1
var2
var3
var4

Here, I have the cursor at var1, press backspace, then down, and I would expect that the cursor lands on the end of the line. However, it lands between var and 2. So for the next removal, I need to press delete to delete the 2. However, when pressing down now, the cursor jumps to the end of line! So for removing the 3, I need to press backspace again.

This behaviour is inconsistend.

Solution: Either keep in the same column for both backspace of delete, or always move to end of line of we are at the end of line?

Animation

var1
var2
var3
var4

Put cursor to var1[CURSOR]. Remove with backspace. Then try to delete 2. etc

Versions

  • Spyder version: 5.1.1
  • Python version: N/A
  • Qt version: N/A
  • PyQt version: N/A
  • Operating System name/version: win/linux
@skjerns skjerns changed the title Smart cursor and backspace/delete-> inconsistend behaviour Smart cursor and backspace/delete-> inconsistend behaviour when at end of line Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant