Commit Graph

587 Commits

Author SHA1 Message Date
kiyan
b5c2e52ed0 fix(actions): help, close and custom only
fixes #908
2022-01-21 15:56:29 +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
da302ea3b1 fix(actions): remove nvim_tree_callback from edit_no_picker 2022-01-21 12:37:47 +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
kiyan
14461373e0 refacto: move all keybind logic to actions/init 2022-01-21 12:21:23 +01:00
kiyan
ba3f3357eb chore: remove redundant return in renderer/init 2022-01-21 12:09:04 +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
kiyan
45671e94be refacto: extract create_file into actions module 2022-01-21 11:45:52 +01:00
Wen Jun
2e25ba5958 feat(preview): enhanced preview to toggle folder (#907)
Co-authored-by: MusiCool <wenjun.super@bytedance.com>
2022-01-21 11:29:17 +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
kiyan
691a1c9699 fix lint issue 2022-01-21 11:19:56 +01:00
NiYanhhhhh
d874eb9065 fix: colors setup highlight and folder highlight range fix (#788) 2022-01-21 11:17:51 +01:00
Yuriy Artemyev
e725572f2a A more modern way to raise warning message (#893) 2022-01-21 11:07:47 +01:00
Carlos Coves Prieto
fa8bb09de4 custom node keymaps (#855) 2022-01-21 11:03:49 +01:00
Sávio Carlos Martins Costa
0982c6a35a restore-feat: highlight-git-ignored-files (#847) 2022-01-21 10:59:38 +01:00
Carlos Coves Prieto
9c0f410c50 preserve previous focus (#841) 2022-01-21 10:57:50 +01:00
Michael
9e2f6b6f25 feat: add exclude filter list (#878) 2022-01-21 10:48:58 +01:00
hellojukay
a896a2b5a2 fix demo in doc (#884)
fix lua DSL syntax error
2022-01-21 10:47:22 +01:00
Eli W. Hunter
ef6577205c Warn about dirbuf.nvim in update_to_buf_dir docs (#901) 2022-01-21 10:46:05 +01:00
Alexandr Makurin
c04ab35b07 refacto: change fs_access to fs_stat to check file existence in fs 2022-01-21 10:45:21 +01:00
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
kiyan
e49bd8ffd3 chore(doc, mappings): remove S-CR mapping because its invalid
Fixes #850
2021-12-24 12:57:19 +01:00
kiyan
839b4c61e0 fix(doc): add | to diagnostics.show_on_dirs 2021-12-24 12:47:49 +01:00
Reviakin Evgeny
239f2d6fea show diagnostics on parent dirs if nodes with diagnostics are not visible (#862) 2021-12-24 12:47:23 +01:00
Rónán Carrigan
bb12c70367 fix(view): check wins are floating (#863) 2021-12-24 12:46:22 +01:00
Queensferry
0aec64d56c feat: set up view width/height with function (#848) 2021-12-16 22:15:47 +01:00
Xun
f408781a46 delete extra space (#842) 2021-12-12 20:52:03 +01:00
Xun
bc13a1ffca allow signcolumn settings (#805) 2021-12-12 13:00:54 +01:00
Jason Hansen
06a2b799c6 Fix for deprecated vim.lsp.diagnostic.get_all (#840) 2021-12-12 12:34:05 +01:00
Sergey Kuznetsov
fd87c240df Fix redrawing tree when not inside git repo (#836) 2021-12-12 12:25:15 +01:00
Kiyan
2e33b16543 Update issue templates 2021-12-05 23:24:59 +01:00
kiyan
2301b3675f fix(git): check handle before accessing it
Fixes #814
Should fix #816
2021-12-05 22:50:43 +01:00
Kiyan
0ad5d2ca4e Create FUNDING.yml 2021-12-05 22:45:21 +01:00
kiyan
8fd3d276e1 fix(git): add --no-optional-locks to avoid locking git process
Closes #810.
2021-12-05 22:40:14 +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
shikun
65b8b19c8b fix: idx passed to api.nvim_win_set_cursor may be -1 (#821)
This causes out of range error on CursorMoved event is fired if hijack_cursor option is set to true.
Although I don't know why it fixes the issue, but it has been working fine for me.

Potentially fix #783, #803
2021-12-05 22:27:20 +01:00
Raafat Turki
e842f08884 feat: add trashing (#749) 2021-11-28 15:26:24 +01:00
kiyan
6488075d6a fix: do not indent for arrows when indent markers is active 2021-11-28 15:24:58 +01:00
kiyan
3916c0fc60 fix: handle CM git status 2021-11-28 14:35:05 +01:00
kiyan
9b9059f5a3 fix: pathext non existent on unix 2021-11-28 14:23:58 +01:00
JavierPoduje
9db956fab7 feat: allow number and relativenumber settings (#762) 2021-11-28 14:18:43 +01:00
UnderCooled
f2f1a34733 Using "vim.env.PATHEXT" to determine Windows executables. (#784) 2021-11-28 14:18:29 +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
b853e1083c Revert "fix: remove buffer when its empty when hijacking"
This reverts commit 0babcb4f2c.
2021-11-27 14:08:46 +01:00
kjssad
ea38eaa967 fix(nvim-0.6): wrong color group for warning sign (#792) 2021-11-27 14:07:36 +01:00