From 99f54cdfef395bb3de1c7b8dd422412de65b038d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Chocholat=C3=BD?= Date: Sat, 21 Dec 2024 18:04:53 +0100 Subject: [PATCH] yazi: fix example option for settings --- modules/programs/yazi.nix | 4 ++-- tests/modules/programs/yazi/settings-expected.toml | 2 +- tests/modules/programs/yazi/settings.nix | 4 ++-- tests/modules/programs/yazi/theme-expected.toml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/programs/yazi.nix b/modules/programs/yazi.nix index 9c47345f..314c4c5e 100644 --- a/modules/programs/yazi.nix +++ b/modules/programs/yazi.nix @@ -109,7 +109,7 @@ in { }; manager = { show_hidden = false; - sort_by = "modified"; + sort_by = "mtime"; sort_dir_first = true; sort_reverse = true; }; @@ -134,7 +134,7 @@ in { { fg = "#7AD9E5"; mime = "image/*"; } { fg = "#F3D398"; mime = "video/*"; } { fg = "#F3D398"; mime = "audio/*"; } - { fg = "#CD9EFC"; mime = "application/x-bzip"; } + { fg = "#CD9EFC"; mime = "application/bzip"; } ]; }; } diff --git a/tests/modules/programs/yazi/settings-expected.toml b/tests/modules/programs/yazi/settings-expected.toml index 678895c5..731f9add 100644 --- a/tests/modules/programs/yazi/settings-expected.toml +++ b/tests/modules/programs/yazi/settings-expected.toml @@ -3,6 +3,6 @@ enabled = false [manager] show_hidden = false -sort_by = "modified" +sort_by = "mtime" sort_dir_first = true sort_reverse = true diff --git a/tests/modules/programs/yazi/settings.nix b/tests/modules/programs/yazi/settings.nix index 8c44870a..32b8a9d5 100644 --- a/tests/modules/programs/yazi/settings.nix +++ b/tests/modules/programs/yazi/settings.nix @@ -42,7 +42,7 @@ log = { enabled = false; }; manager = { show_hidden = false; - sort_by = "modified"; + sort_by = "mtime"; sort_dir_first = true; sort_reverse = true; }; @@ -64,7 +64,7 @@ } { fg = "#CD9EFC"; - mime = "application/x-bzip"; + mime = "application/bzip"; } ]; }; diff --git a/tests/modules/programs/yazi/theme-expected.toml b/tests/modules/programs/yazi/theme-expected.toml index cfd1e985..3bdc5367 100644 --- a/tests/modules/programs/yazi/theme-expected.toml +++ b/tests/modules/programs/yazi/theme-expected.toml @@ -12,4 +12,4 @@ mime = "audio/*" [[filetype.rules]] fg = "#CD9EFC" -mime = "application/x-bzip" +mime = "application/bzip"