-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: emit YaziRenamedOrMoved event when files are renamed or moved (#…
…495) Problem ======= When files are renamed or moved in yazi, there is no way for other plugins to know about this. If the user uses yazi.nvim along with other plugins that need to react to files being renamed or moved, it cannot be done. This means that other plugins that depend on yazi cannot react to these changes. Currently yazi.nvim can only react to LSP delete/rename events, but plugins that operate outside of the LSP protocol are not supported. Solution ======== Add a new Neovim autocmd/event called `YaziRenamedOrMoved` that is emitted when files are renamed or moved. This event will contain a table of the paths that were renamed or moved. Previously we were already emitting a Neovim event for `YaziDDSHover` - now we have two custom events. Closes #494
- Loading branch information
1 parent
b6ac040
commit c4befd1
Showing
3 changed files
with
168 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters