Skip to content

[Feature Request] only open files with certain yazi opener in nvim, so only files that are meant to be opened in editor #807

@aMOPel

Description

@aMOPel

It often happens to me that I want to open a pdf, picture or video with yazi. sometimes even while in nvim.
Because the plugin intercepts the open mappings in yazi it sends the files to nvim, which just results in binary soup.

Currently I circumvent this by having an interactive open mapping, which is not intercepted. But I still sometimes forget to use it.

Is there some way to make yazi.nvim stop opening media files? After all I already define how to open files in yazi.toml in open.rules.
Basically I want yazi.nvim to only open files in nvim, if they are using the "edit" opener and otherwise just defer to yazi.

I didn't see an obvious solution in the docs.

y --version
Yazi 0.4.2 (Nixpkgs 2024-12-20)

yazi.nvim version 2025-01-18

Thanks for your work on the plugin. It's amazing. I especially appreciate the lsp integration 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions