Important
For nightly build users for yazi v0.4.3(not yet released). The init.lua
file should be renamed to main.lua
(check #2176).
Please rename init.lua
to main.lua
in case you are facing any issues! Thanks!
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, it works on Linux. Help wanted for MacOS!
You can download the command using sudo apt install archivemount
or build from source from their github repository.
- Yazi version >= 0.4.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.
Important
This is not tested by me. Only an inspiration by people. For any users, please test and provide feedback for the same.
You can install archivemount
on MacOS through macports
, it is available on Homebrew only on Linux(linuxbrew) -
sudo port install archivemount
Application on MacOS which uses MacFuse for archivemounting. You would need to enable MacFuse for this. The syntax provided by archivemount is same as that of linux, so the plugin should work.