Session templates with variables #11
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?
Context
A session is fully described by its GSettings keys (
docs/spec/session-model.md),and Duplicate (issue #8) covers "another one like that". The original plan's M7
listed session templates with variables as a further step.
What it would mean
A template is a session shape with holes in it: ssh to
${host}as${user},or podman exec into
${container}running${command}. Creating a session fromone asks for the holes and fills them in.
This is speculative — nobody has asked for it, and the two things it competes with
already exist:
lists ssh hosts from
~/.ssh/configand containers from the installed runtimes(
docs/spec/session-types.md), so ssh to a host needs no template.Before building it, write down a case that neither of those covers. If none
exists, close this.
If it is built
do not overload the session schema with an "is a template" flag, or every query
has to remember to exclude them;
${name}in any string field, with a declared list of variable namesand prompts so the dialog can be built from the template rather than by scanning
for
${...};re-derived from its template afterwards. Live templates mean deciding what
happens to sessions when the template changes, and that is a much larger
feature;
back — so nothing else in the codebase needs to know templates exist.
Acceptance criteria
the result is indistinguishable from a hand-made session.
terminalkoctl list, not in the agent's autostart set.docs/spec/gains a spec for it, written before the code asCONTRIBUTING.mdrequires.Notes
already exist.