Skip to content

Conversation

@blouflab
Copy link

Keyboard Enhancement Improvements

Summary

This implements keyboard navigation enhancements for the editor component, focusing on word navigation, command history, and improved key bindings.

Changes

1. Word Navigation

  • Ctrl+Left/Right Arrow: Navigate word-by-word backward/forward
  • Maintains compatibility with Alt+Left/Right and Alt+B/F shortcuts

2. Command History

  • Up Arrow: Navigate to previous command in history
  • Down Arrow: Navigate to next command in history
  • Commands are automatically saved to history when sent

3. Enhanced Key Bindings

  • Ctrl+U: Clear current line

Technical Details

  • Added WordBackward/WordForward key bindings to textarea keymap
  • Implemented history tracking with history slice and index counter
  • Updated key binding struct and default keymap configuration
  • All changes are keyboard-focused with no mouse functionality included

Testing

  • All existing tests pass
  • Build compiles successfully
  • Manual testing confirms all keyboard shortcuts work as expected

Solving

@blouflab blouflab requested a review from a team as a code owner October 24, 2025 18:26
@blouflab blouflab requested review from aymanbagabas and kujtimiihoxha and removed request for a team October 24, 2025 18:26
@charmcli
Copy link
Contributor

charmcli commented Oct 24, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@blouflab
Copy link
Author

I have read the Contributor License Agreement (CLA) and hereby sign the CLA.

@blouflab blouflab force-pushed the editor_keyshortcuts branch from 580cdf5 to 6390f83 Compare October 24, 2025 19:04
@blouflab
Copy link
Author

recheck

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