David
6b6f8f1b6b
fixes #175 | early return if internal state is invalid(does not match nvim's state
2021-01-17 23:28:17 +01:00
li
01ae59823c
add close binding
2021-01-17 23:26:45 +01:00
Joel D. Elkins
787cef2a1d
Use vim.fn instead of vim.api.nvim_eval
2021-01-15 19:35:38 +01:00
Joel D. Elkins
bacb987b77
Execute action in target window if possible
...
Change lib.open_file semantics somewhat to open files in the window from
which the tree was opened, if possible. I call this window the target.
If the buffer in the target window is modified, then execute the
desired configured split (split or vsplit) relative to the target. If
the target is unmodified, open the selected node in the target, hiding
the buffer. If the selected node is already visible in a window, don't
do any of the foregoing; instead, just jump to that window. If the
target has been closed, the preserve the original semantics.
2021-01-15 19:35:38 +01:00
Joel D. Elkins
e935ec3bb0
When re-opening the tree buffer, navigate to the target window's working dir
2021-01-15 19:31:44 +01:00
Joel D. Elkins
52a2905135
On dir_up, keep the current node selected and visible
2021-01-15 19:31:44 +01:00
Joel D. Elkins
0a4123b71f
Move dir_up functionality into lib and make '-' a default keymap for it
2021-01-15 19:31:44 +01:00
Joel D. Elkins
361e20ecfa
Add dir_up function to expose navigating up one directory
2021-01-10 16:07:02 +01:00
Zi莱卷
86944b51c0
renaming: lua-tree -> nvim-tree
2020-12-28 16:32:27 +01:00
kiyan42
05711754d9
renaming: lua-tree -> nvim-tree
2020-12-27 19:14:34 +01:00
kiyan
2e7118ca17
check buffer is valid when renaming
2020-12-23 00:02:43 +01:00
Yiqun Ding
5080c5c44c
fix file icon length
2020-12-20 18:32:11 +01:00
Vitaly Kushner
9810f8d8c9
Fix lua_tree_allow_resize variable name in docs
...
It's actually `lua_tree_width_allow_resize` in the code.
2020-12-19 14:37:51 +01:00
kiyan
bc8245c7bb
enable sign column by default to have a little padding
2020-12-16 19:20:21 +01:00
cqroot
2cd12d01f8
fix: missing local
2020-12-15 20:04:59 +01:00
cqroot
043678c7bb
feat: g:lua_tree_ignore support *.extension
2020-12-15 20:04:59 +01:00
ttys3
c84b8b4ab9
feat: auto close: avoid force user to press Enter key to exit
...
with `let g:lua_tree_auto_close = 1`, while closing the tree when it's the last window,
neovim ask the user: "Press ENTER or type command to continue"
this patch should fixup the problem
2020-12-14 22:04:31 +01:00
Simon Zeng
9aa8be639d
Add nil check for link_to
2020-12-14 22:01:24 +01:00
kiyan
0862bcc08e
allow opening symlink to folders
2020-12-13 17:13:35 +01:00
kiyan
033b465f34
add RM state and ' A' to hl groups
2020-12-13 16:52:23 +01:00
kiyan
7e6177b8ff
new file untracked is git dirty, new file unstaged is git new
2020-12-13 16:48:12 +01:00
kiyan
e7fe054ef1
back to basic functionnalities with nvimtreefindfile
2020-12-10 00:03:57 +01:00
kiyan
811dacfb98
find file sets cursor on file if tree is open
2020-12-09 22:03:39 +01:00
Rafael Bodill
2cec5892d7
Add close_node feature to README.md
2020-12-07 01:45:09 +01:00
Rafael Bodill
54403415ed
Add close_node action to close parent directory
2020-12-07 01:45:09 +01:00
kiyan
2bf0043409
fix issue with data race when opening with luatreefindfile
2020-12-02 20:39:56 +01:00
Yiqun Ding
4b1fa51e4f
fix tree winnr
2020-11-30 23:27:22 +01:00
kiyan
9c3bc7d031
also schedule open and follow
2020-11-29 20:16:57 +01:00
kiyan
ba4dac1e59
wrap refresh logic in vim.schedule callback
2020-11-29 20:16:57 +01:00
kiyan
d3eb9cc4c6
fix git root for v1 (monkeypatch)
2020-11-22 16:34:02 +01:00
Morten Paulsen
ef893b523d
g:lua_tree_quit_on_open respects preview
2020-10-31 20:39:46 +01:00
Raphael
0602058af5
no wrap in luatree buffer
2020-10-30 18:14:52 +01:00
Jan Sipr
521f2cfb5c
Fix lua_tree_quit_on_open configuration option
2020-10-30 08:04:59 +01:00
kiyan42
ebf6f2a21a
monkeypatch to open tree after processing all startup files and setting first filetype
2020-10-26 21:12:49 +01:00
kyazdani42
6c2ee96207
open tree on package load instead of vimEnter
2020-10-24 09:11:11 +02:00
kyazdani42
b55cc721da
fix update git hl on refresh even if git icons are disabled
2020-10-24 09:07:07 +02:00
kyazdani42
48d433d059
fix allow_resize and document it
2020-10-24 09:04:02 +02:00
jasilven
87a4d60bbc
feat: allow window width resize
2020-10-21 10:13:30 +02:00
geoboom
85d4edc1c1
Fix Vim setup snippet
2020-10-20 19:09:21 +02:00
kiyan42
1ba25ce088
open tree even when file doesn't exists
2020-10-19 23:05:43 +02:00
johnpyp
998f5f1eda
Fix readme: close_on_open -> quit_on_open
2020-10-17 12:24:20 +02:00
johnpyp
fc210e3375
Added relevant documentation for quit-on-open
2020-10-17 12:24:20 +02:00
johnpyp
c496c8b9d9
Add main quit-on-open functionality
2020-10-17 12:24:20 +02:00
luathn
52d28143cb
Correct typo in the document
2020-10-15 18:03:15 +02:00
Zach Coyle
47cd138808
add edge-cases around deleting/staging
2020-10-14 10:02:38 +02:00
kyazdani42
640d147d70
fix small issue with cursor not being placed on the last line with a folder
2020-09-12 12:30:46 +02:00
kyazdani42
385daf2108
fix cd to path with symbols need "
2020-09-12 12:20:24 +02:00
Kristijan Husak
bbf517dbb5
Add option to rename files when copying/moving. Closes #95 .
2020-09-05 11:05:43 +02:00
kiyan42
9eea2b8c62
feat: add ability for the tree to change tab
...
- remove tags file
- open/close the tree on `TabEnter` with the option `g:lua_tree_tab_open`
2020-08-18 19:11:10 +02:00
kiyan42
6a0e76edc8
add third screenshot
2020-08-17 18:20:51 +02:00