You are not logged in.

#2001 2015-09-30 23:21:53

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: Ranger, a textbased filemanager

@progandy, gotcha.
Kiss and side-effect less ^_^


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#2002 2015-09-30 23:52:42

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: Ranger, a textbased filemanager

kozaki wrote:

After updating today,

 ranger: ImportError: No module named 'ranger'

The error is raised because the package owns files in /usr/lib/python3.4/site-packages/ranger, which is not to be found in /usr/lib/             python3.5/site-packages/ranger.

Git version does not have the issue as it created the needed files in python3.5 (as I understand).

ps Is there a tip to launch ranger (from community) anyway? Like back at the Python2.7 » 3 shift we could launch ranger with `python2 /usr/bin/ranger`

progandy's 'solution' isn't really.

I believe you're using [testing] (since you have python-3.5) but not using [community-testing] (which has ranger rebuilt for python3.5), which is a recipe for breakage whenever there's a lib update in testing. Add [community-testing] to your pacman.conf.

EDIT: Also, hut, I added a new bug report for ranger, there's a FutureWarning obscuring my breadcrumb top bar....

Last edited by ngoonee (2015-09-30 23:53:20)


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#2003 2015-10-02 11:39:11

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Ranger, a textbased filemanager

I get this error when starting up ranger: https://ptpb.pw/Pfiz

I know a lot of python packages were updated recently but I have no idea why ranger is throwing this error.

Offline

#2004 2015-10-02 11:47:32

Ledti
Member
Registered: 2010-07-31
Posts: 122
Website

Re: Ranger, a textbased filemanager

@rg_arc

I get the same error. I tried building ranger-git, but that didn't fix it.

Offline

#2005 2015-10-03 07:49:50

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

Re: Ranger, a textbased filemanager

The error has been reported upstream: https://github.com/hut/ranger/issues/381
Meanwhile, you can redraw the window with Ctrl-L or ':redraw_window'.

Offline

#2006 2015-10-04 00:35:32

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

The "future warning" bug has been fixed in the new stable version 1.7.2 which is out as of now. Thanks for reporting it^^


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#2007 2015-10-06 19:41:18

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

PSA: if your image previews don't work after upgrading ranger, please update your ~/.config/ranger/scope.sh configuration file.

See https://lists.nongnu.org/archive/html/r … 00000.html


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#2008 2015-10-08 13:03:57

Ambrevar
Member
Registered: 2011-08-14
Posts: 212
Website

Re: Ranger, a textbased filemanager

Thanks for fix, Hut!
I guess now you can safely update the README and the homepage saying it supports Python 3.5! wink

Offline

#2009 2015-10-30 19:51:06

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: Ranger, a textbased filemanager

Is there a way to view the directory history and selectively navigate in it like 'Meta+H' in mc? It would be a great feature to list with a key combination an enumerated history list in the preview pane and to jump by typing a number to a needed directory.


bing different

Offline

#2010 2015-11-18 10:34:43

spcmd
Member
Registered: 2015-05-18
Posts: 12

Re: Ranger, a textbased filemanager

I'd like to use imagemagick's resize function in ranger (with the :shell) with the following command:

convert pic.png -resize 50% pic_resized.png

But I got "Unrecognized named group in pattern" error. I think the % sign is the problem. I tried to escape it with \ or with another %, but it's not working. The command is fine, if I use it in the terminal, it works okay. I think it's maybe a "python->shell" problem. roll

Can someone tell me, how could I use the command or how to escape the % sign?

Offline

#2011 2015-11-18 10:36:57

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Ranger, a textbased filemanager

spcmd wrote:

I'd like to use imagemagick's resize function in ranger (with the :shell) with the following command:

convert pic.png -resize 50% pic_resized.png

But I got "Unrecognized named group in pattern" error. I think the % sign is the problem. I tried to escape it with \ or with another %, but it's not working. The command is fine, if I use it in the terminal, it works okay. I think it's maybe a "python->shell" problem. roll

Can someone tell me, how could I use the command or how to escape the % sign?

Can't you just use 0.50?

Offline

#2012 2015-11-18 16:33:40

spcmd
Member
Registered: 2015-05-18
Posts: 12

Re: Ranger, a textbased filemanager

I can't, that way it makes a 1 pixel image. sad

Last edited by spcmd (2015-11-18 16:34:13)

Offline

#2013 2015-11-18 17:18:15

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Ranger, a textbased filemanager

spcmd wrote:

I can't, that way it makes a 1 pixel image. sad

Then maybe put part of the command in quotes?

Last edited by rg_arc (2015-11-18 17:18:59)

Offline

#2014 2015-11-18 17:42:16

spcmd
Member
Registered: 2015-05-18
Posts: 12

Re: Ranger, a textbased filemanager

rg_arc wrote:

Then maybe put part of the command in quotes?

I tried quoting parts, quoting the 50% only, quoting the full command, with double or single quotes. Not working.

Offline

#2015 2015-11-18 18:03:07

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Ranger, a textbased filemanager

spcmd wrote:
rg_arc wrote:

Then maybe put part of the command in quotes?

I tried quoting parts, quoting the 50% only, quoting the full command, with double or single quotes. Not working.

how about using the full path for the image files?

Offline

#2016 2015-11-18 18:34:18

spcmd
Member
Registered: 2015-05-18
Posts: 12

Re: Ranger, a textbased filemanager

rg_arc wrote:

how about using the full path for the image files?

Same error.

Offline

#2017 2015-11-18 19:00:09

skualito
Member
Registered: 2008-11-19
Posts: 203

Re: Ranger, a textbased filemanager

spcmd wrote:

I'd like to use imagemagick's resize function in ranger (with the :shell) with the following command:

convert pic.png -resize 50% pic_resized.png

But I got "Unrecognized named group in pattern" error. I think the % sign is the problem. I tried to escape it with \ or with another %, but it's not working. The command is fine, if I use it in the terminal, it works okay. I think it's maybe a "python->shell" problem. roll

Can someone tell me, how could I use the command or how to escape the % sign?

Hello, you can use

convert pic.png -resize 50%%%% pic_resized.png

Offline

#2018 2015-11-19 07:49:40

spcmd
Member
Registered: 2015-05-18
Posts: 12

Re: Ranger, a textbased filemanager

skualito wrote:

Hello, you can use

convert pic.png -resize 50%%%% pic_resized.png

It works! Thank you! smile

edit:
If anyone interested, I made this alias in ranger's rc.conf for this:

alias pic-resize eval fm.open_console('shell convert ' + fm.thisfile.basename + ' -resize 50%%%% ' + os.path.splitext(fm.thisfile.basename)[0] +'_resized'+os.path.splitext(fm.thisfile.basename)[1])

Last edited by spcmd (2015-11-19 07:58:54)

Offline

#2019 2015-12-06 21:06:09

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: Ranger, a textbased filemanager

I wonder if there is some method to use the preview column (the right column in the 3-column layout) for outputting some data to it, like a list of files? Maybe writing a plugin or a function?


bing different

Offline

#2020 2015-12-14 08:27:34

tanyuan
Member
From: Taipei, Taiwan
Registered: 2015-12-14
Posts: 2

Re: Ranger, a textbased filemanager

I set update_title to true but ranger is unable to update terminal window title of gnome-terminal and xterm to "ranger:PATH".

It's discussed in post #1237 but I still don't know how to get it to work.

I'm using ranger-stable 1.7.2 (Python 3.5.1)

Offline

#2021 2016-02-02 20:37:34

Trilby
Banned
Registered: 2011-11-29
Posts: 30,330
Website

Re: Ranger, a textbased filemanager

I've been tinkering with my ranger colorscheme, and I'd love to be able to colorize files by mime-type and/or extension.  The currently available CONTEXT_KEYS are useful, but somewhat limited: broad categories like media, images, and executables are covered, but I can't specify colors for pdfs, latex files, source code, etc.

My ideal approach to this would be if there could be a way for ranger to use `dircolors` settings so I didn't have to replicate those settings - but any other method of being able to set color by filetype or extension would be great.

I'm not proficient in python, but from what I understand of the code in the colorscheme file, the name of the file to be colored doesn't seem to be avialble (for any sort of string comparison) in that scope.

Is there currently anyway of acheiving this type of file-type-specific coloring?  Or might this be considered for a future feature?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#2022 2016-02-02 21:56:29

hut
Member
From: Hanover, Germany
Registered: 2010-03-12
Posts: 569
Website

Re: Ranger, a textbased filemanager

Trilby wrote:

I've been tinkering with my ranger colorscheme, and I'd love to be able to colorize files by mime-type and/or extension.  The currently available CONTEXT_KEYS are useful, but somewhat limited: broad categories like media, images, and executables are covered, but I can't specify colors for pdfs, latex files, source code, etc.

My ideal approach to this would be if there could be a way for ranger to use `dircolors` settings so I didn't have to replicate those settings - but any other method of being able to set color by filetype or extension would be great.

I'm not proficient in python, but from what I understand of the code in the colorscheme file, the name of the file to be colored doesn't seem to be avialble (for any sort of string comparison) in that scope.

Is there currently anyway of acheiving this type of file-type-specific coloring?  Or might this be considered for a future feature?

There's a branch in progress that implements a new, more flexible way of specifying color schemes. Sadly, I got exams now and can't dedicate any time to finishing it. So, it'll be a couple of months until it's merged.


"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users

Offline

#2023 2016-02-02 21:58:51

Trilby
Banned
Registered: 2011-11-29
Posts: 30,330
Website

Re: Ranger, a textbased filemanager

Great - thanks!  There's certainly no rush.  I'm glad this goal is somewhere in the pipeline.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#2024 2016-02-02 23:55:09

NoSuck
Member
Registered: 2015-03-04
Posts: 157
Website

Re: Ranger, a textbased filemanager

Trilby wrote:

My ideal approach to this would be if there could be a way for ranger to use `dircolors` settings...

That would be pretty handy.

Offline

#2025 2016-02-21 20:12:01

Sounds_About
Member
Registered: 2015-11-30
Posts: 7

Re: Ranger, a textbased filemanager

At some point recently - I'm not sure exactly when, but in the last month or two - ranger stopped showing image previews for gifs.  It still shows them for .jpg, .png, .webm, but suddenly not gifs. 

If I move to a gif, after about three seconds, I see the message, at the bottom of the ranger window:

 ('Failed to execute w3mimgdisplay', [])

I switched to the AUR git version, but the problem still exists.  I moved my config files and recopied the default configs, and that didn't fix it either.  I'm not sure what else to try.

(It's only complicated by the fact that SOMETIMES, under conditions I can't reproduce, it WILL show gif previews.  It will show a preview of a gif, and then when I go back to that same gif, it will fail with the above message.)

Any ideas?

Last edited by Sounds_About (2016-02-21 20:12:12)

Offline

Board footer

Powered by FluxBB