Commit Graph

96 Commits

Author SHA1 Message Date
Alexander Courtis
06e48c29c4
chore(watchers): refactor events and make debouncer safe
- fs poll -> fs events
- make debouncer safe and fix diagnostics events
2022-07-17 08:50:24 +02:00
kiyan
4900d66370 fix(open-file): focus file if already opened 2022-07-16 15:38:50 +02:00
Kiyan
89becc7604
feat(marks): add navigation (next, previous, select) (#1415) 2022-07-16 10:40:47 +02:00
kiyan
078a9e5bf9 chore: move focus_file to utils 2022-07-11 16:55:33 +02:00
kiyan
90bf14014e fix(file rename): edit buffer when renaming to reset filetype
fixes https://github.com/kyazdani42/nvim-tree.lua/issues/1404
2022-07-10 09:39:11 +02:00
kiyan
4bd919a75f fix(get-node-from-path): group dirs should be returned before nodes 2022-07-06 14:00:43 +02:00
Kiyan
f43b8af8f4
chore(iterators): create Iterator module and migrate iterators to use it (#1392) 2022-07-04 14:13:14 +02:00
Alexander Courtis
e401a4c957 feat(watcher): debounce FS watchers 2022-06-28 11:18:22 +10:00
Alexander Courtis
0c13bd76a8
chore: update_root, sync_root_with_cwd, refactor with move_missing_val (#1359)
* chore: opts.update_focused_file.update_cwd -> update_root

* chore: opts.update_cwd -> sync_root_with_cwd

* chore: refactor options with utils move_missing_val

* chore: refactor options with utils move_missing_val

* chore: refactor options with utils move_missing_val

* chore: refactor options with utils move_missing_val

* chore: refactor options with utils move_missing_val

* chore: refactor options with utils move_missing_val
2022-06-26 12:18:14 +10: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
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
82ec79aac5
#1216 show diagnostic signs on all folders (#1244) 2022-05-10 11:22:11 +10:00
kiyan
ebf73f0a9d fix: formatting 2022-04-23 12:45:53 +02:00
kiyan
d4d02cd4d1 fix: formatting 2022-04-23 12:34:56 +02:00
Alexander Courtis
1bdef08cfa
#1059 protect against duplicates (#1143) 2022-04-09 14:59:38 +02:00
Alexander Courtis
51d1af4ee2 stylua indent 2022-04-02 12:59:06 +11:00
Alexander Courtis
1352cb312c naming fix for luacheck 0.26.0 2022-03-26 12:29:01 +11:00
Eli W. Hunter
6492d43fae
Rename child buffers when renaming directory (#1095) 2022-03-22 20:23:16 +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
76d181d480 refacto: move filters and sorters in their own modules
Also exclude filters is taken into account in git ignore
fixes #892
2022-03-06 14:14:56 +01:00
Andreas Bissinger
ceadf83809
feat: add file size in popup (#1049) 2022-03-06 11:26:35 +01:00
Alexander Courtis
9b03ab40e8
remove table_tostring (#1036) 2022-03-02 07:57:44 +01:00
Alexander Courtis
97717d8d23
G migration mechanism (#1030) 2022-03-01 19:54:12 +01:00
Lopi-py
5f047bc5f9
fix: close windows properly (#924) 2022-02-17 08:19:42 +01:00
Xavier Young
121f5c9037
fix: use canonical path in windows (#977) 2022-02-15 08:36:53 +01:00
Xavier Young
fdf63e572d
fix: use fs_realpath to normalize path (#978) 2022-02-15 08:33:11 +01:00
Steve Vermeulen
da59247db9
Fixed some trailing slash bugs (#957)
* Fixed issue where user would have to trigger dir-up action multiple times to get it to work

* Fix to path_join to ensure the result does not have a double slash
2022-02-10 08:56:05 +01:00
kiyan
92a64daf27 fix: normalize cwd with '..' 2022-02-08 21:36:46 +01:00
kiyan
4a9e53143b refacto: ubiquitous language renaming
BREAKING
- rename all 'entry' to 'node' or '_node' if shadowing
- rename all 'entries' to 'nodes'
2022-02-05 18:10:09 +01:00
kiyan
00807d7bd5 fix: find_node offset when hide_root_folder is true
fixes #843
2022-01-21 12:55:07 +01:00
kiyan
1248bcec86 refacto: create actions folder and move some code to it
- move trash.lua into actions
- move system-open from root file to actions
- move copypasta code from fs to actions
- add file_exists in utils
- add rename_loaded_buffers in utils (might need to move that in the
  future).
2022-01-21 11:25:49 +01:00
Yuriy Artemyev
e725572f2a
A more modern way to raise warning message (#893) 2022-01-21 11:07:47 +01:00
kiyan
9b9059f5a3 fix: pathext non existent on unix 2021-11-28 14:23:58 +01:00
UnderCooled
f2f1a34733
Using "vim.env.PATHEXT" to determine Windows executables. (#784) 2021-11-28 14:18:29 +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
Jakub Łuczyński
08a29d350e
Fixed clear_prompt (#693) 2021-10-08 19:26:43 +02:00
kiyan
8cf639c821 Revert "fix: use fnameescape to escape the path for use in cmds"
This reverts commit 58d7c8d178.
2021-06-04 09:02:13 +02:00
kiyan
58d7c8d178 fix: use fnameescape to escape the path for use in cmds
INFO: could potentially lead to issues, might need to revert
2021-06-04 08:25:21 +02:00
Sindre T. Strøm
10c686f7df
feat: Implement window picker. (#340) 2021-05-19 23:30:15 +02:00
Sindre T. Strøm
027e523431
feat: Sort nodes sensibly (#334) 2021-04-22 21:12:47 +02:00
Dmitriy
5c339e5a00
fix lsp diagnostics highligth: find_node index, bufnr (#295) 2021-04-14 23:03:25 +02:00
Kiyan
82b20f5b5e
feat: nvim lsp integration (#260) 2021-04-08 23:30:35 +02:00
Sindre T. Strøm
50d31fb7f3
feat: Highlight gitignored files (and fix g:nvim_tree_gitignore) (#268) 2021-04-08 22:52:56 +02:00
peach lasagna
eadead6072
add Gitignore (#251) 2021-03-30 20:11:25 +02:00
Federico Scodelaro
31ef294d05
Patch windows (#222) 2021-03-09 20:12:10 +01:00
kiyan
0136801444 chore: rename lib folder to nvim-tree
Allows external access to the lua api and follow neovim plugins better
practices
2021-02-22 21:02:23 +01:00