After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757540 - Show timestamp info in right-click menu
Show timestamp info in right-click menu
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
git master
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-03 20:01 UTC by Egmont Koblinger
Modified: 2020-11-17 21:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Show date&time in right-click menu, PoC (8.75 KB, patch)
2015-11-03 20:02 UTC, Egmont Koblinger
none Details | Review
Show date&time in right-click menu, PoC (7.84 KB, patch)
2020-11-17 14:12 UTC, Egmont Koblinger
none Details | Review

Description Egmont Koblinger 2015-11-03 20:01:45 UTC
Make right-click on a Unix timestamp show the human-readable date&time.

Not sure how useful it is, or just one of the gazillion ideas that could be implemented.  iTerm2 (nightly) has this by the way.
Comment 1 Egmont Koblinger 2015-11-03 20:02:50 UTC
Created attachment 314765 [details] [review]
Show date&time in right-click menu, PoC
Comment 2 Christian Persch 2015-11-18 19:32:14 UTC
I'm not sure how useful this is, either :-)  Personally, I don't think I've seen many unix timestamps in the terminal, and if I really needed to convert one once, I'd just use date(1)…
Comment 3 Christian Persch 2017-10-22 17:03:54 UTC
Comment on attachment 314765 [details] [review]
Show date&time in right-click menu, PoC

Needs to be updated for gmenu, if you still think we should have this. Or close this bug.
Comment 4 Egmont Koblinger 2017-10-22 17:20:57 UTC
I haven't received any feedback about the numbers in the right click menu. So probably no one would care about this.
Comment 5 Egmont Koblinger 2020-11-17 14:12:52 UTC
Created attachment 374324 [details] [review]
Show date&time in right-click menu, PoC

This feature comes handy for me nowadays, so here's an updated patch.
Comment 6 Christian Persch 2020-11-17 20:47:19 UTC
Thanks! Seems small enough not to hurt to put it in g-t propert, but since I'm not sure it's something useful for most people, I've put it behind a (hidden) setting.
Comment 7 Egmont Koblinger 2020-11-17 21:04:19 UTC
Cool, thanks a lot :-)

I didn't mean to get it included, just posted the patch as a backup, or for anyone who might be interested... which is probably nobody except for me.

With the hidden config infrastructure in place, it might make sense to look at bug 757541 again. The regex approach probably wouldn't work, it should fetch the char from the ringview instead, and then walk through the vteunistr to display the info for each combining accent too. I'm not working with hairy Unicode stuff nowadays so I'm not personally interested in it atm. Maybe one day.
Comment 8 Christian Persch 2020-11-17 21:53:45 UTC
Right, this would need to fetch the info directly, not via regex. Not sure it's really suitable for display in the quite space-limited context menu, though. Let's just leave it until someone wants it and puts in the work :-)