microsoft / microsoft/terminal

Notification after a long running command finishes

Open
#6,372 2 comments 59 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Extensibility In-PR Issue-Feature Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

Description of the new feature/enhancement

It would be awesome to add an option for a notification bubble or sound after a long running command. Long running command can be configurable but a sane default could be 10 seconds.

The scenario for this would to switch users from a pull to push model. Without notifications, a user would have to constantly "pull" their terminal to see if their command is done. Switching to push removes the cognitive overhead of having to constantly pull and instead be pushed only once the command is done running.

Current workarounds

  • Run a script that creates a notification after the command is done: long_command; notification.py

Extra asks

Beyond allowing for notifications, it would also be helpful if users were provided a hook. Here are some scenarios the hook can cover:

  • Hitting an API to report the run length of the command (Useful for engineering systems)
  • Changing the color of your smart LEDs (Think of all the things Makers could do!)
  • Context aware notifications (If the script name contains 'foo' then do then, otherwise do that

Other Terminal support

Proposed technical implementation details (optional)

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

The issue names no files, tests, or entry points. Start by reviewing the requested configurable threshold, notification behavior, and optional hook scenarios, then compare them with the linked iTerm shell-integration reference. Done should mean an agreed scope for completion notifications and hooks, including how the threshold is configured.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.