You are not logged in.

#1726 2013-06-09 17:48:39

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Ranger, a textbased filemanager

Do you mean directories?

Offline

#1727 2013-06-20 22:06:56

Karl_Yeurl
Member
Registered: 2011-02-28
Posts: 30

Re: Ranger, a textbased filemanager

Hi.

Just wanted to drop by and say that ranger is awesome. It's that good.

Offline

#1728 2013-06-23 15:32:56

suija
Member
Registered: 2013-06-23
Posts: 34

Re: Ranger, a textbased filemanager

Hi, ranger is great, but it would be pefect if I could fix a certain issue:
there needs to be a tiny delay before the preview kicks in, so that your browsing doesn't lag when you are swinging up and down the tree.

Also I'm trying to customize the colorscheme now, but I dunno if I can make it accept color codes rather than just plain "red", "blue"...

I would really appreciate help on the first issue, thanks.


..   ..- ... .   .- .-. -.-. ....   -... - .--

Offline

#1729 2013-06-23 15:50:35

loop
Member
Registered: 2011-05-06
Posts: 58

Re: Ranger, a textbased filemanager

Hi, @suija, you can use print_colors.py file from ranger sources to get color codes which can be used in colorescheme.

Last edited by loop (2013-06-23 15:50:52)

Offline

#1730 2013-06-23 22:18:08

suija
Member
Registered: 2013-06-23
Posts: 34

Re: Ranger, a textbased filemanager

Thanks, that script will help me with customising other stuff too.
But here comes an other problem - if I use 256 color codes, ranger crashes in terminator (works fine in urxvt tho).. sad


..   ..- ... .   .- .-. -.-. ....   -... - .--

Offline

#1731 2013-06-24 00:17:24

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

Re: Ranger, a textbased filemanager

Just found out about image previews, but sucks that it doesn't work in tmux. Is this a bug on tmux's side? Don't really want to be using screen.


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

#1732 2013-07-03 10:46:40

Artran
Member
From: Prague, Czech Republic
Registered: 2013-06-11
Posts: 1

Re: Ranger, a textbased filemanager

Hi. I really appreciate "ya" and "yr" commands. Is there a way how to see a whole list of the yanked files/directories? I want to check them before pasting. Same with "ca" and "cr".

EDIT: Ok, I figured it out ;-) (:save_copy_buffer)

Last edited by Artran (2013-07-03 12:16:41)

Offline

#1733 2013-07-07 04:54:04

args
Member
Registered: 2012-03-06
Posts: 9

Re: Ranger, a textbased filemanager

hi, I'm a new to Ranger. It's fantasy.

I have some problem now.
when I use command ':open_with t blah...', and I want open a new terminal.
I've set TERMCMD=xfce4-terminal. But It failed silently. So I digged into the code, I found the default option of terminal execution is '-e'. But when use xfce4-terminal, the '-x' option is the expected one.
I don't want change the code, so I ask if there is any way to customize this?


Apple hater. Panda lover.

Offline

#1734 2013-07-07 05:41:44

progandy
Member
Registered: 2012-05-17
Posts: 5,263

Re: Ranger, a textbased filemanager

I don't want change the code, so I ask if there is any way to customize this?

Create a small shellscript and use that as TERMCMD:

#/bin/sh
# read arguments in array
declare -a args
i=0
etox=y
for arg
do
   # change the first -e argument to -x
   [ "$arg" = '-e' ] && [ "$etox" = 'y' ] && arg='-x' && etox=n
   args[$i]="$arg"
   ((i++))
done
echo xfce4-terminal "${args[@]}"

Last edited by progandy (2013-07-07 05:49:40)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#1735 2013-07-07 06:46:19

args
Member
Registered: 2012-03-06
Posts: 9

Re: Ranger, a textbased filemanager

progandy wrote:

Create a small shellscript and use that as TERMCMD

a flexible way, Thanks


Apple hater. Panda lover.

Offline

#1736 2013-07-21 01:35:21

acgtyrant
Member
From: Hangzhou, China
Registered: 2013-04-09
Posts: 65
Website

Re: Ranger, a textbased filemanager

The wiki about ranger says that ranger supports transmission-show for viewing bit-torrent infomation. But there is no transmission-show in office-repository, I only find three packages which call transmission-cli, transmission-gtk and transmission-qt. Is transmission-cli it?

Sorry for my poor English. Thank you!

Last edited by acgtyrant (2013-07-21 01:35:35)


I use Arch Linux.

Offline

#1737 2013-07-21 06:47:26

progandy
Member
Registered: 2012-05-17
Posts: 5,263

Re: Ranger, a textbased filemanager

This executable is part of transmission-cli.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#1738 2013-07-23 11:39:55

markoer
Member
Registered: 2010-12-15
Posts: 57

Re: Ranger, a textbased filemanager

I am using rxvt terminal

Question: I cant jump between words in ranger's command line using ctrl + left/right arrow
ctrl+ left/right works on terminal command line and in any other editor such as vim..
Also keys are mapped in Xresources.

Offline

#1739 2013-07-24 17:19:25

Veedrac
Member
Registered: 2011-07-19
Posts: 81

Re: Ranger, a textbased filemanager

markoer wrote:

I am using rxvt terminal

Question: I cant jump between words in ranger's command line using ctrl + left/right arrow
ctrl+ left/right works on terminal command line and in any other editor such as vim..
Also keys are mapped in Xresources.

Unfortunately, Ranger cannot do CTRL-Left and CTRL-Right keybindings. I'll raise this with hut (Ranger's developer) later.

You can add the following code to your commands.py:

def move_word(self, backward=False):
    if self.line:
        self.tab_deque = None

        if backward:
            if self.pos:

                for self.pos in range(self.pos-1, -1, -1):
                        if not re.match(r'[\w\d]', self.line[self.pos-1], re.U):
                            break

        else:
            if self.pos != len(self.line):

                for self.pos in range(self.pos+1, len(self.line)+1):
                    try:
                        if not re.match(r'[\w\d]', self.line[self.pos], re.U):
                            break

                    # The cursor can go off of the line
                    except IndexError:
                        pass

from ranger.gui.widgets import console
console.Console.move_word = move_word

And then bind them to keys like:

cmap <KEY_FOR_RIGHT>     eval fm.ui.console.move_word()
cmap <KEY_FOR_LEFT>    eval fm.ui.console.move_word(backward=True)

but there's no nice way to do this.

Offline

#1740 2013-07-24 17:36:59

markoer
Member
Registered: 2010-12-15
Posts: 57

Re: Ranger, a textbased filemanager

@Veedrac

It would be nice to have this implemented in ranger, but also to be able to use ctrl keys as modifiers with left/right arrows.

thx for workaround

Offline

#1741 2013-07-28 13:16:57

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: Ranger, a textbased filemanager

Hi everyone !

I love ranger and try to learn it, but I'm facing a strange behaviour.

Unfortunately, preview images doesn't work on xfce terminal.

In URxvt, it does, but only when I use Terminus font. I tried many other, and it gives me pieces of my image, like on this screenshot :

1375017297.png


Thanks in advance for any help ! smile


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#1742 2013-07-28 17:15:44

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

Re: Ranger, a textbased filemanager

Kolibry wrote:

Hi everyone !

I love ranger and try to learn it, but I'm facing a strange behaviour.

Unfortunately, preview images doesn't work on xfce terminal.

In URxvt, it does, but only when I use Terminus font. I tried many other, and it gives me pieces of my image, like on this screenshot :

http://pix.toile-libre.org/upload/thumb/1375017297.png


Thanks in advance for any help ! smile

I uploaded a different image displaying algorithm, can you install ranger-git from AUR* and see if it changes anything?

*if you don't use archlinux, follow instructions under "get ranger with git" on this page: http://ranger.nongnu.org/download.html


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

Offline

#1743 2013-07-28 18:35:36

Kolibry
Member
Registered: 2012-12-20
Posts: 110

Re: Ranger, a textbased filemanager

Hi hut !

I tried ranger-git, image shows up for a second then comes back again in that strange state !

Do you know why it doesn't work with some terminals at all ? (xfce, gnome)

Thanks !


Asus 1225B - 11,6" -  AMD E-60 Dual Core 1,3Ghz - 4 Go RAM - Disque dur SSD 128 Go -  Radeon HD6290
ArchLinux Openbox - My Github

Offline

#1744 2013-07-28 20:18:51

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

Re: Ranger, a textbased filemanager

Kolibry wrote:

Hi hut !

I tried ranger-git, image shows up for a second then comes back again in that strange state !

Do you know why it doesn't work with some terminals at all ? (xfce, gnome)

Thanks !

Because it's a crazy, evil hack and it makes a lot of assumptions, which not every terminal can fulfil. Still better than nothing, imo. If you want to learn more about it, talk to the developers of w3m who made it.


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

Offline

#1745 2013-08-01 18:56:09

setone
Member
Registered: 2012-08-31
Posts: 9

Re: Ranger, a textbased filemanager

As of today, I have an issue on one of my machines. When I run ranger as a normal user, the contents of my current directory are pinned to the leftmost pane, and no keystrokes work at all, except ctrl-z (which dumps me out of ranger). The middle and right panes are empty. If I run ranger as root, it behaves normally. If I become root, then I can issue

sudo -u <normaluser> ranger

and ranger runs normally. I thought something was messed up in my config but I created a test user and see the same behavior. Running ranger with -d doesn't seem to produce anything. How can I debug this problem?

Thanks for a great piece of software - I use it all day, every day.

Offline

#1746 2013-08-02 00:11:36

Veedrac
Member
Registered: 2011-07-19
Posts: 81

Re: Ranger, a textbased filemanager

setone wrote:

As of today, I have an issue on one of my machines. When I run ranger as a normal user, the contents of my current directory are pinned to the leftmost pane, and no keystrokes work at all, except ctrl-z (which dumps me out of ranger). The middle and right panes are empty. If I run ranger as root, it behaves normally. If I become root, then I can issue

sudo -u <normaluser> ranger

Has anything happened? Have you updated, say?

setone wrote:

and ranger runs normally. I thought something was messed up in my config but I created a test user and see the same behavior. Running ranger with -d doesn't seem to produce anything.

You could also try the "--clean" flag for that.

setone wrote:

How can I debug this problem?

I'd start by reinstalling, always running with "--clean" and "--debug" as you go along. I might also try a second terminal just in case.

Reinstall both from the package manager and from git (https://github.com/GermainZ/ranger) as well, I think.

Offline

#1747 2013-08-02 13:25:46

GermainZ
Member
Registered: 2013-05-08
Posts: 11

Re: Ranger, a textbased filemanager

Veedrac wrote:

Reinstall both from the package manager and from git (https://github.com/GermainZ/ranger) as well, I think.

Unless you want him to try the video_previews branch, that link should be: https://github.com/hut/ranger

Offline

#1748 2013-08-02 15:54:16

setone
Member
Registered: 2012-08-31
Posts: 9

Re: Ranger, a textbased filemanager

Thanks @Veedrac and @GermainZ. I tried several flavors of ranger and the issue persisted. Running with --clean didn't help. I uninstalled python3 and everything that depends on it, deleted ~/.config/ranger, reinstalled python3 along with ranger, and the problem persisted. I also ran the ranger.py script directly with

python -v ranger.py

for both the successful user (root) and me, and attempted to figure out what went wrong by capturing and comparing the traces. They were mostly the same but not entirely and if I knew python better I might be able to diagnose based on that.

I finally moved my whole /home/user directory off to another directory, logged in as myself with a new, empty /home/user directory, and ranger worked fine. I started adding back my .bashrc, .bash_profile, .inputrc, etc, expecting something to break but it's still fine. I don't know what happened but there is a lot of stale crap in my old user directory. If I figure out what specifically caused ranger to choke I'll report back. Ranger is awesome!

Last edited by setone (2013-08-02 15:56:40)

Offline

#1749 2013-08-05 02:51:07

z1lt0id
Member
Registered: 2012-09-20
Posts: 177

Re: Ranger, a textbased filemanager

Does anyone else here have any issues with urxvt and displaying image previews with w3m?

Offline

#1750 2013-08-05 04:08:53

psli
Member
From: Santa Clara, CA
Registered: 2012-10-18
Posts: 8

Re: Ranger, a textbased filemanager

z1lt0id wrote:

Does anyone else here have any issues with urxvt and displaying image previews with w3m?

I've had some problems but they've mostly been resolved.  What do your rc.conf, scope.sh and .Xresources file look like?

Offline

Board footer

Powered by FluxBB