kevinhwang91 / rnvimr

Make Ranger running in a floating window to communicate with Neovim via RPC
BSD 3-Clause "New" or "Revised" License
800 stars 17 forks source link

'ranger --cmd="set draw_borders both"' is not executable #116

Closed frog-game closed 2 years ago

frog-game commented 2 years ago

image

kevinhwang91 commented 2 years ago

minimal config.

frog-game commented 2 years ago

I don't quite understand what you mean。

kevinhwang91 commented 2 years ago

issue template:

<!-- Before reporting: search existing issues and check the FAQ. -->

- `nvim --version`:
- Operating system/version:
- `nvim +'checkhealth rnvimr'`: 
**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce using `nvim -u mini.vim`**

Example:
`cat mini.vim`
```vim
" use your plugin manager, here is `vim-plug`
call plug#begin('~/.config/nvim/plugged')
Plug 'kevinhwang91/rnvimr'
let g:rnvimr_vanilla = 1
tnoremap <silent> <M-i> <C-\><C-n>:RnvimrResize<CR>
nnoremap <silent> <M-o> :RnvimrToggle<CR>
tnoremap <silent> <M-o> <C-\><C-n>:RnvimrToggle<CR>
call plug#end()

Steps to reproduce the behavior: 1. 2. 3.

frog-game commented 2 years ago

this is my checkhealth rnvim image this is my ranger version image this is my neovim version image this is my init.vim config image image image

my steps ~ 1 nvim 2 alt + o coming after: image

Thank you very much Good job!

kevinhwang91 commented 2 years ago

Have reproduced. Caused by https://github.com/kevinhwang91/rnvimr/commit/d2d3b7014eeeedec027fe844e3b9c68e169fb169

kevinhwang91 commented 2 years ago

Please update the code and your config to:

let g:rnvimr_ranger_cmd = ['ranger', '--cmd=set draw_borders both']
frog-game commented 2 years ago

OK wait a second I'm just do it

frog-game commented 2 years ago

it's ok now ~ 3q

laggardkernel commented 2 years ago

Please update the code and your config to:

let g:rnvimr_ranger_cmd = ['ranger', '--cmd=set draw_borders both']

I don't get it. The list is not split by space, but by ranger command and its arguments?

kevinhwang91 commented 2 years ago

Please update the code and your config to:

let g:rnvimr_ranger_cmd = ['ranger', '--cmd=set draw_borders both']

I don't get it. The list is not split by space, but by ranger command and its arguments?

h termopen(), g:rnvimr_ranger_cmd will be passed into {cmd}