zed icon indicating copy to clipboard operation
zed copied to clipboard

Delete key does not work in the editor

Open ErrolFernandes opened this issue 9 months ago • 3 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

In the editor when I press the delete key it does not delete anything but works in terminal. Also works with option key which deleted complete words

Environment

MacOS latest

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

ErrolFernandes avatar May 11 '24 21:05 ErrolFernandes

Do you per chance have "vim_mode": true in your settings.json file?

Moshyfawn avatar May 12 '24 00:05 Moshyfawn

Yes

ErrolFernandes avatar May 12 '24 01:05 ErrolFernandes

So you are in Vim NORMAL mode, where you can jump around in the code, but you can't edit it - hence the delete button doesn't work. When you press i, you are in INSERT mode, where you can edit the text.

If you accidentally switched on the Vim mode, you can switch it off by setting "vim_mode": false or by deleting the line completely.

Moshyfawn avatar May 12 '24 01:05 Moshyfawn

Oh thankyou very much.

ErrolFernandes avatar May 12 '24 03:05 ErrolFernandes

No problem! I'm going to close this issue because it's working as intended, but feel free to ask if you still have any questions.

Moshyfawn avatar May 12 '24 03:05 Moshyfawn