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

REQUEST: Backspace clears character to space and moves cursor back, instead of deleting the character #42

Open
pedroangelini opened this issue Dec 20, 2023 · 4 comments

Comments

@pedroangelini
Copy link

When overtyping, if you make a mistake and hit backspace, the editor will delete the character you just typed, and in doing this it will remove one character from the line. This is similar to pasting multiple characters without "hard mode" paste enabled, which adds characters instead of overwriting them.
My request is to have an option to "hard backspace", which, when enabled, if you hit backspace, the editor would replace the previous character (or selection) with a space (or spaces if in a selection) and move the carriage back.

Example of how it is today (spaces replaced to _ for readability and the carriage is represented by |):

################################################################
######_I'm_writting_on_this_line_and_made_a_mistakee_###########
*puts the cursor below*
################################################################
######_I'm_writting_on_this_line_and_made_a_mistakee|_###########
*hits backspace*
################################################################
######_I'm_writting_on_this_line_and_made_a_mistake_###########
*now my line has one fewer character :(*

If the requested "hard backspace mode" is enabled the sequence would go like this

################################################################
######_I'm_writting_on_this_line_and_made_a_mistakee_###########
*puts the cursor below*
################################################################
######_I'm_writting_on_this_line_and_made_a_mistakee|_###########
*hits backspace*
################################################################
######_I'm_writting_on_this_line_and_made_a_mistake__###########
*note extra space instead of the second e in the last word*
@slosar
Copy link

slosar commented Mar 12, 2024

Second that!

@al20878
Copy link

al20878 commented May 15, 2024

I second that, too!

@al20878
Copy link

al20878 commented Jun 6, 2024

Is there a reason the suggested patch is still pending, and has not been merged for almost 3 months now?

This feature is so desperately needed!

@juarezr
Copy link

juarezr commented Jul 4, 2024

+1

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

4 participants