Skip to content

Feature: Add text selection with Shift + Arrow keys#27

Open
susbakun wants to merge 5 commits intopflenker:mainfrom
susbakun:feature/select
Open

Feature: Add text selection with Shift + Arrow keys#27
susbakun wants to merge 5 commits intopflenker:mainfrom
susbakun:feature/select

Conversation

@susbakun
Copy link

Summary

Adds text selection functionality to hecto, allowing users to select text using Shift+Arrow keys while preserving syntax highlighting within the selection.

Features

  • Shift+Arrow Selection: Select text using Shift + Up/Down/Left/Right/Home/End/PageUp/PageDown
  • Multi-line Selection: Supports selection across multiple lines
  • Syntax Highlighting Preservation: Selected text maintains its syntax colors (foreground) while showing selection background
  • Selection Deletion: Pressing Delete or Backspace removes selected text
  • Type-to-Replace: Typing while text is selected replaces the selection
  • Dismiss Selection: Press Escape or any non-shift movement to clear selection

Keybindings

Key Action
Shift+Left/Right Select character
Shift+Up/Down Select line
Shift+Home Select to start of line
Shift+End Select to end of line
Shift+PageUp/Down Select page
Escape Clear selection
Delete/Backspace Delete selection
Any character Replace selection

Screenshots

Screen Shot 2025-12-26 at 21 40 46 PM

@susbakun susbakun changed the title Feature/select feat: Add text selection with Shift + Arrow keys Dec 26, 2025
@susbakun susbakun changed the title feat: Add text selection with Shift + Arrow keys Feature: Add text selection with Shift + Arrow keys Dec 26, 2025
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.

1 participant