shell-pool / shell-pool/shpool
feat: Prepend session name to terminal title
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 https://github.com/shell-pool/shpool/issues/288 would make this possible.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).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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