You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[manager.prepend_keymap]]
on = ["<Right>"]
run = "plugin augment-command --args='enter --no-skip'"desc = "Enter the child directory, or open the file"
[[manager.prepend_keymap]]
on = ["l"]
run = "plugin augment-command --args='enter --no-skip'"desc = "Enter the child directory, or open the file"
Pressing either "<Right>" or "l" on a .tar.gz archive doesn't behave like pressing <Enter> (regular yaziextract).
Hover it and press <Enter>: a single directory named after the tar.gz archive is created, with the content in it
Hover it and press "<Right>" or "l" with the configuration above: a .tar archive is created and hovered, then pressing "<Right> or "l" now hovers the directory named after the archive. Pressing "<Right>" or "l" again: the first file of the archive is finally hovered.
It would be nice if enter_archives could mimic the new behavior, i.e. directly extracting .tar.gz in a single directory and enter it.
The text was updated successfully, but these errors were encountered:
Thank you for 2e64995, which is clearly an improvement.
A duplicate directory is still created compared to extract though. Using this tar.gz as an example, which contains a single directory mdcat-2.5.0-x86_64-unknown-linux-musl in it:
With the following in
~/.config/yazi/keymap.toml
:Pressing either
"<Right>"
or"l"
on a.tar.gz
archive doesn't behave like pressing<Enter>
(regularyazi
extract
).extract
has been improved lately:extract
andarchive
plugins handle*.tar
formats better sxyazi/yazi#1548extract
plugin support compressed tarballs (*.tar.gz
,*.tar.bz2
, etc.) sxyazi/yazi#1583Currently,
augment-command
creates the same duplicate directories that the oldextract
used to create before.To reproduce (basically repeating steps in sxyazi/yazi#1548):
Using a recent
yazi
version containing sxyazi/yazi#1583tar.gz
archive<Enter>
: a single directory named after thetar.gz
archive is created, with the content in it"<Right>"
or"l"
with the configuration above: a.tar
archive is created and hovered, then pressing"<Right>
or"l"
now hovers the directory named after the archive. Pressing"<Right>"
or"l"
again: the first file of the archive is finally hovered.It would be nice if
enter_archives
could mimic the new behavior, i.e. directly extracting.tar.gz
in a single directory and enter it.The text was updated successfully, but these errors were encountered: