Use system function instead of luv calls

- add dynamic path creation 'foo/bar/baz'
- fixes delete function
This commit is contained in:
kyazdani42
2020-02-28 15:34:02 +01:00
parent f6e44c1726
commit b9398b285d
3 changed files with 45 additions and 32 deletions

View File

@@ -52,18 +52,18 @@ nnoremap <leader>n :LuaTreeRefresh<CR>
![alt text](.github/screenshot.png?raw=true "file explorer")
## TODO
## TODO 1
- Tree creation should be async
- better error checking when fs updates
- sneak like cd command to find a directory
- better default colors (use default vim groups)
- give user option to choose for file generation command
- command to find current file in the directory structure
- refactor all `system` call to `libuv` functions, with better error management
- create proper highlight groups or add highlight function to give the user ability to setup colors themselves
- bufferize leafs of node being closed so when opening again the node, we open every directory that was previously open
- use libuv functions instead of `touch` and `mkdir` in `create_file()` and allow file creation with path like `foo/bar/baz`
- better window management:
- check tree buffer/window for change so we can avoid it being resized or moved around or replaced by another file
- monitor window layout in current tab to open files in the right place
- add `<C-t>` to open buffer in new tab
> this might be a little hard to implement since window layout events do not exist yet