solorice/config/yazi/plugins/mount.yazi
Kristofers Solo 66f1040fc5
Update 2025-10-31
Update 2025-10-09

Update 2025-10-11

feat: add rose-pine gtk themes

Update 2025-10-16

Update 2025-10-23

Fix desktop niri

Update 2025-10-31
2025-10-31 12:13:54 +02:00
..
LICENSE fix(yazi): update plugins 2025-04-28 19:57:56 +03:00
main.lua Update 2025-10-31 2025-10-31 12:13:54 +02:00
README.md Update 2025-09-30 2025-09-30 17:42:40 +03:00

mount.yazi

A mount manager for Yazi, providing disk mount, unmount, and eject functionality.

Supported platforms:

  • Linux with udisksctl, lsblk and eject both provided by util-linux
  • macOS with diskutil, which is pre-installed

https://github.com/user-attachments/assets/c6f780ab-458b-420f-85cf-2fc45fcfe3a2

Installation

ya pkg add yazi-rs/plugins:mount

Usage

Add this to your ~/.config/yazi/keymap.toml:

[[mgr.prepend_keymap]]
on  = "M"
run = "plugin mount"

Note that, the keybindings above are just examples, please tune them up as needed to ensure they don't conflict with your other commands/plugins.

Actions

Key binding Alternate key Action
q - Quit the plugin
k Move up
j Move down
l Enter the mount point
m - Mount the partition
u - Unmount the partition
e - Eject the disk

TODO

  • Custom keybindings
  • Windows support (I don't use Windows myself, PRs welcome!)
  • Support mount, unmount, and eject the entire disk

License

This plugin is MIT-licensed. For more information check the LICENSE file.