Skip to content

Commit

Permalink
Feat!: Match the behaviour of Yazi's extract command
Browse files Browse the repository at this point in the history
Breaking changes:
- You can no longer configure the extract behaviour of the plugin. All
  extractions will now automatically rename the new files if there are
  existing files with the same name. The behaviour is the same as Yazi's
  extract command. There is no way to change this behaviour due to how
  Lua's os.rename works, where it cannot overwrite a file if it already
  exists. Attempting to rename a file to an existing file will result in
  an error that cannot be bypassed by passing an argument to the
  function.
- Removed the extract behaviour configuration option. Existing
  configurations that still have that option will just have no effect.
- The way the plugin works now is very similar to Yazi's extract
  command, but it is augmented with the ability to skip directories in
  the extracted archive.
- Do note that despite the behaviour of the plugin's extraction of
  archives being the same as Yazi's, the plugin does not use Yazi's
  extract command directly, and instead implements its own version.

Fixes #4.
  • Loading branch information
hankertrix committed Sep 30, 2024
1 parent 2932c34 commit eff8331
Showing 1 changed file with 309 additions and 89 deletions.
Loading

0 comments on commit eff8331

Please sign in to comment.