README.md | 4 ++-- config.def.h | 2 +- nnn.1 | 2 +- diff --git a/README.md b/README.md index 5037d235c87dedf455961220fc36c10019c8eb36..a366436f0b4dc361a75fbd6d817282ebdb345897 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ export NNN_OPENER=gvfs-open - Selective file associations (ignored if `NNN_OPENER` is set): - Associate plain text files with vi (using `file` command) - Remove video file associations (to each his own favourite video player) - - Associate common audio mimes with lightweight [fmedia](http://fmedia.firmdev.com/) + - Associate common audio mimes with mpv - Associate PDF files with [zathura](https://pwmt.org/projects/zathura/) - Use environment variable `NNN_FALLBACK_OPENER` to open other non-associated files - Removed `less` as default file opener (there is no universal standalone opener utility) @@ -166,4 +166,4 @@ Start nnn and use `Ctrl-k` to copy the absolute path (from `/`) of the file under the cursor to clipboard. ### Change file associations -If you want to set custom applications for certain mime types, or change the ones set already (e.g. vi, fmedia, zathura), modify the `assocs` structure in [config.def.h](https://github.com/jarun/nnn/blob/master/config.def.h) (it's easy). Then re-compile and install. +If you want to set custom applications for certain mime types, or change the ones set already (e.g. vi, mpv, zathura), modify the `assocs` structure in [config.def.h](https://github.com/jarun/nnn/blob/master/config.def.h) (it's easy). Then re-compile and install. diff --git a/config.def.h b/config.def.h index bbde21a45fc11e5e2044d7200eb446dda788517d..a07c2154273b89dbe639cfaee1b4b5a87425c2d1 100644 --- a/config.def.h +++ b/config.def.h @@ -13,7 +13,7 @@ struct assoc assocs[] = { //{ "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mpv" }, { "\\.(c|cpp|h|txt|log|sh)$", "vi" }, - { "\\.(wma|mp3|ogg|flac)$", "fmedia" }, + { "\\.(wma|mp3|ogg|flac)$", "mpv" }, //{ "\\.(png|jpg|gif)$", "feh" }, //{ "\\.(html|svg)$", "firefox" }, { "\\.pdf$", "zathura" }, diff --git a/nnn.1 b/nnn.1 index 5f432d75f967c3d3f45f3fc2231bb5a87ee38d1b..632298ba62ccfc500eb046ae1ae206405bcb96a9 100644 --- a/nnn.1 +++ b/nnn.1 @@ -128,7 +128,7 @@ .Bd -literal ----------------------------------------------- struct assoc assocs[] = { { "\\.(c|cpp|h|txt|log|sh)$", "vi" }, - { "\\.(wma|mp3|ogg|flac)$", "fmedia" }, + { "\\.(wma|mp3|ogg|flac)$", "mpv" }, { "\\.pdf$", "zathura" }, }; -----------------------------------------------