## 事象 以下の設定しているopenerが開かなくなった。 ```toml [opener] preview = [ { run = 'qlmanage -p "$0"', desc = "Quick Look Preview"} ] gimp = [ { run = 'LANG=ja gimp -n "$0"', desc = "GIMP"} ] ``` [[Quick Look]]は立ち上がらない。[[GIMP]]は立ち上がるが、指定したファイルは開かれない。 ### 環境 | 対象 | バージョン | | --------- | ------- | | [[macOS]] | 15.7.2 | | [[Yazi]] | v26.1.4 | ## 原因 `$0` の代わりに `$1` を使うよう仕様が変更されたから。 > However, in the context of the opener, if a user selects a single file, `$0` is identical to `$1`; if multiple files are selected, Yazi looks for a common opener among all selected files, rather than the opener for the hovered file, which makes it less useful. > > *[fix!: `open` command doesn't work under empty directories by sxyazi · Pull Request #3226 · sxyazi/yazi](https://github.com/sxyazi/yazi/pull/3226)* ## 解決方法 `$0` の代わりに `$1` を使う。 ```toml [opener] preview = [ { run = 'qlmanage -p "$1"', desc = "Quick Look Preview"} ] gimp = [ { run = 'LANG=ja gimp -n "$1"', desc = "GIMP"} ] ```