Palette: add channel-context actions (open repo, restart ttyd, copy upload path) #17
Labels
No labels
bug
docs
enhancement
good first issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pedromcaraujo/forge#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Moved from
pedromcaraujo/nixos#82(originally migrated there from that repo'sTODO.md§ Forge). It belongs here — the code lives inweb/index.htmlandmodules/launcher.nix.State of play
The original issue asked to "extend the Alt+K palette to take actions". That
generic mechanism has since shipped —
web/index.html:532-537registers sixactions today, all tmux pane operations:
What's still missing
None of the three actions the original issue actually named exist. They're all
channel-context actions rather than pane operations, so they need the palette
to know things about the current channel that it doesn't track yet:
URL. Either derive it from
git -C <cwd> remote get-url originin thechannels.jsonsidecar, or add an optionalrepoUrlto the channelattrset in
modules/forge.nix.⟳keybar button, which only reconnects the client. This would need the
sidecar to
systemctl restartthe channel's ttyd unit, which means givingit a narrow polkit rule or a setuid-ish helper. Worth weighing whether it
earns that privilege.
uploadDir/<channel>is already known client-side. Needs a clipboard writethat works over OSC 52 in the browser terminal context.
Reasonable to land these independently — the third is nearly free, the first is
small, the second needs a privilege decision first.