aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-23 23:12:54 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-04-23 23:31:08 +0530
commit00aaee9ff16fba929b8ec629810640b567d78591 (patch)
tree32d80990deda06a66f75ce65e8a68e49f74658fe /config.def.h
parentff18d580c5e3e877e63e819d87af60128931d17d (diff)
downloadnnn-00aaee9ff16fba929b8ec629810640b567d78591.tar.gz
nlay - a highly customizable file handler
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/config.def.h b/config.def.h
index 689aab5..28771bf 100644
--- a/config.def.h
+++ b/config.def.h
@@ -11,18 +11,15 @@ static int showhidden = 0; /* Set to 1 to show hidden files by default */
static int showdetail = 0; /* Set to show additional file info */
static char *idlecmd = "rain"; /* The screensaver program */
-struct assoc assocs[] = {
- { "\\.(c|cpp|h|txt|log|sh)$", "vi" },
- { "\\.(avi|mp4|mkv|3gp|mov)$", "mpv" },
- { "\\.(wma|mp3|ogg|flac|m4a)$", "mpv" },
- { "\\.(png|jpg|gif)$", "viewnior" },
- //{ "\\.(html|svg)$", "firefox" },
- { "\\.pdf$", "zathura" },
- //{ "\\.sh$", "sh" },
- //{ ".", "less" },
+static struct assoc assocs[] = {
+ { "\\.(c|cpp|h|log|md|py|sh|txt)$", "text" },
+ { "\\.(3g2|3gp|asf|avi|divx|flv|m2v|m4v|mkv|mov|mp4|mp4v|mpeg|mpg|ogv|qt|rm|rmvb|vob|webm|wmv)$", "video" },
+ { "\\.(aac|ac3|amr|flac|m4a|m4b|m4p|mp3|mp4a|ogg|opus|ra|wav|wma)$", "audio" },
+ { "\\.(bmp|gif|jpeg|jpg|pbm|pgm|png|svg|tiff|webp)$", "image" },
+ { "\\.pdf$", "pdf" },
};
-struct key bindings[] = {
+static struct key bindings[] = {
/* Quit */
{ 'q', SEL_QUIT, "", "" },
{ 'Q', SEL_CDQUIT, "", "" },