@@ -717,29 +717,29 @@ of objects in the form:
717717
718718The following events are available:
719719
720- "before_render"
720+ "before_render"~
721721Fired after items have been collected from the source but before drawing the
722722nodes of the tree. This is the best place to gather additional data to be used
723723by components. The argument passed is the state of the source, which is also
724724passed to components and commands down the line.
725725
726- "after_render"
726+ "after_render"~
727727Fired after the tree has been rendered. The argument passed is the state of the
728728source, which is also passed to components and commands down the line.
729729
730- "file_added"
730+ "file_added"~
731731Fired after a file (or folder) has been created, either by using the "add"
732732command or by copy and paste. The arg is the full path to the new file.
733733
734- "file_deleted"
734+ "file_deleted"~
735735Fired after a file (or folder) has been deleted. The arg is the full path to the
736736deleted file.
737737
738- "file_moved"
738+ "file_moved"~
739739Fired after a file (or folder) has been moved. The arg is a table containing
740740`source ` and `destination` properties.
741741
742- "file_open_requested"
742+ "file_open_requested"~
743743Fired just before a file is opened. The arg is a table containing the `state `
744744of the source being used, the `path ` of the file to be opened, and `open_cmd` ,
745745which is the open command that was requested. `open_cmd` will be either | edit | ,
@@ -748,38 +748,57 @@ which is the open command that was requested. `open_cmd` will be either |edit|,
748748was not. If `{ handled = true }` is not returned, the file will be opened using
749749the built-in logic.
750750
751- "file_opened"
751+ "file_opened"~
752752Fired after a file has been opened. You might use this to auto-close the window
753753or clear the filter. The arg is the path of the file opened.
754754
755- "file_renamed"
755+ "file_renamed"~
756756Fired after a file (or folder) has been renamed. The arg is an table containing
757757`source ` and `destination` properties.
758758
759+ "neo_tree_buffer_enter"~
760+ Fired after entering a neo-tree buffer. It is also right after neo-tree applies
761+ it's own settings, so it's the ideal place to apply any local settings you would
762+ like to have.
763+
764+ "neo_tree_buffer_leave"~
765+ Fired after a neo-tree buffer was exited. Technically it fires when entering a
766+ buffer that is not neo-tree, when the last buffer enter event was neo-tree.
767+
768+ "neo_tree_popup_buffer_enter"~
769+ Fired after entering a neo-tree popup buffer. This includes things such as file
770+ rename prompts and filter inputs. It runs right after neo-tree applies it's own
771+ settings, so it's the ideal place to apply any local settings you would like to
772+ have.
773+
774+ "neo_tree_popup_buffer_leave"~
775+ Fired after leaving a neo-tree popup buffer.
776+
777+
759778NOTE: The following events are used internally and not intended for end user
760779usage. You can use them if you want, but beware that they may be debounced, and
761780the details of how frequently they are fired and what events are dropped will be
762781changed without warning.
763782
764- "vim_diagnostic_changed"
783+ "vim_diagnostic_changed"~
765784Fired on the | DiagnosticChanged | autocmd event. The arg is a table with one
766785property: `diagnostics_lookup` , which is a table where the keys are file names
767786and the values are tables with diagnostic counts by severity level.
768787
769- "vim_buffer_changed"
788+ "vim_buffer_changed"~
770789Fired on the following autocmd events: | BufDelete | , | BufWritePost | ,
771790| BufFilePost | , | BufNew |
772791
773- "vim_buffer_enter"
792+ "vim_buffer_enter"~
774793Fired on the following autocmd events: | BufEnter | , | BufWinEnter |
775794
776- "vim_dir_changed"
795+ "vim_dir_changed"~
777796Fired on the | DirChanged | autocmd event
778797
779- "vim_win_enter"
798+ "vim_win_enter"~
780799Fired on the | WinEnter | autocmd event
781800
782- "vim_colorscheme"
801+ "vim_colorscheme"~
783802Fired on the | ColorScheme | autocmd event
784803
785804
0 commit comments