877 | 877 |
vte.setVexpand(true);
|
878 | 878 |
//Search Properties
|
879 | 879 |
vte.searchSetWrapAround(gsSettings.getValue(SETTINGS_SEARCH_DEFAULT_WRAP_AROUND).getBoolean());
|
880 | |
if (checkVTEVersionNumber(0, 49)) {
|
|
880 |
if (checkVTEVersionNumber(VTE_VERSION_HYPERLINK[0], VTE_VERSION_HYPERLINK[1])) {
|
881 | 881 |
vte.setAllowHyperlink(true);
|
882 | |
trace("Custom hyperlinks enabled for VTE 0.49");
|
883 | 882 |
}
|
884 | 883 |
//URL Regex Experessions
|
885 | 884 |
try {
|
886 | |
if (checkVTEVersionNumber(0, 46)) {
|
|
885 |
if (checkVTEVersionNumber(VTE_VERSION_REGEX[0], VTE_VERSION_REGEX[1])) {
|
887 | 886 |
foreach (i, regex; compiledVRegex) {
|
888 | 887 |
int id = vte.matchAddRegex(cast(VRegex) regex, 0);
|
889 | 888 |
regexTag[id] = URL_REGEX_PATTERNS[i];
|
|
1735 | 1734 |
}
|
1736 | 1735 |
|
1737 | 1736 |
public void checkHyperlinkMatch(Event event) {
|
1738 | |
if (!checkVTEVersionNumber(0, 49)) return;
|
|
1737 |
if (!checkVTEVersionNumber(VTE_VERSION_HYPERLINK[0], VTE_VERSION_HYPERLINK[1])) return;
|
1739 | 1738 |
string uri = vte.hyperlinkCheckEvent(event);
|
1740 | 1739 |
if (uri.length == 0) return;
|
1741 | 1740 |
match.match = uri;
|
|
2401 | 2400 |
}
|
2402 | 2401 |
TerminalRegex regex = TerminalRegex(value[0], TerminalURLFlavor.CUSTOM, caseInsensitive, value[1]);
|
2403 | 2402 |
try {
|
2404 | |
if (checkVTEVersionNumber(0, 46)) {
|
|
2403 |
if (checkVTEVersionNumber(VTE_VERSION_REGEX[0], VTE_VERSION_REGEX[1])) {
|
2405 | 2404 |
VRegex compiledRegex = compileVRegex(regex);
|
2406 | 2405 |
if (compiledRegex !is null) {
|
2407 | 2406 |
int id = vte.matchAddRegex(compiledRegex, 0);
|