From 117975b88b2d20f10037a3443271237fca8fd1b5 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Fri, 24 Jan 2025 19:08:51 +0800 Subject: [PATCH] docs: add `lsblk` as a dependency for `mount.yazi` --- mount.yazi/README.md | 6 +++--- mount.yazi/main.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mount.yazi/README.md b/mount.yazi/README.md index 149e460..d1749f3 100644 --- a/mount.yazi/README.md +++ b/mount.yazi/README.md @@ -7,7 +7,7 @@ A mount manager for Yazi, providing disk mount, unmount, and eject functionality Supported platforms: -- Linux with `udisksctl` +- Linux with [`udisksctl`](https://github.com/storaged-project/udisks) and [`lsblk`](https://github.com/util-linux/util-linux) - macOS with `diskutil` https://github.com/user-attachments/assets/c6f780ab-458b-420f-85cf-2fc45fcfe3a2 @@ -25,7 +25,7 @@ Add this to your `~/.config/yazi/keymap.toml`: ```toml [[manager.prepend_keymap]] on = "M" -run = 'plugin mount' +run = "plugin mount" ``` Available keybindings: @@ -37,7 +37,7 @@ Available keybindings: | j | | Move down | | l | | Enter the mount point | | m | - | Mount the partition | -| M | - | Unmount the partition | +| u | - | Unmount the partition | | e | - | Eject the disk | ## TODO diff --git a/mount.yazi/main.lua b/mount.yazi/main.lua index 5daa5d0..23a2c0f 100644 --- a/mount.yazi/main.lua +++ b/mount.yazi/main.lua @@ -43,7 +43,7 @@ local M = { { on = "", run = { "enter", "quit" } }, { on = "m", run = "mount" }, - { on = "M", run = "unmount" }, + { on = "u", run = "unmount" }, { on = "e", run = "eject" }, }, }