mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: user-prepended open rules do not override presets
This commit is contained in:
parent
e5ee31cb7e
commit
765cc0dce5
2 changed files with 4 additions and 1 deletions
|
|
@ -60,6 +60,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/):
|
|||
|
||||
### Fixed
|
||||
|
||||
- User-prepended open rules do not override presets ([#3360])
|
||||
- Respect user's system media opener instead of hardcoding `mpv` ([#2959])
|
||||
- Incorrect `$0` and `$@` parameters in `shell` command under empty directories ([#3225])
|
||||
- Avoid appending a newline when reading clipboard contents ([#3059])
|
||||
|
|
@ -1537,3 +1538,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/):
|
|||
[#3290]: https://github.com/sxyazi/yazi/pull/3290
|
||||
[#3313]: https://github.com/sxyazi/yazi/pull/3313
|
||||
[#3317]: https://github.com/sxyazi/yazi/pull/3317
|
||||
[#3360]: https://github.com/sxyazi/yazi/pull/3360
|
||||
|
|
|
|||
|
|
@ -34,10 +34,11 @@ impl Open {
|
|||
self
|
||||
.rules
|
||||
.iter()
|
||||
.filter(move |&r| {
|
||||
.find(move |&r| {
|
||||
r.mime.as_ref().is_some_and(|p| p.match_mime(&mime))
|
||||
|| r.url.as_ref().is_some_and(|p| p.match_url(url.as_url(), is_dir))
|
||||
})
|
||||
.into_iter()
|
||||
.flat_map(|r| &r.r#use)
|
||||
.map(String::as_str)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue