Add scratchpad tabs to workspace tab strip#727
Closed
jacodv wants to merge 1 commit into
Closed
Conversation
A scratchpad is a new tab kind alongside terminal tabs: a full-pane plain-text editor (NSTextView with undo, find bar, and the standard macOS text features) with no Ghostty surface, split tree, or zmx session. Created from a note.text button next to the "+" in the tab bar, the File menu, or the rebindable New Scratchpad shortcut. - TerminalTabItem.Kind (.terminal / .scratchpad) with kind-aware createTab on TerminalTabManager - WorktreeTerminalState owns scratchpadContents, emits surface-less tab projections so the tab-bar row renders, and guards every surface-minting path (focus, split tree) against scratchpad tabs - Text persists in the layout snapshot (kind + scratchpadText fields, decodeIfPresent so legacy layouts and future kinds degrade safely); edits ride the existing debounced markLayoutDirty flush - WINDOW surface context now goes to the first terminal tab, not blindly to index 0, so scratchpad-first workspaces stay correct - New Scratchpad registered in AppShortcuts (default option-cmd-T, rebindable, Ghostty-unbound, conflict-checked)
|
Thanks for the pull request. It doesn't meet the contribution policy yet, so I've labeled it
Nothing needs to be redone. A pull request left |
Collaborator
|
Just a note: the contribution guidelines are clear. Please do not send PRs for issues that have not been marked as |
Author
|
Apologies.
I did not think to first check if policies were in place. I thought I
could help improve your product. The hostile nature of your responses here
makes me reconsider if I am at all interested in using Supacode; I'd rather
make do with what is already available.
…On Sat, 25 Jul 2026 at 01:29, Stefano Bertagno ***@***.***> wrote:
*sbertix* left a comment (supabitapp/supacode#727)
<#727 (comment)>
Just a note: the contribution guidelines are clear. Please do not send PRs
for issues that have not been marked as ready. I understand that some
bugs may require a quick fix, but that is *never* the case for feature
requests.
—
Reply to this email directly, view it on GitHub
<#727?email_source=notifications&email_token=ABMLO35L4YFO3YW6CJKDNP35GPWOTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBXGU2TINBTGAZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5075544303>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMLO33VKMWJZTU6BMF45K35GPWOTAVCNFSNUABGKJSXA33TNF2G64TZHMYTCMZZGE3DQMBUGA5US43TOVSTWNBZGY4TSOBYGY3DNILWAI>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/ABMLO36NUX33CY3QV7MO33T5GPWOTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBXGU2TINBTGAZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/ABMLO37TPOF3XYYM6O2UZMT5GPWOTA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMBXGU2TINBTGAZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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 #726
Summary
Adds a scratchpad as a new tab kind alongside terminal tabs in the workspace tab strip: a full-pane plain-text editor (NSTextView with undo, find bar, and the standard macOS text features) with no Ghostty surface, split tree, or zmx session. Created from a note button next to "+" in the tab bar, the File menu, or the rebindable New Scratchpad shortcut (default ⌥⌘T).
TerminalTabItem.Kind(.terminal/.scratchpad) with kind-awarecreateTabonTerminalTabManagerWorktreeTerminalStateownsscratchpadContents, emits surface-less tab projections so the tab-bar row renders, and guards every surface-minting path (focus, split tree) against scratchpad tabskind+scratchpadTextfields,decodeIfPresentso legacy layouts and future kinds degrade safely); edits ride the existing debouncedmarkLayoutDirtyflushAppShortcuts(rebindable, Ghostty-unbound, conflict-checked)Type of change
ready)How was this tested?
make checkpasses (format + lint)make testpasses (includes newScratchpadTabTestscovering tab creation, surface guards, and snapshot round-tripping)AI tool disclosure (optional)
Checklist
Closes #above.ready(Scratchpad tabs in the workspace tab strip #726 is awaiting maintainer triage).🤖 Generated with Claude Code