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
kiyan42
05711754d9
renaming: lua-tree -> nvim-tree
2020-12-27 19:14:34 +01:00
kiyan
bc8245c7bb
enable sign column by default to have a little padding
2020-12-16 19:20:21 +01:00
kiyan
0862bcc08e
allow opening symlink to folders
2020-12-13 17:13:35 +01:00
Rafael Bodill
54403415ed
Add close_node action to close parent directory
2020-12-07 01:45:09 +01:00
kiyan
ba4dac1e59
wrap refresh logic in vim.schedule callback
2020-11-29 20:16:57 +01:00
Morten Paulsen
ef893b523d
g:lua_tree_quit_on_open respects preview
2020-10-31 20:39:46 +01:00
Jan Sipr
521f2cfb5c
Fix lua_tree_quit_on_open configuration option
2020-10-30 08:04:59 +01: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
johnpyp
c496c8b9d9
Add main quit-on-open functionality
2020-10-17 12:24:20 +02:00
Kristijan Husak
859be0bb76
Merge root folder and parent navigator into one.
2020-08-03 21:29:02 +02:00
Kristijan Husak
0d8b22c1e9
Allow mapping multiple keys to single action.
2020-08-03 21:29:02 +02:00
Kristijan Husak
caf238d908
Add root folder name.
2020-08-03 21:29:02 +02:00
Kieran Siek
06558a25da
Feat: Allow hiding dotfiles ( #69 )
2020-08-03 16:13:25 +02:00
kiyan42
98fc65750a
fix: always open new window and set window options locally
...
- use setlocal for options instead of using nvim_win_set_option
- create a new window when there is only the tree window
- resize the tree when opening new files
2020-08-03 14:04:26 +02:00
Santos Gallegos
bafee954ac
KeyBindings: add refresh
2020-08-02 11:05:05 -05:00
Kristijan Husak
d42e76e3cf
Always focus tree when finding file.
2020-07-29 18:03:27 +02:00
kiyan42
371941b3b2
find window instead of saving it
2020-07-23 11:36:58 +02:00
Kristijan Husak
f1b04965de
Add mappings for jumping to previous or next git item.
2020-07-22 11:50:18 +02:00
Kristijan Husak
37748e7c97
Merge branch 'master' into feature/cut-copy-paste
2020-07-20 17:59:15 +02:00
Kristijan Husak
4f86707051
Add mapping for toggling ignored folders visibility.
2020-07-17 10:25:57 +02:00
Kristijan Husak
9b20fcba72
Add cut,copy and paste functionality.
2020-07-16 11:50:27 +02:00
kiyan42
cf828e0a4b
fix: export find_file, remove global options, disable follow by default
2020-06-21 12:50:51 +02:00
rickysaurav
080c86618f
Add option for disabling bindings
2020-06-20 03:38:36 +05:30
kiyan42
d4e5b1bb51
fix: declare filetype when window init is done
2020-06-15 15:30:18 +02:00
kyazdani42
25c32283b8
rename lib/tree.lua to lib/lib.lua
2020-06-08 11:41:57 +02:00