Skip to content

AnirudhG07/archivemount.yazi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

archivemount.yazi

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.

Previews/Screenshots

archivemount_p1.webm

Requirements

Note

Currently Linux only. MacOS usage will be added.

  1. archivemount

You can download the command using sudo apt install archivemount or build from source from their github repository.

  1. Yazi version >= 0.3.x

Installation

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

Usages

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"

Which Archive files can you use?

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!:

Explore Yazi

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.

TODO

  1. Application on MacOS which uses MacFuse for archivemounting.

About

Mounting and unmounting archives in yazi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages