system_open: use asynchronous vim.loop to spawn process + let user customize the command to be used to open a file/folder with default system application (#551)

This commit is contained in:
xeluxee
2021-08-14 15:13:56 +02:00
committed by GitHub
parent 7014b6aff4
commit d74af818c0
3 changed files with 52 additions and 25 deletions

View File

@@ -145,7 +145,7 @@ highlight NvimTreeFolderIcon guibg=blue
- type `]c` to go to next git item
- type `[c` to go to prev git item
- type `-` to navigate up to the parent directory of the current file/directory
- type `s` to open a file with default system application or a folder with default file manager
- type `s` to open a file with default system application or a folder with default file manager (if you want to change the command used to do it see `:h g:nvim_tree_system_open_command` and `:h g:nvim_tree_system_open_command_args`)
- if the file is a directory, `<CR>` will open the directory otherwise it will open the file in the buffer near the tree
- if the file is a symlink, `<CR>` will follow the symlink (if the target is a file)
- `<C-v>` will open the file in a vertical split