Skip to content

馃帹 Palette: Add selection stats to Scratchpad - #18

Closed
google-labs-jules[bot] wants to merge 1 commit into
masterfrom
palette-scratchpad-selection-stats-11449244988957597467
Closed

馃帹 Palette: Add selection stats to Scratchpad#18
google-labs-jules[bot] wants to merge 1 commit into
masterfrom
palette-scratchpad-selection-stats-11449244988957597467

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

This PR adds a "Selection Stats" feature to the Scratchpad Webview.
When a user selects text in the scratchpad, the footer now displays the number of selected characters (e.g., "100 chars, 5 lines (10 selected)").

This improves UX by mimicking VS Code's native status bar behavior for text selection.

Changes:

  • Modified src/features/scratchpad/scratchpad.html to calculate and display selection length.
  • Added event listeners for real-time updates on selection changes.

Verification:

  • Verified using a Playwright script that mocks acquireVsCodeApi and checks the footer text updates correctly upon selection.

PR created automatically by Jules for task 11449244988957597467 started by @Sisyphean-a

- Update scratchpad footer to display character count of selected text
- Add event listeners (mouseup, keyup, focus) to trigger status updates
- Improve accessibility by providing more context on text selection
@google-labs-jules

Copy link
Copy Markdown
Contributor Author

馃憢 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 馃憖 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@Sisyphean-a
Sisyphean-a deleted the palette-scratchpad-selection-stats-11449244988957597467 branch January 25, 2026 13:12
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