Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anirudhg07/archivemount.yazi
Mounting and unmounting archives in yazi
https://github.com/anirudhg07/archivemount.yazi
Last synced: 9 days ago
JSON representation
Mounting and unmounting archives in yazi
- Host: GitHub
- URL: https://github.com/anirudhg07/archivemount.yazi
- Owner: AnirudhG07
- License: mit
- Created: 2024-07-12T16:15:27.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T04:45:19.000Z (27 days ago)
- Last Synced: 2024-11-07T18:09:58.690Z (13 days ago)
- Language: Lua
- Size: 367 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/user-attachments/assets/f5f8810b-cfbb-4054-b7c2-fa77ed4fc22c)
## Requirements
> [!Note]
>
> Currently Linux only. MacOS usage will be added.1. [archivemount](https://github.com/cybernoid/archivemount)
You can download the command using `sudo apt install archivemount` or build from source from their github repository.
2. [Yazi](https://github.com/sxyazi/yazi) version >= 0.3.x
## Installation
To install `archivemount.yazi` in Linux, you can run the below command -
```bash
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` -
```lua
require("archivemount"):setup()
```Add the following to your `keymaps.toml`.
```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](https://github.com/AnirudhG07/awesome-yazi) and the official [yazi webpage](https://yazi-rs.github.io/).
## TODO
1. Application on MacOS which uses MacFuse for archivemounting.