Alexander Courtis
6368880968
add open_on_setup_file option ( #1133 )
2022-04-03 14:31:40 +02:00
kiyan
524758a207
chore: remove auto close
...
also fix emmylua errors in log.lua file
fixes #1005
fixes #871
2022-03-27 12:13:24 +02:00
Alexander Courtis
54c78dbca2
#791 add profiling for some operations ( #1108 )
2022-03-26 13:22:28 +01:00
kiyan
a2fc2979f3
fix: legacy options needs a table
...
fixes #1087
2022-03-18 20:08:21 +01:00
Alexander Courtis
20797a8d74
#1050 #1068 various default options tweaks ( #1074 )
2022-03-18 11:35:15 +01:00
Maximiliano Curia
d60773e441
Set target window whenever we open "open" a visible tree ( #1080 )
2022-03-18 11:31:39 +01:00
Alexander Courtis
a65078e3ae
#1060 use one log file with the option to truncate ( #1075 )
2022-03-12 14:43:33 +01:00
kiyan
471afc13fe
refacto: abstract TreeExplorer in core.lua
2022-03-09 22:01:54 +01:00
Andreas Bissinger
60a9c86c53
feat: make it possible to collapse the tree but keep the directories open which are in used in buffers ( #1057 )
2022-03-09 11:08:29 +01:00
Alexander Courtis
19075f41e8
File logging ( #1053 )
...
* add file logging infrastructure
* log git runner operations
* log configuration and mappings
* document file logging infrastructure
* style fixes
* stylua fixes
* document log file locations
2022-03-07 08:44:37 +01:00
Kiyan
0816064a8b
chore: add stylua to format the codebase, and run on CI ( #1055 )
2022-03-06 17:33:30 +01:00
Andreas Bissinger
7cb689795e
feature: add feature to increase/decrease size ( #1048 )
2022-03-06 11:33:28 +01:00
Brandon D
690c7e96ed
feat: add sort_by option to sort files by modification time ( #1040 )
...
Co-authored-by: Brandon Dwiel <bdwiel@apple.com >
2022-03-03 23:41:58 +01:00
kiyan
866442fd2c
feat: focus current buffer when opening in current buffer
...
fixes #1038
2022-03-02 21:42:05 +01:00
kiyan
0e7856fd8d
BREAKING_CHANGE: nvim-tree buffer was renamed
...
You should now use `NvimTree_*` when matching with an autocmd
There is now 1 buffer per tabpage.
2022-03-01 20:58:04 +01:00
kiyan
f37c3ffa59
chore: move old option into setup from entrypoint to legacy.lua
2022-03-01 20:34:10 +01:00
kiyan
6af2d5a720
chore: move auto_resize to actions.open_file.resize_window
...
fixes #1034
2022-03-01 20:07:36 +01:00
Andreas Bissinger
9ec710e338
remove semicolons ( #1035 )
2022-03-01 19:57:05 +01:00
Andreas Bissinger
61a59ffae1
feat: new config to be able to always open the tree on setup ( #1023 )
2022-03-01 19:56:04 +01:00
Alexander Courtis
97717d8d23
G migration mechanism ( #1030 )
2022-03-01 19:54:12 +01:00
Grzegorz Rozdzialik
0fcd6614b5
feat: allow not changing the cwd when changing directories ( #1019 )
2022-02-22 21:39:12 +01:00
Richard Mathieson
3486c48225
fix: add config for preserving window proportions on open file ( #999 )
2022-02-22 14:04:14 +01:00
kiyan
494c9ecfbf
fix(auto_close): do not close tree if buffers are modified
...
fixes #891
2022-02-22 00:10:55 +01:00
kiyan
600aa849f3
fix(auto_close): do not close when buffer is modified
2022-02-22 00:09:12 +01:00
kiyan
56edf79b4b
fix(auto_close): abort when win closed is telescope
...
fixes #609
2022-02-21 23:25:32 +01:00
kiyan
69867f4a00
chore: move window picker configuration in setup
2022-02-21 22:19:35 +01:00
kiyan
3920e56164
fix: forget window when quit_on_open is true and buffer is wiped
2022-02-21 21:52:46 +01:00
kiyan
f8f297acbf
feat: add vinegar abilities to the tree
...
fixes #860
2022-02-21 21:42:43 +01:00
kiyan
58b81ed9e6
refacto: remove rendering from lib.init
2022-02-20 23:01:25 +01:00
Alexander Courtis
a1937ca079
1007 do not wipe modified buffers when hijack unnamed buffer when opening ( #1009 )
2022-02-20 10:41:47 +01:00
Xavier Young
bbad18ba51
fix: reset autocmds when require again ( #995 )
2022-02-17 08:20:10 +01:00
zeertzjq
06cabd5559
fix: also hijack netrw on VimEnter ( #994 )
...
If setup() is called before netrw is loaded, netrw needs to be hijacked on VimEnter instead.
2022-02-17 08:17:49 +01:00
kiyan
76d4ed5d77
feat: add ability to not hijack the unnamed buffer
2022-02-16 21:00:28 +01:00
kiyan
015e7e8611
fix: focus view if view is open on nvim-tree.open
2022-02-16 20:51:52 +01:00
kiyan
bf697d782d
chore: leave netrw enabled by default but still hijack it
2022-02-16 20:43:41 +01:00
kiyan
64c098d9c2
fix: schedule find-file, not toggle
...
fixes #988
2022-02-15 22:14:43 +01:00
kiyan
72305f3730
fix: schedule find-file on toggle to avoid searching for nvim-tree
...
fixes #986
fixes #987
2022-02-15 20:38:57 +01:00
kiyan
90ea6c01fd
feat: allow no focus in toggle
...
fixes #968
2022-02-15 20:26:00 +01:00
Xavier Young
121f5c9037
fix: use canonical path in windows ( #977 )
2022-02-15 08:36:53 +01:00
kiyan
b1127c5dea
fix: auto open on tab
...
it was scheduled before because of the weird management of events, but
now as it's been fixed in the latest big PR, this works just fine
without scheduling. Needs a redraw because the buffer is recreated.
2022-02-14 19:51:40 +01:00
Kiyan
6da7467944
refacto: buffer management, setup fixes, autocmd fixes ( #967 )
2022-02-14 19:16:45 +01:00
kiyan
0f7da146bf
chore: add guards to prepare setup refactoring
2022-02-11 11:06:11 +01:00
kiyan
0708a1c551
chore: use entry point open instead of lib open
...
cannot yet use entry point open in lib.init
2022-02-11 10:44:48 +01:00
kiyan
36afa32018
chore: move _prevent_buffer_override in entry file
2022-02-11 10:11:59 +01:00
Steve Vermeulen
4ec8c9f364
Added a new option auto_reload_on_write to allow users to disable it for performance reasons ( #956 )
2022-02-09 21:06:07 +01:00
kiyan
5744c469a6
fix(temporary): defer colors setup and hijack window
...
lazy loading + opening will close the window. Need to find a fix for
this.
fixes #947
2022-02-09 21:01:02 +01:00
kiyan
879049ac03
fix: create buffer during setup schedule
...
and move view setup before setup schedule
Fixes #951
2022-02-09 19:29:43 +01:00
kiyan
f938bcb3ae
fix: cleanup all dirs when hijacking window
2022-02-08 22:04:13 +01:00
kiyan
e5aff47940
fix: schedule view setup to allow session to load
...
Fixes #591
2022-02-08 21:53:47 +01:00
kiyan
c8aa3c3e40
fix: clear buffer when hijacking if view bufnr is already defined
...
Allows clearing buffer dir properly on startup
2022-02-08 21:51:56 +01:00