Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fcoury
Copy link
Owner

@fcoury fcoury commented Dec 13, 2025

Summary

  • Fixed the d key in the query editor's vim mode - it was deleting the entire line immediately instead of waiting for a motion
  • The root cause was that d was mapped directly to DeleteLine in the keymap, bypassing the pending operator logic that handles dw, dd, de, etc.
  • Added new d+motion commands: dh, dl, dj, dk, dG
  • Added corresponding c+motion commands: ch, cl, cj, ck

Test plan

  • Run test suite - all 281 tests pass
  • Test dw deletes word forward
  • Test de deletes to end of word
  • Test db deletes word backward
  • Test dd deletes entire line
  • Test d$ deletes to end of line
  • Test d0 deletes to start of line
  • Test dh deletes character left
  • Test dl deletes character right
  • Test dj deletes current line and line below
  • Test dk deletes current line and line above
  • Test dG deletes to end of file

The 'd' key was mapped directly to DeleteLine in the editor keymap,
causing it to delete the entire line on first press instead of waiting
for a motion like 'dw' (delete word) or 'dd' (delete line).

Changes:
- Remove direct 'd' -> DeleteLine mapping from editor normal keymap
- Add new d+motion commands: dh, dl, dj, dk, dG
- Add corresponding c+motion commands: ch, cl, cj, ck
@fcoury fcoury merged commit ce12a8b into master Dec 13, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants