summary refs log tree commit diff
path: root/url.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--url.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/url.c b/url.c
index a398778..b62baba 100644
--- a/url.c
+++ b/url.c
@@ -24,9 +24,19 @@
 #include "chat.h"
 
 static const char *Schemes[] = {
-	"https:",
-	"http:",
+	"cvs:",
 	"ftp:",
+	"git:",
+	"http:",
+	"https:",
+	"irc:",
+	"ircs:",
+	"magnet:",
+	"sftp:",
+	"ssh:",
+	"svn:",
+	"telnet:",
+	"vnc:",
 };
 static const size_t SchemesLen = sizeof(Schemes) / sizeof(Schemes[0]);
 
@@ -81,8 +91,7 @@ void urlOpenMatch(struct Tag tag, const char *substr) {
 		struct Entry entry = ringEntry(i);
 		if (!entry.url || entry.tag != tag.id) continue;
 		if (!strstr(entry.url, substr)) continue;
-		char *argv[] = { "open", entry.url, NULL };
-		eventPipe(argv);
+		eventPipe((char *[]) { "open", entry.url, NULL });
 		break;
 	}
 }
btle.vim?id=e66ec893810453c0ea4be3a51fb4d7a955978590&follow=1'>Highlight rubyDefine as StructureJune McEnroe 2016-08-23Remove scroll bindings from nvim configJune McEnroe 2016-08-17Highlight Search with black foregroundJune McEnroe 2016-08-15Remove gruvboxJune McEnroe 2016-08-04Remove march from SSH configJune McEnroe 2016-08-01Disable tab indicators in iTermJune McEnroe 2016-07-30Color PreProc DarkGreenJune McEnroe 2016-07-29Color Structure and Typedef in grayJune McEnroe 2016-07-27Color comments DarkBlue and LightBlueJune McEnroe 2016-07-27Color macros in yellowJune McEnroe 2016-07-26Colorscheme colors and schemesJune McEnroe 2016-07-26Add ''subtle'' colorschemeJune McEnroe 2016-07-26Add htoprcJune McEnroe 2016-07-24Add may and refactor ssh configJune McEnroe 2016-07-18Disable cursorlineJune McEnroe 2016-07-18Use hard constrast gruvbox darkJune McEnroe 2016-07-15Remove vim configurationJune McEnroe 2016-07-15Add readline to README configurations listJune McEnroe 2016-07-15Add vendor script to READMEJune McEnroe 2016-07-15Pull latest pathogen and gruvboxJune McEnroe