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
kiyan
7a19c3e747
fix: reschedule on_enter and setup autocmd
...
Wait for nvim to finish before checking buftypes.
Fixes #944
Fixes #942
2022-02-08 21:42:14 +01:00
kiyan
d8bf1adcdc
fix: update neovim path when nvim is opened with nvim dir
...
fixes #945
2022-02-08 21:02:22 +01:00
kiyan
f183c7f311
chore: move last autocmds from view to entrypoint
2022-02-08 20:56:02 +01:00
kiyan
ea92e7bf7c
refacto: set tree explorer in the global state
...
also remove the redraw method and use renderer.draw immediately
2022-02-07 22:07:08 +01:00
kiyan
d1ff893b32
fix: disable update_to_buf_dir when netrw is not disabled
...
fixes #718
2022-02-07 09:19:44 +01:00
kiyan
9215533382
fix: defer to 100ms empty buffer removal
2022-02-06 21:29:24 +01:00
kiyan
f173d28003
fix: remove schedule for on_enter
2022-02-06 20:09:59 +01:00
kiyan
923e034668
refacto: sort actions declaration, remove close from main file
...
fixes #921
- use view.close instead of nvim-tree.close
- put preview code inside the execution logic on keypress
- sort keys in keypress_funcs
- remove empty buffer when hijacking window
2022-02-06 19:25:23 +01:00
kiyan
0573c68fd7
fix: check tree exists before hijacking buffer dir
...
fixes #934
2022-02-06 18:54:57 +01:00
kiyan
8a6c7bae3a
refacto: move code ton explorer and simplify some internal apis
2022-02-06 17:58:24 +01:00
kiyan
7829d7c7cf
refacto: move set_index_and_redraw -> actions.find-file.fn
2022-02-06 16:32:44 +01:00
kiyan
23c95a674f
chore: move refresh/reloaders into actions.reloaders
2022-02-06 16:24:14 +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
f74dd24c58
refacto: move some code into actions
...
(non breaking, old assignments link to new assignments)
- move lib.collapse-all into actions/collapse-all
- move lib.dir-up into actions/dir-up
- move lib.change-dir into actions/change-dir
- use setup option for change-dir global (and use the old option for
setup)
2022-02-05 17:42:40 +01:00
kiyan
96650c801f
BREAKING: rename populate -> explorer
...
- rename populate.lua to explorer.lua
- rename refresh_entries to refresh in explorer.lua
- rename populate to explore in explorer.lua
2022-02-05 16:56:42 +01:00
kiyan
14461373e0
refacto: move all keybind logic to actions/init
2022-01-21 12:21:23 +01:00
kiyan
2b2bf0721d
refacto: move keypress to actions/init
2022-01-21 12:07:54 +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
kiyan
dc5eae6512
refacto: remove fs folder and move code to actions
...
- remove file moved to actions.remove-file.lua
- rename file moved to actions.rename-file.lua
2022-01-21 11:54:35 +01:00