Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yazi 25.2.7 #206867

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

yazi 25.2.7 #206867

wants to merge 1 commit into from

Conversation

BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
## Deprecated

The mount.yazi Plugin

For a long time, I've been receiving requests from users for a mount manager, but never had the time to finish it. But now — it's here!

mount.yazi provides disk mount, unmount, and eject functionality:

404254109-c6f780ab-458b-420f-85cf-2fc45fcfe3a2.mp4

Done in sxyazi/yazi#2199.

Simplification of shell and plugin commands

With sxyazi/yazi#2298, you can now write shell scripts directly after -- (end of options marker). Everything after -- will be treated as raw text, so no more escaping is required, greatly simplifying the writing of complex commands.

For example, previously, a simple echo "hello 'world'" would look like this:

[[manager.prepend_keymap]]
on  = "<C-e>"
run = '''
  shell --block 'echo "hello '\''world'\''"'
'''

This resulted in nested quotes, which was error-prone and unintuitive.

Now, you can directly include the entire shell script as plain text after -- without any escaping:

[[manager.prepend_keymap]]
on  = "<C-e>"
run = '''
  shell --block -- echo "hello 'world'"
'''

Similarly, with sxyazi/yazi#2299, the plugin command usage has been simplified as well. For instance:

[[manager.prepend_keymap]]
on  = "<C-e>"
run = "plugin search --args='\'hello world\''"

Can now be written as:

[[manager.prepend_keymap]]
on  = "<C-e>"
run = "plugin search -- 'hello world'"

Replace Mode and Vim Motions (W, E, B, ^, _) for Inputs

The Input component now supports replace mode and several new Vim motions, including:

  • W: Move forward to the start of the next WORD
  • E: Move forward to the end of the current or next WORD
  • B: Move back to the start of the current or previous WORD
  • ^: Move to the first non-whitespace character
  • _: Move to the first non-whitespace character

Thanks to @dxrcy for the work in sxyazi/yazi#2143!

Package Manager Enhancements

The package manager now supports the following new features:

Support Local tmux Image Preview Over SSH

Now, when you start tmux locally, connect to a remote SSH session, and run Yazi on the remote host, you'll get image preview support out of the box.

Done in sxyazi/yazi#2229.

New @since Plugin Annotation to Specify the Minimum Supported Yazi Version

You can now optionally specify the minimum supported Yazi version in your plugin:

--- @since 25.2.7

return {
  entry = function() end
}

If specified, and the user's Yazi version is lower than the given version, they will receive an error message preventing the plugin from running accidentally.

Done in sxyazi/yazi#2290

New ya.confirm() API

The new ya.confirm() API allows you to show a confirmation prompt to the user:

local answer = ya.confirm {
  pos = { "center", w = 40, h = 10 },
  title = "Test",
  content = "Hello, World!",
}

You can also apply a UI element to the title and content to customize the appearance:

local answer = ya.confirm {
  pos = { "center", w = 40, h = 10 },
  title = ui.Line("Test"):fg("yellow"):bold(),
  content = ui.Text("Hello, World!"):bg("red"):fg("#ffffff"),
}

@github-actions github-actions bot added rust Rust use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Feb 7, 2025
@daeho-ro
Copy link
Member

daeho-ro commented Feb 7, 2025

It seems that the version is now follows yy.mm.dd.

Copy link
Contributor

@botantony botantony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now yazi --version outputs the following: Yazi yy.m.d (<last commit hash>/Homebrew YYYY-MM-DD)
f.e.:

$ yazi --version
Yazi 25.2.7 (17ff1e88 2025-02-07)

If it was installed via Homebrew it returns this output:

$ yazi --version
Yazi 25.2.7 (Homebrew 2025-02-07)

I suggest to change assert_match "Yazi #{version}", shell_output("#{bin}/yazi --version").strip to assert_match /^Yazi #{Regexp.escape(version)} \(Homebrew (\d{4}-\d{2}-\d{2})\)$/, shell_output("#{bin}/yazi --version").strip

@botantony
Copy link
Contributor

#206895

@branchvincent branchvincent added the CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. rust Rust use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants