summaryrefslogtreecommitdiff
path: root/debian/.config/yazi/plugins/mount.yazi/README.md
blob: b35881f88766cd76d4266c55be5186737046e10f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# mount.yazi

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

Supported platforms:

- Linux with [`udisksctl`](https://github.com/storaged-project/udisks), `lsblk` and `eject` both provided by [`util-linux`](https://github.com/util-linux/util-linux)
- macOS with `diskutil`, which is pre-installed

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

## Installation

```sh
ya pkg add yazi-rs/plugins:mount
```

## Usage

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

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

Available keybindings:

| Key binding  | Alternate key | Action                |
| ------------ | ------------- | --------------------- |
| <kbd>q</kbd> | -             | Quit the plugin       |
| <kbd>k</kbd> | <kbd>↑</kbd>  | Move up               |
| <kbd>j</kbd> | <kbd>↓</kbd>  | Move down             |
| <kbd>l</kbd> | <kbd>→</kbd>  | Enter the mount point |
| <kbd>m</kbd> | -             | Mount the partition   |
| <kbd>u</kbd> | -             | Unmount the partition |
| <kbd>e</kbd> | -             | 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](LICENSE) file.