gotbletu / shownotes

notes for videos from my youtube channel
https://www.youtube.com/user/gotbletu
GNU General Public License v3.0
919 stars 171 forks source link

ranger does not support fzf #22

Closed fabOnReact closed 5 years ago

fabOnReact commented 5 years ago

I run in the current issue

ranger version: 1.8.1, executed with python 2.7.15rc1 Locale: en_US.UTF-8 Current file: None Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/ranger/core/main.py", line 94, in main load_settings(fm, arg.clean) File "/usr/lib/python2.7/dist-packages/ranger/core/main.py", line 272, in load_settings import commands File "/home/fabrizio/.config/ranger/commands.py", line 3, in class fzf_select(Command): NameError: name 'Command' is not defined

ranger crashed. Please report this traceback at: https://github.com/hut/ranger/issues

a maybe relevant issue

rcrx commented 5 years ago

Same here.

cuppajoeman commented 5 years ago

I also have this issue

gotbletu commented 5 years ago

im on ranger 1.9.2 so can't really go back to try those; Try starting over with a fresh ranger config file

gotbletu commented 5 years ago

they updated their code a little bit also maybe that will help you guys? https://github.com/ranger/ranger/wiki/Custom-Commands

fabOnReact commented 5 years ago

@gotbletu I am also running ranger 1.9.2 unluckily. It works for me now. Thanks image

cuppajoeman commented 5 years ago

I just copied the code for the commands.py file from your shownotes, but it doesn't have this import statement.

from ranger.api.commands import Command

So I just had to add this to the top of the file and it's working now.

gotbletu commented 5 years ago

@fabriziobertoglio1987 Good to hear, kicking ass now =)

@cuppajoeman that weird, that import code should of been on there by default when you generate a fresh config file; anyways this should count as solved now i hope 2/3 majority