From: sin Date: Thu, 9 Oct 2014 14:23:16 +0000 (+0100) Subject: Add support a default association X-Git-Tag: v1.0~92^2~239 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=51253b056474cf261c3b8c6af936f100d0aa39b5;p=nnn.git Add support a default association --- diff --git a/noice.c b/noice.c index 79043674..a1d488f4 100644 --- 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 {