mikavilpas / yazi.nvim

A Neovim Plugin for the yazi terminal file manager
MIT License
217 stars 7 forks source link

feat: allow yazi_closed_successfully hook to know the last yazi dir #86

Closed mikavilpas closed 1 month ago

mikavilpas commented 1 month ago

This PR adds support for custom hook implementations to know what the last directory was when yazi was closed. It can be used to e.g. change the current working directory in neovim.

In the future, I am thinking I can add some mappings that also use this, for example to do a grep (file content search) operation on the selected directory only. More ideas are also welcome 👍🏻

related: https://github.com/mikavilpas/yazi.nvim/issues/83