GNOME Bugzilla – Bug 579859
Allow adding matchers
Last modified: 2021-06-10 19:56:57 UTC
I like to be able to configure g-t to link "bug 12345" to http://bugzilla.gnome.org/show_bug.cgi?id=12345 I think we should let people add matchers to a profile. Can have to syntaxes: - Simple. Using the firefox keyword syntax. That is, you enter the following: MATCH: bug %s DESTINATION: http://bugzilla.gnome.org/show_bug.cgi?id=%s Any char after % other than % itself will work. So you can use %1 and %2 to match two). Internally we'll rewrite this as a regex. Each %s will match one word according to the currently set word chars. Or something like this. - Regex. Using captures. So: MATCH: bug #?\([0-9]+\) DESTINATION: http://bugzilla.gnome.org/show_bug.cgi?id=\1 The simple case may actually be harder to implement, so we may ditch it. If multiple matches match, one of the following policies should be used: - First - Longest I think vte does Longest now. Which would be fine.
Good idea. We need to add new API to vte to get the GMatchInfo for the current match. I'm not sure it needs to be a per-profile thing instead of global?
(In reply to comment #1) > Good idea. > > We need to add new API to vte to get the GMatchInfo for the current match. Right. > I'm not sure it needs to be a per-profile thing instead of global? Either way works for me. Though I can imagine scenarios where per-profile comes handy.
*** Bug 590357 has been marked as a duplicate of this bug. ***
There's to be an UI for this?
*** Bug 695700 has been marked as a duplicate of this bug. ***
*** Bug 709087 has been marked as a duplicate of this bug. ***
Related in gitlab: https://gitlab.gnome.org/GNOME/gnome-terminal/issues/43
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/6830.