From 51253b056474cf261c3b8c6af936f100d0aa39b5 Mon Sep 17 00:00:00 2001 From: sin Date: Thu, 9 Oct 2014 15:23:16 +0100 Subject: [PATCH] Add support a default association --- noice.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 {