• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / git-commit-summary / 20411324363

21 Dec 2025 02:34PM UTC coverage: 32.972% (-1.8%) from 34.783%
20411324363

Pull #39

github

rm-hull
feat: implement Ctrl+X to cut lines in commit view

Adds a keyboard shortcut (`Ctrl+X`) to the commit view that cuts the
current line and copies it to the system clipboard.

- Integrates `github.com/atotto/clipboard` for system access.
- Removes the active line from the textarea buffer.
- Records the change in the history buffer for undo support.
- Recalculates the cursor offset to maintain focus on the following
  line.

```mermaid
graph TD
    A[Press Ctrl+X] --> B{Textarea empty?}
    B -- No --> C[Identify current line]
    C --> D[Copy line to clipboard]
    D --> E[Remove line from buffer]
    E --> F[Push state to history]
    F --> G[Update cursor position]
    B -- Yes --> H[Ignore]
```
Pull Request #39: feat: implement Ctrl+X to cut lines in commit view

0 of 29 new or added lines in 1 file covered. (0.0%)

19 existing lines in 1 file now uncovered.

304 of 922 relevant lines covered (32.97%)

0.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

21.76
/internal/ui/commit_view.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc