GNOME Bugzilla – Bug 757540
Show timestamp info in right-click menu
Last modified: 2020-11-17 21:53: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.
Created attachment 314765 [details] [review] Show date&time in right-click menu, PoC
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 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.
I haven't received any feedback about the numbers in the right click menu. So probably no one would care about this.
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.
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.
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.
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 :-)