Comments (3)
Hi, you can use read -s pass
to read the password entered by the user into $pass
, and then pass $pass
to the unar
command, similar to what #51 (comment) did.
I plan to implement compression/decompression as a separate plugin, but haven't found the time, so please use this workaround for now.
from yazi.
Thanks @sxyazi <3
To anyone who stumbles upon this who wants to extract a password protected archive file in Yazi without using any other apps to do it simply go to .config/yazi/keymap.toml, and add this line of code:
{ on = [ "c", "z" ], exec = """ shell 'printf "Password:"; read -s password; unar -p "$password" "$@"' --block --confirm""" },
To test it, select a password protected archive file (space as default) to highlight, then press c, and z. It should ask you for your password, and if the password is correct, it should extract it.
from yazi.
I'm going to lock this issue because it has been closed for 30 days. ⏳
This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
from yazi.
Related Issues (20)
- Exit select mode after finishing renaming the files. HOT 4
- DDS static messages only work when at least two instances of Yazi are running HOT 2
- Child process hangs waiting for EOF (end fo file) when using `stdin(Command.PIPED)` HOT 2
- Extract plugin fails to work on encrypted rar and zip archives HOT 4
- Opening multiple files only hovers the first file, others are directories HOT 2
- [RFC] Replace package manager URL from `yazi-rs/plugins#full-border` to `yazi-rs/plugins:full-border` HOT 10
- view files in /proc HOT 9
- [RFC] refactor and improve shell options HOT 1
- `cd --interactive` - some dirs/files icons are small until hovered HOT 6
- Add IF patched fonts HOT 1
- parquet HOT 1
- Moving folder into itself causes frozen task HOT 3
- Glob pattern matching also includes children in filetype rules HOT 4
- Insert keymap doesnt work HOT 7
- Multiple Keymap Actions result in erroneous behaviour. HOT 1
- Export list of key bindings
- Wrong behavior on opening file that contains space on Windows HOT 1
- Plugins like zoxide don't seem to work HOT 4
- Compilation issues while building from source HOT 3
- Yazi gets stuck when hovering over a specific text file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yazi.