TUI disk mount manager for TUI file managers
Find a file
2025-01-28 03:04:55 +03:00
src ignore ramfs 2025-01-27 19:07:50 +01:00
.gitignore first 2024-12-31 20:34:39 +03:00
Cargo.lock Add size field, improve info, fix eject 2025-01-02 02:31:43 +03:00
Cargo.toml Add size field, improve info, fix eject 2025-01-02 02:31:43 +03:00
LICENSE add license 2024-12-31 20:35:22 +03:00
README.md add ranger instructions 2025-01-01 02:16:38 +03:00
rustfmt.toml add formatter 2024-12-31 20:35:12 +03:00
screencast.gif add ranger instructions 2025-01-01 02:16:38 +03:00

mmtui

TUI disk mount manager for TUI file managers for Linux

Dependencies

  • udisks2

Binaries

Latest prebuilt static binary you can find here: https://github.com/SL-RU/mmtui/releases

Build

cargo build --release

Binary will be in target/release/mmtui

AUR

On Archlinux you can install from AUR, package is named mmtui-bin: https://aur.archlinux.org/packages/mmtui-bin

Integrations

Yazi - mount.yazi

Plugin for yazi file manager: https://github.com/SL-RU/mount.yazi

Ranger file manager

https://github.com/SL-RU/ranger_udisk_menu is deprecated, now you can use this application instead. Download or build mmtui and add it location to $PATH environment variable or substitute location in the variable MMTUI_PATH in the script below.

Add this to ranger config/commands.py:

class mount(Command):
    """:mount.

    Show menu to mount and unmount.
    """

    MMTUI_PATH = "mmtui"

    def execute(self):
        """Show menu to mount and unmount."""
        import os
        import tempfile
        (f, p) = tempfile.mkstemp()
        os.close(f)
        self.fm.execute_console(
            f'shell bash -c "{self.MMTUI_PATH} 1> {p}"'
        )
        with open(p, 'r') as f:
            d = f.readline().strip()
            if os.path.exists(d):
                self.fm.cd(d)
        os.remove(p)