From c3d4f91952f702e967fe6e562616122802a3450a Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 27 May 2025 13:52:28 +0200 Subject: [PATCH] home/yazi: init --- home/home.nix | 1 + home/programs/yazi.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 home/programs/yazi.nix diff --git a/home/home.nix b/home/home.nix index 4431b0c..99db4cd 100644 --- a/home/home.nix +++ b/home/home.nix @@ -45,6 +45,7 @@ in { ./programs/thunderbird.nix ./programs/tmux ./programs/uv.nix + ./programs/yazi.nix ./programs/yt-dlp.nix ./programs/zoxide.nix ./programs/zsh diff --git a/home/programs/yazi.nix b/home/programs/yazi.nix new file mode 100644 index 0000000..61af9c1 --- /dev/null +++ b/home/programs/yazi.nix @@ -0,0 +1,22 @@ +{ ... }: +{ + programs.yazi = { + enable = true; + keymap = { + manager.prepend_keymap = [ + { + run = "quit --no-cwd-file"; + on = [ "" ]; + desc = "Quit without outputting cwd-file"; + } + ]; + pick.prepend_keymap = [ + { + run = "close"; + on = [ "" ]; + desc = "Quit without submitting the picker"; + } + ]; + }; + }; +}