Commit Graph

74 Commits

Author SHA1 Message Date
kiyan
0a2f6b0b6b fix(dirchange): do not change dir when switching windows
- Avoid changing dir when switching windows, except when
changing tabpage.
- Load nvim-tree with passed directory when opening with `nvim DIR`

Fixes #858 #720
2021-12-24 14:50:20 +01:00
Sergey Kuznetsov
fd87c240df Fix redrawing tree when not inside git repo (#836) 2021-12-12 12:25:15 +01:00
eightpigs
e84828806c fix: NvimTree does not open the file when it is open standalone (#815) 2021-12-05 22:32:08 +01:00
Munif Tanjim
97f0039149 fix: close_node behavior on file (#799) 2021-11-28 14:14:42 +01:00
Kiyan
6662b60a2b feat/chore: rewrite git with job and some other fixes (#743)
* feat/chore: rewrite git with job and some other fixes

* fix: fs clear window, rename echo_warning -> warn

also fix renaming and add an event blocker to avoid running many events
at the same time
2021-11-27 16:02:54 +01:00
kiyan
a6c1d45dd6 chore: refacto populate filtering
move `nvim_tree_ignore` and `nvim_tree_hide_dotfiles` to setup
2021-10-30 12:25:09 +02:00
M.A
fd3969ec98 feat: add hide_root_folder (#728) 2021-10-24 16:48:57 +02:00
Yehya Elmasry
5014f59585 Fix tree refreshing logic (#739) 2021-10-23 15:35:46 +02:00
Justin
9f90be7b67 fix: escape directory name before cd-ing (#725) 2021-10-16 17:43:22 +02:00
kiyan
86e6dc627e chore: move help rendering in its own file 2021-10-10 11:48:02 +02:00
kiyan
a51795946e fix: remove change_dir window event check
fixes #673. Not sure why this check was added in the first place, but
some testing made me realize maybe it wasn't useful.
2021-10-09 10:54:43 +02:00
kiyan
618286b726 fix: get_node_at_line for group nodes 2021-10-08 20:01:09 +02:00
kiyan
fb32f35d7f chore: allow configuring height
also fixes window management for top and bottom tree side
2021-10-03 14:13:10 +02:00
kiyan
8fe2b547ac feat: add lib.collapse_all function 2021-10-03 12:58:08 +02:00
kiyan
8dbba0c2c9 fix: avoid running the buf respect cwd on every open 2021-10-02 13:13:55 +02:00
kiyan
c0cd3aeb65 fix: do not run refresh if tree cwd is nil 2021-09-30 13:11:05 +02:00
kiyan
acfb3c0bfb fix: do not refresh tree to only redraw 2021-09-30 13:02:20 +02:00
kiyan
1edebb7894 chore: lsp diagnostics setup 2021-09-26 11:56:44 +02:00
kiyan
84126d3eb5 fix: retrieve last group node when iterating for siblings or parent 2021-09-12 14:04:41 +02:00
Uy Ha
5bca2006cc Make time between each tree refresh configurable (#599) 2021-08-30 18:53:14 +02:00
kiyan
d705feda5a fix: fs refresh override refresh clock 2021-08-28 14:52:10 +02:00
kiyan
0a178d17bc fix: double entries and wrong cursor value when using mksession 2021-08-28 10:06:36 +02:00
Khang
c75e4a63b7 fix: respect_buf_cwd #567 (#583) 2021-08-21 12:04:44 +02:00
Yusuke Uchida
143505b281 Added new option, respect_buf_cwd (#533) 2021-08-07 09:59:42 +02:00
kiyan
cf9582962f fix: add refresh guard mecanism to avoid doing too many updates 2021-07-20 00:05:03 +02:00
kiyan
42b23246bc fix: do not redraw git on each folder when updating 2021-07-19 22:26:08 +02:00
kiyan
f178c8c8c5 run nvim tree refresh on neogit status change 2021-07-10 14:25:21 +02:00
Andrew Wong
64aacb67ab fix: don't populate git status when git unused (#499) 2021-07-10 10:05:53 +02:00
kiyan
768788476e chore(async): schedule git on refresh 2021-06-30 19:47:34 +02:00
kiyan
ed668a9c10 chore(luacheck): fix luacheck issues 2021-06-29 22:17:40 +02:00
kiyan
b31003e43a chore(git): schedule status update and redraw when git status update is done 2021-06-29 22:02:37 +02:00
kiyan
92ee4471fd fix(picker): enable relative windows 2021-06-29 10:15:25 +02:00
kiyan
ed7f3851d1 fix(picker): do not select floating windows 2021-06-28 20:31:15 +02:00
Luke Kershaw
a06f949607 feat: Help UI for keybindings (#470) 2021-06-28 19:38:05 +02:00
kiyan
906a35cd0e fix: do not change dir on win changed and fix going up a dir 2021-06-09 07:46:28 +02:00
kiyan
714dee57e5 fix: do not load cwd on each init call to avoid double rendering at startup when doing vim DIR 2021-06-07 20:18:19 +02:00
kiyan
3196205131 chore: switch cd to lcd and update root on dirchanged 2021-06-07 20:09:48 +02:00
Sindre T. Strøm
9aed1acb47 fix: Gitignore rules not being applied on new nodes. (#415) 2021-05-31 09:12:59 +02:00
Sindre T. Strøm
23935ff003 feat: Option for excluding buffers from the window picker. (#401) 2021-05-27 09:19:10 +02:00
Sindre T. Strøm
1499360359 fix(lib): Refresh tree if it was opened before init. (#399) 2021-05-26 09:56:15 +02:00
Alexander Popov
0c97e6406c add pick guard for focusable (#398) 2021-05-25 20:05:33 +02:00
Sindre T. Strøm
f61ea4dc04 fix(lib): Handle nvim_win_get_option correctly when it fails. (#394) 2021-05-25 19:58:37 +02:00
Sindre T. Strøm
5e7e5f2949 feat(lib): Improved tabnew behavior. (#395) 2021-05-25 19:53:43 +02:00
kiyan
ef570074e0 fix: vim.v returns vim.NIL not nil anymore 2021-05-20 22:37:55 +02:00
Sindre T. Strøm
12dd571202 fix(lib): Fix the tabnew callback. (#386) 2021-05-20 21:43:06 +02:00
Sindre T. Strøm
10c686f7df feat: Implement window picker. (#340) 2021-05-19 23:30:15 +02:00
kiyan
4706b74938 hotfix dir up 2021-05-19 23:27:26 +02:00
Sindre T. Strøm
624bec7ecd refactor: open_file (#345) 2021-05-17 22:13:30 +02:00
Sindre T. Strøm
c2d71046c6 fix(git): Fix the gitignore implementation. (#335) 2021-04-22 21:32:10 +02:00
Sindre T. Strøm
e3516eeb6e fix(diagnostics): Update lsp diagnostics signs when opening/closing folders. (#325) 2021-04-20 18:38:28 +02:00