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 757541 - Show Unicode codepoint in right-click menu
Show Unicode codepoint in right-click menu
Status: RESOLVED WONTFIX
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:27 UTC by Egmont Koblinger
Modified: 2017-10-22 17:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Show character info in right-click menu, PoC (9.04 KB, patch)
2015-11-03 20:31 UTC, Egmont Koblinger
needs-work Details | Review

Description Egmont Koblinger 2015-11-03 20:27:55 UTC
Let's see if this is useful.
Comment 1 Egmont Koblinger 2015-11-03 20:31:24 UTC
Created attachment 314766 [details] [review]
Show character info in right-click menu, PoC

Strictly proof of concept.

Doesn't work on the right half of CJK, or with combining characters. With the latter the goal would be to list all the codepoints. This requires to reimplement using vte_terminal_get_text_range() (or a similar method) rather than the regex engine.

The patch goes on top of bug 757540's patch, just to avoid conflicts and be able to test both at the same time.
Comment 2 Christian Persch 2015-11-18 19:29:14 UTC
We should add a public method to get from event coords to absolute grid coords, which you can then use with get_text_range to get the full string, I think.

Also, if we're going to start adding more of these entries in the context menu, we should add a way to en/dis-able them individually?
Comment 3 Egmont Koblinger 2015-11-18 20:01:10 UTC
I'm not sure what's the direction we'd like to take here. If it wasn't Gnome but more of a hackers' terminal, I'd go for some plugin system.

For now, I guess I'm fine with what we already have, and have these two patches just sit here in the bugtracker for a couple of years as nice proof of concepts :)
Comment 4 Egmont Koblinger 2015-12-08 18:53:51 UTC
In the last month or so, g-t crashed for me twice when I right-clicked on an empty area. I suspect this patch.
Comment 5 Christian Persch 2015-12-08 20:13:06 UTC
Same as in bug 758501 for testvte:

  matches = g_newa (char *, n_extra_regexes);

Need to use set the members to NULL before calling vte_terminal_event_check_regex_simple().
Comment 6 Christian Persch 2017-10-22 17:04:18 UTC
Comment on attachment 314766 [details] [review]
Show character info in right-click menu, PoC

Needs to be updated for gmenu, if you still think we should have this. Or close this bug.
Comment 7 Egmont Koblinger 2017-10-22 17:20:24 UTC
This patch was imperfect, caused a crash. Plus, I haven't received any feedback about the numbers in the right click menu. So probably no one would care about this.