lite-xl/src
Francesco Abbate adaf023541 Always watch/unwatch subdirectories on all systems
Simplifies and uniformize the logic on the Lua side for the
setting of directories' watches. Now we always use the methods:

systems.watch_dir_add / rm

on all the project's directories at any depth when we are not
in files limit mode.

In files limited mode the functions systems.watch_dir_add/rm are
called only on the expanded folders. The shown_subdir table is also
updated only in files limited mode.

On the C side, using the dmon library, we remove the recursive argument
from the system.watch_dir and we always call it recursively except on
Linux. At the same time the functions:

systems.watch_dir_add / rm

are provided but as dummy functions that does nothing except on Linux
where they work as before to add / remove sub-directories in the inotify
watch.

In this was on the Lua side we always act we if the watches needed to be
set for each sub-directory explicitly, independently of the system.

The important improvement introduced is that we always avoid calling
dmon_watch recursively on Linux. This latter thing is problematic with
inotify and is therefore avoided on Linux.

On the other side we simplifies the logic on the Lua side and remove
conditions based on the OS used.
2021-12-30 15:25:27 +01:00
..
api Always watch/unwatch subdirectories on all systems 2021-12-30 15:25:27 +01:00
bundle_open.m Fix macOS build issue with recent commit 2021-08-19 14:33:39 -07:00
dirmonitor.c Report dmon modify events 2021-10-08 23:13:50 +02:00
dirmonitor.h Adopt new version of dmon 2021-10-08 21:55:43 +02:00
fontdesc.c Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
fontdesc.h Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
main.c Implement directory monitoring using septag/dmon 2021-10-08 21:31:22 +02:00
meson.build Move dmon files into lib/dmon 2021-10-08 22:10:17 +02:00
rencache.c Do no add rencache a command for empty rectangles 2021-10-10 14:58:51 +02:00
rencache.h Fix crash problem with rencache and font access 2021-05-21 23:38:54 +02:00
renderer.c Reverted if guard. 2021-06-09 19:34:02 -04:00
renderer.h Make usage of SDL renderer optional 2021-04-29 14:15:24 +02:00
renwindow.c More accurate update rects / show window / present sequence 2021-05-06 09:00:36 +02:00
renwindow.h Make usage of SDL renderer optional 2021-04-29 14:15:24 +02:00