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
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
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
Michael
6e0e70b1ca
feat: delete preview buffers #1145 ( #1149 )
2022-04-10 17:23:37 +02:00
Pedro Castro
deb1f253f4
fix(statusline): better window picker highlight ( #1139 )
2022-04-09 14:56:22 +02: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
20797a8d74
#1050 #1068 various default options tweaks ( #1074 )
2022-03-18 11:35:15 +01:00
kiyan
5af3cfa170
fix: split if nvim-tree is the only window
...
also fix resize when trying to open but the buffer exists
2022-03-09 22:29:26 +01:00
Kiyan
0816064a8b
chore: add stylua to format the codebase, and run on CI ( #1055 )
2022-03-06 17:33:30 +01:00
kiyan
38cc6305b4
fix: forgot resize_window option in open-file setup
2022-03-01 21:11:11 +01:00
kiyan
6af2d5a720
chore: move auto_resize to actions.open_file.resize_window
...
fixes #1034
2022-03-01 20:07:36 +01:00
Alexander Courtis
3d8912ca53
add more sensible defaults for window_picker.excludes ( #1027 )
2022-02-28 21:33:24 +01:00
kiyan
19346da6e1
fix: abandon window and bufnr before editing file
...
fixes a vinegar mode issue
2022-02-22 21:45:37 +01:00
kiyan
69867f4a00
chore: move window picker configuration in setup
2022-02-21 22:19:35 +01:00
kiyan
f8f297acbf
feat: add vinegar abilities to the tree
...
fixes #860
2022-02-21 21:42:43 +01:00
kiyan
4fc9cb1da3
chore: move code around
...
- deprecate config.lua file
- move icon config code into renderer/icons
- move file opening config in open-file.lua
2022-02-09 22:26:02 +01:00
kiyan
8b27fd4e61
refacto: move target_winid outside of tree
2022-02-06 17:03:23 +01:00
kiyan
1fe29f8eef
chore: move g:nvim_tree_quit_on_open into open_file action config
2022-02-05 18:42:08 +01:00
kiyan
9880c22ace
fix: do not error out when opening with swapfile
...
fixes #880
2022-02-05 12:42:22 +01:00
Sander van Harmelen
14bdf134f9
Add a mode that allows edit without the picker ( #873 )
2022-01-21 12:36:28 +01:00
kiyan
4d22f9487d
refacto: move open-file to actions
...
move all logic to open file from lib to actions/open-file
2022-01-21 12:01:17 +01:00