Skip to content

feat(keybinds): bind Home/End and Alt+Backspace in the editor - #119

Open
laurigates wants to merge 1 commit into
ynqa:mainfrom
laurigates:feat/editor-keybinds
Open

feat(keybinds): bind Home/End and Alt+Backspace in the editor#119
laurigates wants to merge 1 commit into
ynqa:mainfrom
laurigates:feat/editor-keybinds

Conversation

@laurigates

Copy link
Copy Markdown

Summary

Adds two commonly-requested default editor keybindings:

Implementation

Both map to existing editor actions (move_to_head, move_to_tail, erase_to_previous_nearest) — only the default keybind sets in default.toml and the README keymap change. termcfg parses the Home / End / Alt+Backspace notation natively, so no code changes are needed.

Notes

  • Existing users keep their on-disk config; the new binds apply to freshly generated configs and the built-in defaults. Users who want them can add "Home"/"End"/"Alt+Backspace" to the relevant [keybinds.on_editor] entries.
  • The README's embedded config block was updated in lockstep with default.toml to avoid drift.

Closes #61
Closes #71

Adds default editor keybindings requested upstream:
- Home / End → move to line start / end (alongside Ctrl+A / Ctrl+E) (ynqa#61)
- Alt+Backspace → erase to previous word boundary (alongside Ctrl+W) (ynqa#71)

These map to existing editor actions (move_to_head, move_to_tail,
erase_to_previous_nearest); only the default keybind sets and the README
keymap change. termcfg parses the Home/End/Alt+Backspace notation natively.

Closes ynqa#61
Closes ynqa#71

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@laurigates

Copy link
Copy Markdown
Author

Related PRs (no strict merge order)#119 and #118 (opt-in vi-style editing) both touch default.toml, so whichever merges first, the other needs a quick rebase. Independent in intent — no required order. (Conflict-free with #116.)

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.

Feature request: support for Alt + Backspace Support Home/End keys

1 participant