This script is a ranger plugin that draws a menu to mount and unmount MTP devices using gio.
- python3.8 or newer
- gio
Clone this repo to the plugins directory of ranger
cd ~/.config/ranger/plugins
git clone https://github.com/KKV9/ranger_mtpy
Type :mtp
in ranger to show the mount menu. In this menu you can press:
j
orarrow down
to move selection downk
orarrow up
to move selection upEsc
orq
to quitm
to mount or unmount selected deviceENTER
to cd selected mount-point. If device is not mounted you will receive an error.
- There are issues with renaming files on devices. You may have to move the file from the device and rewrite to do so.
- You may have to press
R
periodically to refresh directories within ranger.