]> Sergey Matveev's repositories - nnn.git/commitdiff
Add support a default association
authorsin <sin@2f30.org>
Thu, 9 Oct 2014 14:23:16 +0000 (15:23 +0100)
committersin <sin@2f30.org>
Thu, 9 Oct 2014 14:24:39 +0000 (15:24 +0100)
noice.c

diff --git a/noice.c b/noice.c
index 7904367481bcf1c8aeaf1190cd8c83953879e633..a1d488f4984b535011c0b79dbe363e8ae23781ce 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -42,11 +42,12 @@ struct assoc {
 
 /* Configuration */
 struct assoc assocs[] = {
-       { ".(avi|mp4|mkv|mp3|ogg)$", "mplayer" },
-       { ".srt$", "less" },
-       { ".txt$", "less" },
-       { ".sh$", "sh" },
+       { "\\.(avi|mp4|mkv|mp3|ogg)$", "mplayer" },
+       { "\\.srt$", "less" },
+       { "\\.txt$", "less" },
+       { "\\.sh$", "sh" },
        { "^README$", "less" },
+       { ".*", "less" },
 };
 
 struct entry {