added HTML support
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 12 May 2015 10:42:46 +0000 (13:42 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 12 May 2015 10:42:46 +0000 (13:42 +0300)
src/main/java/eu/svjatoslav/instantlauncher/FileAssociationManager.java

index b4ca9ab..dbe65f7 100755 (executable)
@@ -60,7 +60,7 @@ public class FileAssociationManager {
        private static final String FILE_INDICATOR = "<FILE>";
 
        private static final String[] TEXT_EDITOR_PATTERN = new String[] {
-               "emacsclient", "-a", "\"\"", "-c", FILE_INDICATOR };
+                       "emacsclient", "-a", "\"\"", "-c", FILE_INDICATOR };
 
        private static final String DOCUMENT_EDITOR = "lowriter";
 
@@ -136,6 +136,12 @@ public class FileAssociationManager {
                extensionToApplication.put("out", new String[] { "glogg",
                                FILE_INDICATOR });
 
+               extensionToApplication.put("html", new String[] { "google-chrome",
+                               FILE_INDICATOR });
+
+               extensionToApplication.put("htm", new String[] { "google-chrome",
+                               FILE_INDICATOR });
+
        }
 
 }