warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.37k stars 338 forks source link

Show/Hide timestamps of each line in terminal (not just commands) #4675

Open ghprince opened 3 months ago

ghprince commented 3 months ago

Discord username (optional)

No response

Describe the solution you'd like?

I've noticed people raised feature request about showing timestamp and most of them are marked closed because it can be achieved by using Warp's custom prompt.

However my use case is a bit different, I hope Warp can support iTerm2-like timestamps (Cmd+Shift+E in iTerm2 to turn on/off).

The major difference is iTerm2 doesn't show timestamp when command is run, but rather when a line is printed out (or rendered) in the terminal window.

Check the screenshot.

Screenshot 2024-04-02 at 5 39 29 PM

One major benefit of this is that, when debugging some long running tasks, we normally switch to work on something else and then comes back, with this feature it is super easy to know at what time each step is completed and we can calculate the time duration of each step accordingly for debug purpose.

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

No response

Additional context

No response

How important is this feature to you?

2

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

None

dannyneira commented 3 months ago

hey @ghprince Thanks for submitting. As a possible stopgap, you can add the timestamp to Warps prompt or use a custom prompt (starship.rs in my example) to add the timestamp. There is a related request here https://github.com/warpdotdev/Warp/issues/3975

https://github.com/warpdotdev/Warp/assets/16809145/bdcc499b-7ce0-4b09-98a8-59271aed5d4b

To anyone else interested in this feature, please add a 👍 to the original post at the top to signal that you want this feature, and subscribe if you'd like to be notified.

ghprince commented 3 months ago

Hi @dannyneira thx a lot for your reply. Yeah, I've started to use custom prompt as stopgap. But I still miss the capability when debugging long running tasks. Hope this feature will get enough upvotes to get prioritized :)