kiyan
bdb6d4a254
fix(actions): reloading copy-paste logic inverted
...
fixes #1331
2022-06-11 11:22:45 +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
25921aa87a
fix(open-file): do not open file when target winid is nil
2022-06-04 14:06:35 +02:00
kiyan
6b26628acf
fix(preview): open file in preview should delete buffer when hidden
...
fixes #1307
2022-05-30 18:59:43 +02:00
Alexander Courtis
8198fa01fc
doc: default mappings
2022-05-30 12:53:28 +10:00
kiyan
5e900c2f29
refacto: tree explorer root should be absolute_path not cwd
2022-05-29 11:40:06 +02:00
emmanueltouzery
3806653d75
new option: close windows displaying removed files ( #1300 )
2022-05-29 11:23:01 +02:00
Kiyan
3a95c5a9cf
feat(actions): expand all under folder ( #1292 )
2022-05-29 11:15:32 +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
540c811cb2
fix(open file): do not trigger buf enter event when setting target win
...
Fixes #1288
Also starts a refactoring of the open-file code, to make it easier to
debug and improve.
2022-05-26 13:37:50 +02:00
kiyan
73ab312820
refactor: simplify opening file in new tab
...
fixes #1271 . Also fixes opening a file in new tab when close_on_open was
true.
This introduces breaking change since we don't do any extra behavior
and let the buffer be opened by the tree.
The previous behavior was a bit old and i believe this should've been
fixed by now.
Reference this commit if unexpected behavior appears while opening files
in new tabs from nvim-tree.
2022-05-21 12:09:09 +02: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
Michael
46014449b6
refactor: use lua api for user commands and autocommands ( #1206 )
...
BREAKING: plugin now requires nvim-0.7
2022-05-14 09:49:45 +02:00
Alexander Courtis
82ec79aac5
#1216 show diagnostic signs on all folders ( #1244 )
2022-05-10 11:22:11 +10:00
kiyan
82a646225f
fix(parent node): do not close folder when should_close is false
2022-05-08 13:30:57 +02:00
Kiyan
d8aad37997
fix(close-node): do not close parent when current node is open ( #1239 )
2022-05-08 11:38:05 +02:00
kiyan
ec888d08ce
fix(open file): set target win when opening new file
...
fixes #1214
Still this is a patch that is not really great. This code should be
rewritten.
2022-05-07 12:16:26 +02:00
Kiyan
db873b340d
chore(diagnostics): move updates to renderer ( #1218 )
...
should address #1216
2022-05-07 11:14:32 +02:00
kiyan
428898154f
chore: lib can be required directly in movements.lua
2022-04-30 16:41:26 +02:00
Kiyan
3ac443207f
#1166 validate config ( #1195 )
2022-04-26 21:11:24 +02:00
Andreas Bissinger
a94f5bf776
fix: correct line when moving in tree ( #1200 )
2022-04-26 21:10:27 +02:00
kiyan
09a47aed8d
Revert " #1166 validate user's options ( #1177 )"
...
This reverts commit 5bbd3a0a91 .
2022-04-24 14:41:48 +02:00
Alexander Courtis
5bbd3a0a91
#1166 validate user's options ( #1177 )
2022-04-24 11:17:05 +02:00
Alexander Courtis
2c71ffcc0d
add actions.change_dir.restrict_above_cwd ( #1171 )
2022-04-23 10:45:23 +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
0f0f858348
#1157 update lsp diagnostics when the tree state is changed ( #1174 )
2022-04-18 15:46:42 +02:00
Andreas Bissinger
9066cbf3f7
feat: add file completion ( #1163 )
2022-04-18 15:36:55 +02:00
Tony Shen
477536cd7e
fix: fix mis-naming for system clipboard config ( #1160 )
2022-04-12 22:12:13 +02:00
Michael
9c272b97bc
fix: trash filenames with spaces ( #1156 )
2022-04-11 12:28:51 +02:00
Michael
fc925d814a
fix: add spaces to prompts and blankline to rename output ( #1154 )
2022-04-11 09:47:23 +02:00
Michael
6e0e70b1ca
feat: delete preview buffers #1145 ( #1149 )
2022-04-10 17:23:37 +02:00
Lò [By The Way]
83fe370d52
Added actions.opts.use_sys_clipboard, [issue: 789 ] ( #1141 )
2022-04-10 15:39:36 +02:00
Pedro Castro
deb1f253f4
fix(statusline): better window picker highlight ( #1139 )
2022-04-09 14:56:22 +02:00
kiyan
618ea25613
fix: clear prompt when creating file
...
fixes #1138
2022-04-06 13:37:17 +02:00
Alexander Courtis
62906f095b
fix: collapse exit early if nvim-tree not loaded ( #1128 )
2022-04-02 12:40:59 +02:00
Alexander Courtis
cc387e8314
Merge pull request #1107 from kyazdani42/#1099-search-obey-ignored
...
#1099 search obeys active ignore filters
2022-03-27 13:48:02 +11:00
kiyan
1831417f05
refacto: add get_nodes_starting_line core util
2022-03-26 14:46:44 +01:00
Alexander Courtis
54c78dbca2
#791 add profiling for some operations ( #1108 )
2022-03-26 13:22:28 +01:00
Alexander Courtis
015234e032
#837 find file symlinks fixes ( #1093 )
2022-03-26 13:17:34 +01:00
Alexander Courtis
54c7cdbabb
#1099 search obeys active ignore filters
2022-03-26 12:51:18 +11:00
baahrens
7b0ebf8b17
feat: Use vim.ui.input for rename and create ( #1097 )
2022-03-22 20:28:58 +01:00
Gary Sentosa
57d6f70952
fix: window picker bug on global statusline ( #1098 )
2022-03-22 20:14:53 +01:00
kiyan
e87ee0e3c3
chore: license open-file as MIT
2022-03-20 13:36:21 +01:00
Alexander Courtis
fc70954ec7
#837 search subdirs ( #1092 )
2022-03-20 13:26:56 +01:00
kiyan
3cf67c5849
fix: remove diagnostics in help view
...
fixes #1088
2022-03-19 12:32:11 +01:00
Alexander Courtis
20797a8d74
#1050 #1068 various default options tweaks ( #1074 )
2022-03-18 11:35:15 +01:00
Andreas Bissinger
e307ad9e3d
feat: open node when using search-node action ( #1082 )
2022-03-18 11:32:08 +01:00
Alexander Courtis
a50fd77c99
#857 add filter_custom action, filter_ignored->filter_git_ignored ( #1077 )
2022-03-18 11:30:30 +01:00
Alexander Courtis
b136c7b6f9
#1064 add copy_paste logging and more error copy-paste error handling ( #1076 )
2022-03-18 11:27:03 +01:00
kiyan
2457e141ae
fix: do not crash file-popup when node is root dir
2022-03-09 23:07:31 +01:00