Alexander Courtis
06e48c29c4
chore(watchers): refactor events and make debouncer safe
...
- fs poll -> fs events
- make debouncer safe and fix diagnostics events
2022-07-17 08:50:24 +02:00
Kiyan
b0d27c09b6
feat(explorer): add filesystem watchers ( #1304 )
...
* feat(explorer): add experimental watchers
This commit introduces watchers to update the tree.
This behavior is introduced behind an "filesystem_watchers" option
which should prevent instabilities.
It will become the default at some point.
Co-authored-by: Alexander Courtis <alex@courtis.org >
2022-06-05 12:39:39 +02:00
kiyan
5e900c2f29
refacto: tree explorer root should be absolute_path not cwd
2022-05-29 11:40:06 +02:00
Alexander Courtis
c3b7be8d19
add .luarc.json for lua-language-server and fix a couple of nits ( #1296 )
2022-05-28 11:16:54 +02:00
Alexander Courtis
3ba383d591
chore/remove globals ( #1279 )
...
* remove renderer globals: nvim_tree_add_trailing nvim_tree_highlight_opened_files nvim_tree_root_folder_modifier nvim_tree_special_files
* remove renderer globals: nvim_tree_icon_padding
* remove renderer globals: nvim_tree_symlink_arrow
* remove renderer globals: nvim_tree_show_icons, nvim_tree_show_icons
* remove renderer globals: nvim_tree_git_hl
* remove renderer globals: nvim_tree_group_empty
* remove renderer globals: respect_buf_cwd
* remove renderer globals: nvim_tree_create_in_closed_folder
* remove globals: consistency in legacy checks
* remove renderer globals: nvim_tree_special_files
* renderer.icons.symbols -> glyphs
2022-05-28 11:08:40 +10:00
Kiyan
6343813a35
feat(live-filter): add ability to live filter out nodes in the tree ( #1056 )
2022-05-17 10:03:49 +02:00
Alexander Courtis
f85af83f13
#1217 show git status for link targets, when no status on the link itself ( #1263 )
2022-05-14 09:34:53 +02:00
kiyan
95a5c2d4bc
fix: add parent ref to nodes
...
also refactor movement go to parent
fixes #1148
2022-04-21 20:39:14 +02:00
Alexander Courtis
1bdef08cfa
#1059 protect against duplicates ( #1143 )
2022-04-09 14:59:38 +02:00
Kiyan
0816064a8b
chore: add stylua to format the codebase, and run on CI ( #1055 )
2022-03-06 17:33:30 +01:00
kiyan
76d181d480
refacto: move filters and sorters in their own modules
...
Also exclude filters is taken into account in git ignore
fixes #892
2022-03-06 14:14:56 +01:00
kiyan
527d88d54e
refacto: simplify interface of reload and explore
...
also make common group empty check in explorer utils
2022-02-20 15:08:36 +01:00
kiyan
2e1f82d8c0
fix: reload group_next properly
...
fixes #948
2022-02-17 20:08:33 +01:00
Kiyan
3f4ed9b6c2
fix: reload git status of existing nodes ( #975 )
2022-02-13 13:44:09 +01:00
kiyan
e42a4337d0
fix: do not group empty at root
2022-02-07 21:16:59 +01:00
kiyan
1ab7812c62
fix: properly reload nodes
2022-02-07 20:54:26 +01:00
kiyan
47ccc2913f
refacto: move toggle help and filter toggles into actions
...
also fix explorer to properly remove element on update when filter is
applied
2022-02-07 20:43:24 +01:00
kiyan
e1c3744631
refacto: rewrite reloader
...
next step needs to merge the reloader and the explorer, the ancient code
was super complicated and long and the new one is very similar to the explorer.
2022-02-06 23:18:12 +01:00
kiyan
7fec0f658b
chore: simplify reloader and start fixing group nodes refresh
2022-02-06 22:59:37 +01:00
kiyan
b76602182f
refacto: simplify explorer and make it a bit faster
...
Also fixes #933
2022-02-06 18:51:17 +01:00
kiyan
74791bb624
refacto: split explorer module into multiple files
2022-02-06 17:01:18 +01:00