Raafat Turki
3c936c7cb6
feat(trash): default command 'trash' -> 'gio trash' ( #1323 )
2022-06-06 11:13:37 +02:00
Rammiah
6f6eab14dc
feat(renderer): indent_markers add a item icon ( #1321 )
2022-06-05 14:19:19 +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
Alexander Courtis
a5793f1edb
doc: add help wanted and contributing ( #1319 )
2022-06-05 11:52:08 +02:00
Alexander Courtis
3aeb59b075
doc: setup call is only allowed once
2022-06-04 12:37:02 +10:00
Kiyan
2002b21be7
feat(resize): add ability to grow and shrink the tree when drawing ( #1293 )
...
Will adapt the view size based on the longest line.
fixes #865
2022-05-31 09:05:00 +02:00
Alexander Courtis
8198fa01fc
doc: default mappings
2022-05-30 12:53:28 +10: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
84cb79e760
update auto-close answer
2022-05-28 12:13:50 +10: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
17d5bd64e8
chore(config): auto resize the tree by default when opening a file.
...
config.open_file.auto_resize is now true by default.
Breaking change for default configurations.
See https://github.com/kyazdani42/nvim-tree.lua/issues/1275#issuecomment-1133515999
2022-05-21 11:27:49 +02:00
Michael
9563a11ce0
feat: reload explorer on buf enter ( #1265 )
2022-05-17 10:04:08 +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
Alexander Courtis
99e32fea14
add fish performance tip to README.md
2022-05-17 13:03:59 +10: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
47732b6dbf
chore(doc): improve help by allowing accessing nested options ( #1246 )
2022-05-09 08:59:09 +02:00
Kiyan
a1600e57f2
feat(renderer): allow placing git icons after filename ( #1203 )
...
This feature allows placing git icons after the filename.
2022-05-07 14:05:51 +02:00
kiyan
545c43ffd9
chore(doc): add information about nightly tag in readme
2022-05-07 11:57:05 +02:00
Kiyan
3ac443207f
#1166 validate config ( #1195 )
2022-04-26 21:11:24 +02:00
George Looshch
62e6f4da1e
doc: add missing space in readme ( #1202 )
2022-04-26 21:08:07 +02:00
kiyan
09a47aed8d
Revert " #1166 validate user's options ( #1177 )"
...
This reverts commit 5bbd3a0a91 .
2022-04-24 14:41:48 +02:00
kiyan
2c46464226
chore: add more sensible defaults for icons
...
adds a symlink and default icon by default
fixes #1192
2022-04-24 11:29:03 +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
Alexander Courtis
7f2ed4e043
doc: tidy readme logging
2022-04-21 09:57:35 +10:00
Alexander Courtis
cdbc210d92
#1172 add renderer.icons.webdev_colors default true ( #1175 )
2022-04-18 15:45:14 +02:00
Alexander Courtis
7629d4d106
#1091 diagnostics logging ( #1170 )
2022-04-18 15:39:51 +02:00
Alexander Courtis
84993e9e9f
Remove unnecessary packer .config - it will clobber user options! See #1094
2022-04-16 11:27:29 +10:00
Alexander Courtis
d5e4f0655b
add view.indent_markers ( #1134 )
2022-04-10 15:40:29 +02:00
Lò [By The Way]
83fe370d52
Added actions.opts.use_sys_clipboard, [issue: 789 ] ( #1141 )
2022-04-10 15:39:36 +02:00
Alexander Courtis
6368880968
add open_on_setup_file option ( #1133 )
2022-04-03 14:31:40 +02:00
rakanzaidm
5eef6185b1
fix missing " and "toggle without focus" example ( #1116 )
...
fixing the second " that was missing, and changing the second parameter for the toggle to true because that's how to enable the no focus toggle (as in no_focus = true)
2022-03-28 09:37:34 +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
ba121f0244
document performance issues and add to bug report template ( #1111 )
2022-03-27 11:52:51 +02:00
Alexander Courtis
591b64873f
update doc g:nvim_tree_icons to match defaults
2022-03-27 15:19:31 +11:00
kiyan
20433ced8a
chore: add not about nosplitright in the readme
2022-03-26 14:19:37 +01:00
Alexander Courtis
54c78dbca2
#791 add profiling for some operations ( #1108 )
2022-03-26 13:22:28 +01:00
Alexander Courtis
5c20f5a7d8
markdown comments displayed in text block; replace with lua comments ( #1090 )
2022-03-20 13:22:11 +01:00
Alexander Courtis
20797a8d74
#1050 #1068 various default options tweaks ( #1074 )
2022-03-18 11:35:15 +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
a65078e3ae
#1060 use one log file with the option to truncate ( #1075 )
2022-03-12 14:43:33 +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
c25be06612
feat: close file info popup if on same node ( #1054 )
2022-03-06 13:07:12 +01:00
Andreas Bissinger
7cb689795e
feature: add feature to increase/decrease size ( #1048 )
2022-03-06 11:33:28 +01:00
Andreas Bissinger
50a927f176
feat: add popup information ( #1042 )
2022-03-03 21:13:10 +01:00
Andreas Bissinger
4fedb93cec
feat: add new keybinding "b" to run a command in the focused node ( #1024 )
2022-03-03 09:05:03 +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
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
3d8912ca53
add more sensible defaults for window_picker.excludes ( #1027 )
2022-02-28 21:33:24 +01:00
Andreas Bissinger
48e76bc031
feat: Add a new keybinding to search and expand a certain path ( #1014 )
2022-02-22 23:36:59 +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
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
a9fe57c0d8
chore: update docs to add H and formatting
2022-02-21 18:48:22 +01:00
Andreas Bissinger
9f3dc98de7
feat: Add a new keybinding "W" to collapse the whole tree ( #1013 )
2022-02-21 13:46:55 +01:00
ilkecan
95df001185
fix(doc): nvim_tree_create_in_closed_folder default value ( #1015 )
2022-02-20 23:19:14 +01:00
wongxy
41f51508e3
fix: use "" as flag to remove default mappings ( #1011 )
2022-02-20 11:29:09 +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
kiyan
589e39d642
chore: document toggle method second parameter
2022-02-19 17:00:20 +01:00
kiyan
76d4ed5d77
feat: add ability to not hijack the unnamed buffer
2022-02-16 21:00:28 +01:00
kiyan
bf697d782d
chore: leave netrw enabled by default but still hijack it
2022-02-16 20:43:41 +01:00
Kiyan
6da7467944
refacto: buffer management, setup fixes, autocmd fixes ( #967 )
2022-02-14 19:16:45 +01:00
kiyan
b54de4b48a
doc(readme): update requirement from 0.5 to 0.6
2022-02-09 22:37:38 +01:00
kiyan
a979e3b245
chore: simplify readme
2022-02-09 22:35:06 +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
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
c74c44d80b
fix: remove unused config from doc
...
closes #820
2022-02-05 13:15:22 +01:00
kiyan
724716ec2e
fix(doc): remove tree_cb from edit_no_picker
2022-01-21 12:36:45 +01:00
Sander van Harmelen
14bdf134f9
Add a mode that allows edit without the picker ( #873 )
2022-01-21 12:36:28 +01:00
Sander van Harmelen
1ac3502290
Add a config option to use :cd instead of :lcd ( #874 )
...
Fixes #829
2022-01-21 12:29:30 +01:00
Carlos Coves Prieto
fa8bb09de4
custom node keymaps ( #855 )
2022-01-21 11:03:49 +01:00
kiyan
e49bd8ffd3
chore(doc, mappings): remove S-CR mapping because its invalid
...
Fixes #850
2021-12-24 12:57:19 +01:00
Xun
bc13a1ffca
allow signcolumn settings ( #805 )
2021-12-12 13:00:54 +01:00
Raafat Turki
e842f08884
feat: add trashing ( #749 )
2021-11-28 15:26:24 +01:00
JavierPoduje
9db956fab7
feat: allow number and relativenumber settings ( #762 )
2021-11-28 14:18:43 +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
Reyhan Ünal
5d8453dfbd
docs: add screenshot4.png ( #763 )
2021-10-31 16:45:19 +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
tiagovla
c4ecf4416b
docs: fix typo ( #746 )
2021-10-25 20:56:15 +02:00
M.A
fd3969ec98
feat: add hide_root_folder ( #728 )
2021-10-24 16:48:57 +02:00
figsoda
514619897f
feat: add NvimTreeFindFileToggle ( #735 )
2021-10-23 15:35:28 +02:00
kiyan
94b8604e86
chore: complete the diagnostic setup migration
...
Colors groups and icons are now in diagnostics.lua. They are defined on
setup which allows an easier configuration and better documentation.
`lsp_diagnostics` boolean value has been moved into a table `diagnostics`
with `enable` and `icons` as properties.
2021-10-10 11:42:22 +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
137628acb6
chore: update_to_buf_dir allow auto_open configuration
...
also improve the documentation with doc references
2021-10-02 13:53:51 +02:00
kiyan
4cfe355035
doc: add migration in readme
2021-10-02 13:16:59 +02:00
kiyan
7c88a0f8ee
doc: add tips section to readme
2021-10-01 16:05:18 +02:00
kiyan
9282944078
fix: add option update_to_buf_dir in setup
...
avoid hijacking the tree for use case of users using vim-dirvish
2021-09-30 12:43:20 +02:00
kiyan
f8b5eb0bd8
docfix: remove EOF tag
2021-09-28 00:36:10 +02:00
kiyan
14c13903b7
fix: remove tip from readme because we can use NvimTreeResize
2021-09-26 15:00:12 +02:00
kiyan
3633e728e0
chore: refacto view setup and simplify the code
2021-09-26 14:55:49 +02:00
booperlv
2a5d529219
feat: option to set path destination to parent folder when cursor is on a closed folder while creating files ( #628 )
2021-09-26 12:10:19 +02:00
kiyan
1edebb7894
chore: lsp diagnostics setup
2021-09-26 11:56:44 +02:00
Kiyan
a864b80baf
chore: refacto setup part 1 ( #603 )
...
* chore: refacto setup part 1
refacto setup for code entrypoint
following options switched boolean values as options to the setup function:
- `nvim_tree_disable_netrw` -> `disable_netrw`
- `nvim_tree_hijack_netrw` -> `hijack_netrw`
- `nvim_tree_auto_open` -> `open_on_setup`
- `nvim_tree_auto_close` -> `auto_close`
- `nvim_tree_tab_open` -> `tab_open`
- `nvim-tree-update-cwd` -> `update_cwd`
- `nvim_tree_hijack_cursor` -> `hijack_cursor`
- `nvim_tree_system_open_command` -> `system_open.cmd`
- `nvim_tree_system_open_command_args` -> `system_open.args`
- `nvim_tree_follow` -> `update_focused_file.enable`
- `nvim_tree_follow_update_path` -> `update_focused_file.update_cwd`
Also added new option `update_focused_file.ignore_list` which will
ignore filepath or filetypes that matches one entry of the list when
updating the path if update_cwd is true.
* add deprecation warning
* update readme
* schedule on enter to avoid running before vim first buffer has loaded
* update docs
* correct typo
* rename tab open -> open on tab
2021-09-25 16:43:39 +02:00
frogtile
da26dfa79a
Update README.md ( #621 )
2021-09-25 16:26:12 +02:00
gegoune
d7f73b5ae9
feat(config): add notify to nvim_tree_window_picker_exclude ( #613 )
2021-09-12 14:31:31 +02:00