File: treemacs-filewatch-mode.el.html
File event watch and reaction implementation.
Open directories are put under watch and file changes event collected even if filewatch-mode is disabled. This allows to remove deleted files from all the caches they are in. Activating filewatch-mode will therefore only enable automatic refresh of treemacs buffers.
Defined variables (5)
treemacs--collapsed-filewatch-index | Keeps track of dirs under filewatch due to being collapsed into one. |
treemacs--filewatch-index | Hash of all directories being watched for changes. |
treemacs--refresh-timer | Timer that will run a refresh after ‘treemacs-file-event-delay’ ms. |
treemacs-filewatch-mode | Non-nil if Treemacs-Filewatch mode is enabled. |
treemacs-filewatch-mode-hook | Hook run after entering or leaving ‘treemacs-filewatch-mode’. |
Defined functions (21)
treemacs--cancel-refresh-timer | () |
treemacs--cancel-refresh-timer--inliner | (INLINE--FORM) |
treemacs--do-process-file-events | () |
treemacs--do-process-file-events--inliner | (INLINE--FORM) |
treemacs--filewatch-callback | (EVENT) |
treemacs--is-event-relevant? | (EVENT) |
treemacs--is-event-relevant?--inliner | (INLINE--FORM EVENT) |
treemacs--process-file-events | () |
treemacs--set-refresh-flags | (LOCATION TYPE PATH) |
treemacs--set-refresh-flags--inliner | (INLINE--FORM LOCATION TYPE PATH) |
treemacs--start-filewatch-timer | () |
treemacs--start-filewatch-timer--inliner | (INLINE--FORM) |
treemacs--start-watching | (PATH &optional COLLAPSE) |
treemacs--start-watching--inliner | (INLINE--FORM PATH &optional COLLAPSE) |
treemacs--stop-filewatch-for-current-buffer | () |
treemacs--stop-watching | (PATH &optional ALL) |
treemacs--stop-watching--inliner | (INLINE--FORM PATH &optional ALL) |
treemacs--stop-watching-all | () |
treemacs--tear-down-filewatch-mode | () |
treemacs--tear-down-filewatch-mode--inliner | (INLINE--FORM) |
treemacs-filewatch-mode | (&optional ARG) |