kevinhwang91 / rnvimr

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

< C-T > and < C-X > and < C-V > is not effected #15

Closed miko2009 closed 4 years ago

miko2009 commented 4 years ago

I'm using neovim, and I've also installed Ranger. After installing your plug-in, I can open the file with the Enter key, but it is invalid to use < C-T > and < C-X > and < C-V >. These three keys have no binding function.

kevinhwang91 commented 4 years ago
  1. What's your version of neovim and python and ranger?

  2. How about running SplitAndEdit vsplit inside ranger? Will neovim do an action like vsplit and open the file selected by ranger?

miko2009 commented 4 years ago
  1. neovim is v0.4.3 . python is 2.7 . ranger 1.9.3.
  2. not found the command ' SplitAndEdit vsplit ' inside ranger
  3. no
kevinhwang91 commented 4 years ago

python 3 is required already stated in the readme.

After upgrading your python version and runing :RnvimrSync in neovim, I guess everything will work fine.

miko2009 commented 4 years ago

i had upgraded my python version . but it didn't work.

kevinhwang91 commented 4 years ago

Are you using Mac?If yes, please install ranger via pip install ranger-fm instead of brew.

https://github.com/kevinhwang91/rnvimr/issues/6

miko2009 commented 4 years ago

yes , i brew uninstall ranger and pip3 install ranger-fm . but it doesn't work. " FM has no attribute client" is hint when use ranger in neovim

kevinhwang91 commented 4 years ago

Had you synchronized the plugins(the lib of rnvimr is also a plugin of ranger) via :RnvimrSync? Make sure that the files action.py hacks.py host.py service.py are in ~/.config/nvim/plugged/rnvimr/ranger/plugins.

miko2009 commented 4 years ago

yes i had . those files in ~/.config/nvim/plugged/rnvimr/ranger/plugins.

kevinhwang91 commented 4 years ago

Please pip3 install pynvim. pynvim is required also stated in readme.

miko2009 commented 4 years ago

there are some errors in “sudo pip3 install ueberzug ” 。 i can't resolve it

Command errored out with exit status 1: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-83hz25ic/ueberzug/setup.py'"'"'; file='"'"'/private/tmp/pip-install-83hz25ic/ueberzug/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-dtjhuha7/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7m/ueberzug Check the logs for full command output.

kevinhwang91 commented 4 years ago

ueberzug is only supported in X11 in Linux, which is an optional requirement for rnvimr. If you can open the file via <C-txv> please close this issue.

miko2009 commented 4 years ago
doesn't work
kevinhwang91 commented 4 years ago

Why do you want to Install ueberzug? I think to install pynvim will work.

miko2009 commented 4 years ago

i had install pynvim "pip3 install --upgrade pynvim" . but it doesn't work

kevinhwang91 commented 4 years ago

What's the message from the display_log inside ranger? Press W or input display_log in ranger's console.

miko2009 commented 4 years ago

can not find module 'pynvim'

kevinhwang91 commented 4 years ago

You should make sure python version in the output of ranger --version is 3 instead of 2. And then run python3 -c 'import pynvim' check out pynvim is installed..

miko2009 commented 4 years ago

yes i am sure ranger version: ranger 1.9.3 Python version: 3.7.3 (default, Apr 7 2020, 14:06:47) [Clang 11.0.3 (clang-1103.0.32.59)] Locale: zh_CN.UTF-8

~/.config/nvim » python3 -c 'import pynvim'

~/.config/nvim »

kevinhwang91 commented 4 years ago

Run eval os.sys.path inside the ranger's console and open display log. Make sure the root lib location of pynvim is included from the list of output.

In my env. Display log output: ['/usr/lib/python3.8', '/usr/lib/python3.8/site-packages', ......]

My path of pynvim: /usr/lib/python3.8/site-packages/pynvim

kevinhwang91 commented 4 years ago

In the end, I hope you solve the issue of installing pynvim by yourself. Good luck.

kevinhwang91 commented 4 years ago

image @miko2009 Don't comment on the showcase issue. It's just to show the images of this repo.

I will delete your comment inside that issue, I'm so sorry.

haha405pan commented 3 years ago

Had you synchronized the plugins(the lib of rnvimr is also a plugin of ranger) via :RnvimrSync? Make sure that the files action.py hacks.py host.py service.py are in ~/.config/nvim/plugged/rnvimr/ranger/plugins.

Hi Mr wang, I had same issue and didn't find those file in the plugins file. I was trying to synchronize the plugin via typing RnvimrSync in the neovim but the command could not found.

For your reference, I am currently using Arch Linux,

kevinhwang91 commented 3 years ago

Had you synchronized the plugins(the lib of rnvimr is also a plugin of ranger) via :RnvimrSync? Make sure that the files action.py hacks.py host.py service.py are in ~/.config/nvim/plugged/rnvimr/ranger/plugins.

Hi Mr wang, I had same issue and didn't find those file in the plugins file. I was trying to synchronize the plugin via typing RnvimrSync in the neovim but the command could not found.

For your reference, I am currently using Arch Linux,

  • [ ] installed neovim and ranger via pacman
  • [ ] installed pynvim via pip
  • [ ] health check shows no problem

RnvimrSync has been removed, If FAQ didn't work for you, please open a new issue.