Mounting and unmounting archives in yazi in Linux using archivemount
command. You can now temporarily view and edit files inside your archive creating a new archive along with original, all using the
features of archivemount
. You can also view mounpoints in your system based on the list provided by command mount
on Linux.
archivemount_p1.webm
Note
Currently Linux only. MacOS usage will be added.
You can download the command using sudo apt install archivemount
or build from source from their github repository.
- Yazi version >= 0.3.x
To install archivemount.yazi
in Linux, you can run the below command -
ya pack -a AnirudhG07/archivemount
# OR
git clone https://github.com/AnirudhG07/archivemount.yazi ~/.config/yazi/plugins/archivemount.yazi
To use the UI extension of archivemount.yazi
, add the following in your ~/.config/yazi/init.lua
-
require("archivemount"):setup()
Add the following to your keymaps.toml
.
[[manager.prepend_keymap]]
on = [ "m", "a" ]
run = "plugin archivemount --args=mount"
desc = "Mount selected archive"
[[manager.prepend_keymap]]
on = [ "m", "u" ]
run = "plugin archivemount --args=unmount"
desc = "Unmount and save changes to original archive"
Check out the Man page for archivemount
for more information. archivemount.yazi
supports .tar
, .tar.gz
, tgz
, tar.bz2
and .zip
(The new file is a .tar
file instead of .zip
because archivemount
command converts it so). If you think more compressions types
can be added, feel free to add it in your init.lua
and make an issue/PR regarding it as well!:
Yazi is an amazing, blazing fast terminal file manager, with a variety of plugins, flavors and themes. Check them out at awesome-yazi and the official yazi webpage.
- Application on MacOS which uses MacFuse for archivemounting.