shell-pool / shell-pool/shpool

feat: Prepend session name to terminal title

Open
#287 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2k
Forks
67
Avg merge
3d 1h
Merged PRs (30d)
15

Description

Before trying shpool, I used screen to keep long-running commands around. I used screen's hardstatus to prepend the session name to the terminal title, so I could easily jump to the correct tab. I use a basic hardstatus string like "[%S] %h" (%Sis the session name and%h` is the original title).

It would be nice if shpool could do something similar, which would be in line with the existing prompt_prefix.

I tried to do this for shpool using fish_title, but it doesn't work well when re-attaching to a session with a long-running command. Since fish only updates the title when you hit a prompt, the title gets stuck on the last command you ran (i.e. shpool attach foo). https://github.com/shell-pool/shpool/issues/288 would make this possible.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing prompt_prefix implementation and shpool's session attach and terminal-title handling. Define how the session name should be prepended without breaking the original title, then verify that titles remain correct when attaching to sessions running long-lived commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.