mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Add support a default association
This commit is contained in:
parent
0e2ea28a30
commit
51253b0564
9
noice.c
9
noice.c
|
@ -42,11 +42,12 @@ struct assoc {
|
||||||
|
|
||||||
/* Configuration */
|
/* Configuration */
|
||||||
struct assoc assocs[] = {
|
struct assoc assocs[] = {
|
||||||
{ ".(avi|mp4|mkv|mp3|ogg)$", "mplayer" },
|
{ "\\.(avi|mp4|mkv|mp3|ogg)$", "mplayer" },
|
||||||
{ ".srt$", "less" },
|
{ "\\.srt$", "less" },
|
||||||
{ ".txt$", "less" },
|
{ "\\.txt$", "less" },
|
||||||
{ ".sh$", "sh" },
|
{ "\\.sh$", "sh" },
|
||||||
{ "^README$", "less" },
|
{ "^README$", "less" },
|
||||||
|
{ ".*", "less" },
|
||||||
};
|
};
|
||||||
|
|
||||||
struct entry {
|
struct entry {
|
||||||
|
|
Loading…
Reference in a new issue