@@ -717,29 +717,29 @@ of objects in the form:
717
717
718
718
The following events are available:
719
719
720
- "before_render"
720
+ "before_render"~
721
721
Fired after items have been collected from the source but before drawing the
722
722
nodes of the tree. This is the best place to gather additional data to be used
723
723
by components. The argument passed is the state of the source, which is also
724
724
passed to components and commands down the line.
725
725
726
- "after_render"
726
+ "after_render"~
727
727
Fired after the tree has been rendered. The argument passed is the state of the
728
728
source, which is also passed to components and commands down the line.
729
729
730
- "file_added"
730
+ "file_added"~
731
731
Fired after a file (or folder) has been created, either by using the "add"
732
732
command or by copy and paste. The arg is the full path to the new file.
733
733
734
- "file_deleted"
734
+ "file_deleted"~
735
735
Fired after a file (or folder) has been deleted. The arg is the full path to the
736
736
deleted file.
737
737
738
- "file_moved"
738
+ "file_moved"~
739
739
Fired after a file (or folder) has been moved. The arg is a table containing
740
740
`source ` and `destination` properties.
741
741
742
- "file_open_requested"
742
+ "file_open_requested"~
743
743
Fired just before a file is opened. The arg is a table containing the `state `
744
744
of the source being used, the `path ` of the file to be opened, and `open_cmd` ,
745
745
which 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|,
748
748
was not. If `{ handled = true }` is not returned, the file will be opened using
749
749
the built-in logic.
750
750
751
- "file_opened"
751
+ "file_opened"~
752
752
Fired after a file has been opened. You might use this to auto-close the window
753
753
or clear the filter. The arg is the path of the file opened.
754
754
755
- "file_renamed"
755
+ "file_renamed"~
756
756
Fired after a file (or folder) has been renamed. The arg is an table containing
757
757
`source ` and `destination` properties.
758
758
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
+
759
778
NOTE: The following events are used internally and not intended for end user
760
779
usage. You can use them if you want, but beware that they may be debounced, and
761
780
the details of how frequently they are fired and what events are dropped will be
762
781
changed without warning.
763
782
764
- "vim_diagnostic_changed"
783
+ "vim_diagnostic_changed"~
765
784
Fired on the | DiagnosticChanged | autocmd event. The arg is a table with one
766
785
property: `diagnostics_lookup` , which is a table where the keys are file names
767
786
and the values are tables with diagnostic counts by severity level.
768
787
769
- "vim_buffer_changed"
788
+ "vim_buffer_changed"~
770
789
Fired on the following autocmd events: | BufDelete | , | BufWritePost | ,
771
790
| BufFilePost | , | BufNew |
772
791
773
- "vim_buffer_enter"
792
+ "vim_buffer_enter"~
774
793
Fired on the following autocmd events: | BufEnter | , | BufWinEnter |
775
794
776
- "vim_dir_changed"
795
+ "vim_dir_changed"~
777
796
Fired on the | DirChanged | autocmd event
778
797
779
- "vim_win_enter"
798
+ "vim_win_enter"~
780
799
Fired on the | WinEnter | autocmd event
781
800
782
- "vim_colorscheme"
801
+ "vim_colorscheme"~
783
802
Fired on the | ColorScheme | autocmd event
784
803
785
804
0 commit comments