You are not logged in.

#726 2010-12-20 03:32:22

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

Re: Ranger, a textbased filemanager

Try the "silent" flag, like:
c.flags += "s"


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

Offline

#727 2010-12-20 11:15:09

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

Re: Ranger, a textbased filemanager

YES!! Great! Thanks a lot dude

Offline

#728 2010-12-20 18:31:14

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Ranger, a textbased filemanager

hut wrote:

Do you use ranger-stable or not? Any objections with making 1.3.1 the new stable version?
(1.3.1 is the one thats currently on ranger-git)

Go for it! smile


ᶘ ᵒᴥᵒᶅ

Offline

#729 2010-12-20 20:16:23

vik_k
Member
From: Pune, India
Registered: 2009-07-12
Posts: 227
Website

Re: Ranger, a textbased filemanager

been using 1.3.1 for quite a long time now & yeah.. it's stable ( no problems for me ).


"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette

Offline

#730 2010-12-21 04:40:48

trungpham
Member
Registered: 2010-10-21
Posts: 28

Re: Ranger, a textbased filemanager

Heys guys. Please recommend ranger to community repo by this link:
https://bbs.archlinux.org/viewtopic.php?id=109897

Offline

#731 2010-12-21 19:10:31

vasyabelkin
Member
Registered: 2009-09-10
Posts: 20

Re: Ranger, a textbased filemanager

Hut, thank you for the updated bulkrename script!
I also use 1.3.1 & it's very good

Offline

#732 2010-12-21 19:35:10

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

Re: Ranger, a textbased filemanager

Alright, I'll go clean up 1.3.1 and make it the new stable version.

EDIT: And here you go:

2010-12-22: Version 1.4.0

    * Added option to use any external scripts for previews (type 19?)
    * Added key: zv to toggle the use of the external script
    * Added indicator for the used filter (type "zf")
    * Added option padding_right to remove whitespace if theres no preview
    * Added command :search_inc for incremental search
    * Added commands :save_copy_buffer and :load_copy_buffer to share the copied files between ranger instances
    * Added mimeopen as a fallback if no useful application can be found
    * Added natural sort, sorts 1foo before 10foo. (type "on")
    * Added keys: yp, yd and yb to copy path, dirname or basename to seleciton
    * Let open_with use the selection, not just one file
    * Run files with right mouse click
    * Implemented copying via coreutils rather than internal python code
    * Improved handling of unicode
    * Some restructuration of the source code

The AUR packages "ranger-git" and "ranger" are now the same (1.4.0).
Choose your package: "ranger-git" will get config-breaking updates but also new features while "ranger" will only get bugfixes.

Last edited by hut (2010-12-22 04:19:00)


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

Offline

#733 2010-12-22 10:53:32

Revelation60
Member
From: The Netherlands
Registered: 2009-03-19
Posts: 158
Website

Re: Ranger, a textbased filemanager

Very nice, hut! By the way, is there a way to get a list of applications to open a file with?

Offline

#734 2010-12-22 17:11:19

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

Re: Ranger, a textbased filemanager

Revelation60 wrote:

Very nice, hut! By the way, is there a way to get a list of applications to open a file with?

Not directly.
But you can define multiple applications for one file type, see "24<F1>"


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

Offline

#735 2010-12-22 20:54:34

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

Re: Ranger, a textbased filemanager

hut wrote:

Try the "silent" flag, like:
c.flags += "s"

It doesn't work anymore... sad I don't understand why, hope you can help me. Right now all I get with c.flags += 's' is an empty shell, which goes back to ranger as soon as the program of the opened file is closed. Killing the terminal ranger runs in kills the program as well. I don't get it!

Here's the top of my apps.py to show you how I do that.

from ranger.api.apps import *
from ranger.ext.get_executables import get_executables

class CustomApplications(Applications):
        def app_default(self, c):
                """How to determine the default application?"""
                f = c.file

                if f.basename.lower() == 'makefile':
                        return self.either(c, 'make')
                if f.extension is not None:
                        if f.extension in ('pdf'):
                                c.flags += 's'
                                return tup('nohup', 'mupdf', *c)
...

Is there anything wrong there? I tried stable versions (1.2.2 and 1.2.3) but it's the same problem there, so I'm sure I did something wrong, but I can't find it.

Any idea is very appreciated!

Offline

#736 2010-12-22 21:08:50

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

Re: Ranger, a textbased filemanager

I think you forgot the detach flag. Use c.flags = "sd"


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

Offline

#737 2010-12-22 21:14:46

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

Re: Ranger, a textbased filemanager

Ok, damn, right big_smile Somehow I thought detach is included in silence, but of course that's nonsense. Thanks again hut, amazingly fast answer, just like always

Offline

#738 2010-12-23 11:59:27

trungpham
Member
Registered: 2010-10-21
Posts: 28

Re: Ranger, a textbased filemanager

@hut: Will ranger support something similar to vfs as in lfm? That feature is really great.

Offline

#739 2010-12-23 12:56:53

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

Re: Ranger, a textbased filemanager

trungpham wrote:

@hut: Will ranger support something similar to vfs as in lfm? That feature is really great.

see

hut wrote:
zeltak wrote:

Hi hut

i dunno if its to late but id vote to move ranger-git to ranger-old, merge the new code into ranger-git (master)

Btw is archive/VFS support coming in the near future (pretty please with sugar on top smile:))

i using apack, peazip etc but its just not well integrated

thx alot again

Zeltak

Thats a lot of work... And my deep-hack-mode doesn't work these days

I'm just too distracted with university atm

But it's good to know what kind of features people want, so thanks^^

Last edited by hut (2010-12-23 13:07:24)


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

Offline

#740 2010-12-23 16:00:53

trungpham
Member
Registered: 2010-10-21
Posts: 28

Re: Ranger, a textbased filemanager

wow. very fast reply. anyway I like ranger very much.Thanks

Offline

#741 2010-12-28 12:32:59

Revelation60
Member
From: The Netherlands
Registered: 2009-03-19
Posts: 158
Website

Re: Ranger, a textbased filemanager

Not directly.
But you can define multiple applications for one file type, see "24<F1>"

Maybe this would be a cool feature to implement. Using numbers to identify applications can become hard.

Today I ran into a problem. I had to copy files to a location that was owned by root. Ranger was started as a regular user. What is the quickest way to use root rights? If this involves shutting ranger down, it may also be very handy to make a sudo switch, so that spp for example means pasting with root rights.

Offline

#742 2010-12-28 15:03:21

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: Ranger, a textbased filemanager

ranger is in now in community. Thanks to hut and TUs.

Offline

#743 2010-12-28 15:25:09

Sirsurthur
Member
Registered: 2009-02-02
Posts: 124

Re: Ranger, a textbased filemanager

Hi Hut !

Thanks for your commit that attempted to fix some utf issues. With the .srt files I sent you and preview mode on, I get the following error :

"Ranger version: 1.4.0, executed with python 3.1.3
Locale: fr_FR.UTF8
Traceback (most recent call last):
  File "/usr/lib/python3.1/site-packages/ranger/core/main.py", line 85, in main
    fm.loop()
  File "/usr/lib/python3.1/site-packages/ranger/core/fm.py", line 191, in loop
    loader.work()
  File "/usr/lib/python3.1/site-packages/ranger/core/loader.py", line 234, in work
    self.fm.notify(err)
  File "/usr/lib/python3.1/site-packages/ranger/core/loader.py", line 229, in work
    next(item.load_generator)
  File "/usr/lib/python3.1/site-packages/ranger/core/loader.py", line 114, in generate
    self.signal_emit('after', process=process, loader=self)
  File "/usr/lib/python3.1/site-packages/ranger/ext/signals.py", line 110, in signal_emit
    fnc(signal)
  File "/usr/lib/python3.1/site-packages/ranger/core/actions.py", line 619, in on_after
    data[(-1, -1)] = open(path, 'r').read(1024 * 32)
  File "/usr/lib/python3.1/codecs.py", line 300, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 119: invalid continuation byte"

Offline

#744 2010-12-28 17:52:03

golwin
Member
From: Germany, Aachen
Registered: 2009-03-12
Posts: 35

Re: Ranger, a textbased filemanager

Don't know whether this is intended:
In the status bar I see the current position of the selected file in the list. Like the third of seven files is "3/7". But if i navigate to a file with <number>gg, then the counting starts with zero. So "3gg" brings me to file "4/7" and not to "3/7". A bit irritating, I think.


arch64 | awesome | screen | ranger | vim | cmus | weechat | bitlbee

Offline

#745 2010-12-29 12:54:50

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

Re: Ranger, a textbased filemanager

Revelation60 wrote:

Not directly.
But you can define multiple applications for one file type, see "24<F1>"

Maybe this would be a cool feature to implement. Using numbers to identify applications can become hard.

I'll figure out something



Revelation60 wrote:

Today I ran into a problem. I had to copy files to a location that was owned by root. Ranger was started as a regular user. What is the quickest way to use root rights? If this involves shutting ranger down, it may also be very handy to make a sudo switch, so that spp for example means pasting with root rights.

I usually do

!sudo ranger

or

!sudo cp %c .

A sudo switch for the pasting function would probably be nice though.



Sirsurthur wrote:

Hi Hut !

Thanks for your commit that attempted to fix some utf issues. With the .srt files I sent you and preview mode on, I get the following error :
[...]

I don't quite know what to do. I can't even reproduce the crash. Let me take a closer look when I have more time.



golwin wrote:

Don't know whether this is intended:
In the status bar I see the current position of the selected file in the list. Like the third of seven files is "3/7". But if i navigate to a file with <number>gg, then the counting starts with zero. So "3gg" brings me to file "4/7" and not to "3/7". A bit irritating, I think.

You're the second person to tell me that (or you just told me twice), so maybe its time to actually fix that.


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

Offline

#746 2010-12-29 13:28:01

igndenok
Member
From: Sidoarjo, Indonesia
Registered: 2010-06-07
Posts: 160

Re: Ranger, a textbased filemanager

Sirsurthur wrote:

Hi Hut !

Thanks for your commit that attempted to fix some utf issues. With the .srt files I sent you and preview mode on, I get the following error :
...
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 119: invalid continuation byte"

I have the same problem, but it's not a big deal for me. Just open it and save it with utf-8 coding.


Ask, and it shall be given you.
Seek, and ye shall find.
Knock, and it shall be opened unto you.

Offline

#747 2010-12-29 14:01:03

Sirsurthur
Member
Registered: 2009-02-02
Posts: 124

Re: Ranger, a textbased filemanager

Hi Hut,

If I do the same than igndenok then it's also working for me. It seems that the problem is that ranger thinks it's utf-8 encoding but in my case it was encoded with iso-8859-1. I would say that the issue is related to the recognition of the encoding format.

Offline

#748 2010-12-29 21:16:07

groundnuty
Member
Registered: 2010-11-16
Posts: 17

Re: Ranger, a textbased filemanager

Hey,
I posted here some time ago a "rough" modification of ranger to make it able to tag files with use of user_xattr. I would like to werwite, to be less "rough" and experimental. Back then there was no "official" plugin interface. Has anything changed in that matter?

Also it is possible to make the ranger's layout similar to that of midnight-commander? - two separate columns

Groundnuty

Offline

#749 2010-12-30 18:10:24

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

Re: Ranger, a textbased filemanager

groundnuty wrote:

Hey,
I posted here some time ago a "rough" modification of ranger to make it able to tag files with use of user_xattr. I would like to werwite, to be less "rough" and experimental. Back then there was no "official" plugin interface. Has anything changed in that matter?

Also it is possible to make the ranger's layout similar to that of midnight-commander? - two separate columns

Groundnuty

There's an experimental plugin interface on the devel branch but it needs better integration so you can modify many parts of ranger without breaking the plugin on ranger updates. Let's see when this interface is ready for deployment, I can't guarantee anything since I don't have much time atm.


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

Offline

#750 2010-12-30 19:38:05

zeltak
Member
From: New England
Registered: 2010-08-07
Posts: 168

Re: Ranger, a textbased filemanager

Today I ran into a problem. I had to copy files to a location that was owned by root. Ranger was started as a regular user. What is the quickest way to use root rights? If this involves shutting ranger down, it may also be very handy to make a sudo switch, so that spp for example means pasting with root rights.

i would also really like that option alot, having the option to run file operation commands (cp,mkdir.delete,move etc..) in root mode like sudo cp XXX

also groundnuty if you could write a plugin to make ranger use two columns you would make not my day but my year..it would be incredible smile i dont know any programming but am willing to help in any other areas needed (testing, documentation etc..)

thx

zeltak

Last edited by zeltak (2010-12-30 19:47:47)

Offline

Board footer

Powered by FluxBB