Repository navigation
Replies: 1 comment
|
I'm going to pass on all four. An overlay covers its session, that's what makes it an overlay: while it's shown, the keys go to the panel, and the area around a floating panel catches clicks so they can't reach the terminal. The sidebar and other sessions stay usable. What you describe is a panel that sits next to a working terminal, which is a different thing, and two existing ones fit it, see below. that's why passive panel in a corner: the HUD with a markdown file. It takes no keyboard and no clicks except ⌘-click on a link, and a text bar renders fine: printf '**build** `████████░░` 80%% \n14.1 MB/s · ETA 0:25\n' > progress.md
agtermctl session hud open --file progress.md --markdown --position top-right
# your script runs this after each rewrite of progress.md
agtermctl session hud update --file progress.md --markdown --position top-rightwithout live HTML page beside the terminal: put it in a narrow split pane. Opening a page on the unfocused pane leaves the keyboard in the terminal. Clicking the page gives it focus, clicking the top terminal takes it back, and the dimmed pane shows which side has the keys: agtermctl session split on --axis horizontal
agtermctl session resize --split-ratio 0.85
agtermctl session focus top
agtermctl session overlay open --pane bottom --html progress.html --chromeless --js
|
Uh oh!
There was an error while loading. Please reload this page.
What I am trying to do
I show a small live status page (a progress bar for a long job: percent, speed, ETA) as a floating
session overlay open --html FILE --js --size-percent N --width PT --height PTpanel over the sessionwhere an agent is working, and keep typing in that session while the job runs.
What gets in the way
being read. There is no way to place it in a corner or edge.
it (we shrink it with
session overlay resizeto a small pill) or close it.the user clicks back.
The HUD has the anchoring (
--position, nine anchors) and stays passive, but it is markdown-only, so itcannot draw a live bar driven by a script, and it is not interactive (no collapse or close button).
Proposal
--position <anchor>onsession overlay open/session overlay resizefor floating panels, with thesame nine anchors the HUD accepts (
top-left…bottom-right, defaultcenteras today), plus anoptional margin.
tree --jsonso a caller can restore it.--no-focus(or--passive) flag that opens a floating panel without moving keyboard focus from theterminal; a click on the panel would still focus it.
session.overlay.open/.resizewithposition), so apage can move itself to a corner when collapsed.
Environment
agterm 0.41.1, macOS 15.
All reactions