Commit Graph

736 Commits

Author SHA1 Message Date
Andreas Bissinger
d5a12ac9db fix: correct index in movement actions (#1058) 2022-03-09 09:03:22 +01:00
kiyan
08c57660a7 fix: switch order of modification time sorter 2022-03-07 22:32:19 +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
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
kiyan
5cfe768882 fix: resize if size is nil 2022-03-06 14:10:56 +01:00
Andreas Bissinger
c25be06612 feat: close file info popup if on same node (#1054) 2022-03-06 13:07:12 +01:00
kiyan
b493e23ed7 fix: wipe buffer before initializing
Buffer was wiped after being created which resulted in trying to setting
buffer options and name to nil buffer.
fixes #1031
2022-03-06 12:00:51 +01:00
Alexander Courtis
7878e92cd5 New Bug Report Template (#1051) 2022-03-06 11:37:45 +01:00
Andreas Bissinger
7cb689795e feature: add feature to increase/decrease size (#1048) 2022-03-06 11:33:28 +01:00
Andreas Bissinger
ceadf83809 feat: add file size in popup (#1049) 2022-03-06 11:26:35 +01:00
Andreas Bissinger
5015e7226c remove tabs (#1047) 2022-03-05 13:38:26 +01:00
Grzegorz Rozdzialik
ac858a28a2 fix(run-command): handle current directory node (#1046)
Handle the node representing the current directory (the topmost node in
the nvim-tree window). That node does not have the `absolute_path` set.
Use `TreeExplorer.cwd` instead, similar to the logic in `change-dir`.
2022-03-04 13:02:42 +01:00
kiyan
a3f256dc1b fix(find-file): match folders with prefix, not containing the node
avoid opening folders matching part of the string (/dev matching
/home/dev for instance)
2022-03-03 23:56:29 +01:00
smhc
f6aba661ec Close help on q/close instead of ignore keypress (#1043)
Co-authored-by: Shane Hird <shane.hird@csgicorp.com>
2022-03-03 23:43:14 +01:00
Brandon D
690c7e96ed feat: add sort_by option to sort files by modification time (#1040)
Co-authored-by: Brandon Dwiel <bdwiel@apple.com>
2022-03-03 23:41:58 +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
866442fd2c feat: focus current buffer when opening in current buffer
fixes #1038
2022-03-02 21:42:05 +01:00
Alexander Courtis
9b03ab40e8 remove table_tostring (#1036) 2022-03-02 07:57:44 +01:00
kiyan
38cc6305b4 fix: forgot resize_window option in open-file setup 2022-03-01 21:11:11 +01:00
kiyan
0e7856fd8d BREAKING_CHANGE: nvim-tree buffer was renamed
You should now use `NvimTree_*` when matching with an autocmd
There is now 1 buffer per tabpage.
2022-03-01 20:58:04 +01:00
kiyan
f37c3ffa59 chore: move old option into setup from entrypoint to legacy.lua 2022-03-01 20:34:10 +01:00
kiyan
5624bf1857 chore: add feature request template 2022-03-01 20:26:34 +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
9ec710e338 remove semicolons (#1035) 2022-03-01 19:57:05 +01:00
Andreas Bissinger
1b8757e530 fix: changed search_node action to determine correct index (#1022) 2022-03-01 19:56:43 +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
97717d8d23 G migration mechanism (#1030) 2022-03-01 19:54:12 +01:00
Alexander Courtis
3d8912ca53 add more sensible defaults for window_picker.excludes (#1027) 2022-02-28 21:33:24 +01:00
Alexander Courtis
7034d26921 doc: remove unused g: (#1028) 2022-02-28 21:32:11 +01:00
Alexander Courtis
ce3604d33c #972 bug: prev_git_item with hijack_cursor selects icon instead of previous file (#1025) 2022-02-28 21:31:23 +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
kiyan
19346da6e1 fix: abandon window and bufnr before editing file
fixes a vinegar mode issue
2022-02-22 21:45:37 +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
61b57e3676 doc: fix mappings setup for vinegar 2022-02-22 10:59:44 +01:00
kiyan
2898c4d58f hotfix: avoid duplicates when finding file
fixes #1018
2022-02-22 10:56:33 +01:00
kiyan
9bea1947fb chore: fix documentation on vinegar 2022-02-22 09:23:01 +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
b59ff27087 fix: typo in doc 2022-02-21 21:45:02 +01:00
kiyan
f8f297acbf feat: add vinegar abilities to the tree
fixes #860
2022-02-21 21:42:43 +01:00
kiyan
f977e5c05a refacto: make git module interface to wait for job to finish
allows simplify the explore/reload/find/initialization by making the
whole code synchronous. No more callback needed.
2022-02-21 19:12:16 +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