ctrl+click should open links
Bug #211079 reported by
Emilio Pozuelo Monfort
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Terminator |
Fix Released
|
High
|
hdanniel |
Bug Description
I've just read that in gnome-terminal you can open links with ctrl+click, without the need to go to the context menu: http://
I've tried it and that's so cool and so useful that I don't know why I didn't know about it... and I want it in terminator! =)
Changed in terminator: | |
importance: | Undecided → High |
milestone: | none → 1.0-beta |
status: | New → Triaged |
Changed in terminator: | |
assignee: | pochu → nobody |
Changed in terminator: | |
assignee: | nobody → hdanniel |
Changed in terminator: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
You could add this on the top of the on_vte_press_button function:
# Left mouse button and CTRL on a url should open a browser window CONTROL_ MASK match_check (int (event.x / self._vte. get_char_ width ()), int (event.y / self._vte. get_char_ height ())) 'email' ]):
mask = gtk.gdk.
if (event.state & mask) == mask:
if event.button == 1:
url = self._vte.
if url:
if (url[0][0:7] != "mailto:") & (url[1] == self.matches[
address = "mailto:" + url[0]
else:
address = url[0]
openurl ( address )
return False
It only works with http:// ... links, same behaviour as the "Open Link" option in the context menu.