warpdotdev / warpdotdev/warp

Display human-friendly desktop notifications for long-running commands

Open
#4,078 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement triaged
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Describe the solution you'd like?

Desktop notifications for long-running commands could be more human-friendly.
For instance, notification may be finished after 11 minutes and 1 second or finished after 11 m 1 s instead of finished after 666s).

See this library for a human-friendly format suggestion:
https://docs.rs/humantime/latest/humantime/fn.format_duration.html

Is your feature request related to a problem? Please describe.

When I received notification for long-running commands (like brew update or port upgrade outdated on my 10-year-old laptop 🐌), I often don't know the duration because I can't calculate seconds to minutes (or hours 😅) in my head:
Screenshot 2024-01-17 at 07 02 21

Here is a "fake" shell command that triggers a finished after 999s notification:

echo "Simulating a long-running command like 'brew update' or 'port upgrade outdated' on my 10-year-old laptop! 😅 " && sleep 999

finished after 30 s

👌

finished after 61 s

🤔

finished after 666 s

🙀

finished after 999 s

😵

How important is this feature to you?

1 (Not too important)

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

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 locating the desktop notification code for completed long-running commands and compare its duration formatting with humantime::format_duration. Use the provided sleep 999 shell command to trigger a notification; done means durations such as 666 seconds are shown in a human-friendly minutes-and-seconds format.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.