With this PR the workbench file list and sidebar will automatically be updated if a file is created, removed or renamed. The feature uses the file monitoring from the GIO lib to monitor directories. If required, the feature can be disabled in the workbench settings dialog. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/695
-- Commit Summary --
* workbench: support live update. Closes #659.
-- File Changes --
M workbench/README (31) M workbench/src/Makefile.am (2) M workbench/src/dialogs.c (18) M workbench/src/menu.c (18) M workbench/src/plugin_main.c (8) M workbench/src/popup_menu.c (20) M workbench/src/sidebar.c (374) M workbench/src/sidebar.h (17) A workbench/src/wb_monitor.c (267) A workbench/src/wb_monitor.h (33) M workbench/src/wb_project.c (508) M workbench/src/wb_project.h (14) M workbench/src/workbench.c (224) M workbench/src/workbench.h (11)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/695.patch https://github.com/geany/geany-plugins/pull/695.diff
During running make check I'm getting: ``` .libs/workbench_la-wb_project.o: In function `wb_project_dir_remove_file': /home/frlan/quellen/geany-plugins/workbench/src/wb_project.c:701: undefined reference to `gp_filelist_filepath_matches_patterns' .libs/workbench_la-wb_project.o: In function `wb_project_dir_add_file_int': /home/frlan/quellen/geany-plugins/workbench/src/wb_project.c:584: undefined reference to `gp_filelist_filepath_matches_patterns' ```
Also a file is missing inside POTFILES.in
``` diff --git a/po/POTFILES.in b/po/POTFILES.in index d88d8a5d..3609b322 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -320,6 +320,7 @@ workbench/src/popup_menu.c workbench/src/sidebar.c workbench/src/utils.c workbench/src/wb_globals.c +workbench/src/wb_monitor.c workbench/src/wb_project.c workbench/src/workbench.c
```
@frlan: yes, it depends on PR #694 which adds the missing function to the utils lib. I placed it in a different PR because it's a different "sub-project" and not the workbench plugin itself.
Merged #695.
github-comments@lists.geany.org