noice

small file browser
git clone git://git.2f30.org/noice
Log | Files | Refs | README | LICENSE

commit 51253b056474cf261c3b8c6af936f100d0aa39b5
parent 0e2ea28a3097ed98c96042cd32dc6d7ef72abc7b
Author: sin <sin@2f30.org>
Date:   Thu,  9 Oct 2014 15:23:16 +0100

Add support a default association

Diffstat:
Mnoice.c | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git 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 {