Repository navigation
Terminal: a right-click menu that fits, Backspace deletes a selection (#44) - #46
Merged
Merged
Conversation
…ection (#44) - Right-click over a link offers Copy link, with text marked offers Copy; Close tab leaves the terminal's menu (the tab's own menu keeps it). - Backspace or Delete over a selection on the line being edited deletes it, by the presses a user would make (core, so Prism's terminals too). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
github-actions Bot
pushed a commit
that referenced
this pull request
Sep 23, 2026
…ection (#44) (#46) - Right-click over a link offers Copy link, with text marked offers Copy; Close tab leaves the terminal's menu (the tab's own menu keeps it). - Backspace or Delete over a selection on the line being edited deletes it, by the presses a user would make (core, so Prism's terminals too). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #44. Owner, 2026-09-23.
The right-click menu fits what was clicked (this app's menu):
writeClipboard), like command help.Backspace deletes a selection (in
core/, so this is a change to Prism's terminals too):core/renderer/lib/termSelectionEdit.ts;termContextAt(core, read-only) answers what is under a point, which Prism's menu can use after the bump.Versions: app 0.12.0 -> 0.13.0, core 0.10.0 -> 0.11.0.
Tests
termSelectionEdit.test.ts(gate, end/middle/backwards selections, trailing cells, wide characters, application cursor keys,linkAt). 882 passed; typecheck; lint 0 errors.selectionEdit, real pwsh, real drag and keys: Backspace over a selected word at the end, and in the middle; a selection in old output leaves Backspace to the shell; right-click on a link shows Copy link first and copies it (read back in main); plain text offers no Copy; marked text offers Copy and copies it exactly; no Close tab. Fails on the old code.dropAndMenunow asserts Close tab is absent.spawnonce ("an empty launch lands on the start screen"), as the first scenario right after a hung earlier run's processes were killed; it passes on a rerun, on this branch and on main.🤖 Generated with Claude Code