vscode-overtype icon indicating copy to clipboard operation
vscode-overtype copied to clipboard

Backspace should overtype in overtype mode

Open nokola opened this issue 8 years ago • 4 comments

In markdown tables, when I press backspace in overtype mode, it acts the same as Insert Mode, deleting and messing format on the right of the cursor.

| Property                      | *Old Epx@480 Width* | *New (Phone)* |
|-------------------------------|---------------------|---------------|
| Width/Height/size             | 80                  | 50            |
| Width/Height/size             | 90                  | 60            |

e.g. try editing the "90" above in overtype mode:

  1. type "1" on top of the zero
  2. Press Backspace. Expected: The "1" is replaced with space:
| Property                      | *Old Epx@480 Width* | *New (Phone)* |
|-------------------------------|---------------------|---------------|
| Width/Height/size             | 80                  | 50            |
| Width/Height/size             | 9                   | 60            |

Actual: the "1" is deleted messing with the format of the markdown table

| Property                      | *Old Epx@480 Width* | *New (Phone)* |
|-------------------------------|---------------------|---------------|
| Width/Height/size             | 80                  | 50            |
| Width/Height/size             | 9                  | 60            |

Edit: just want to mention - great job on this extension! Much needed 👍

nokola avatar May 27 '17 18:05 nokola

This would be amazing!

flyinbutrs avatar Nov 15 '17 16:11 flyinbutrs

I love the idea of this extension, but I don't find it particularly usable without treating backspace as overtype, as requested above.

chrismarch avatar Dec 12 '18 01:12 chrismarch

I second the request by @chrismarch @flyinbutrs and @nokola - backspace should also be mangled to work as expected in overtype mode. Otherwise, you have to switch back and forth between these modes which feels a bit clumsy.

perlun avatar May 29 '19 10:05 perlun

Please add a Settings option for "Backspace as Undo in Overtype mode" - so when in Overtype mode, hitting Backspace would simply undo the last character insertion, which would leave the line structure/spacing undisturbed.

mblais avatar May 10 '21 17:05 mblais