You are not logged in.

#76 2010-03-17 14:20:33

bharani
Member
From: Karaikudi, India
Registered: 2009-07-12
Posts: 202

Re: Ranger, a textbased filemanager

hut wrote:

Thank you for the thank yous!

bharani wrote:

I very much like it. I have edited apps.py to open all files using exo-open which i use for opening files in dmenufm.

Can you share the changes? (via pastebin or email or...)

Its not very big or significant (i dont know python) .So i just paste it here.

from ranger.api.apps import *

class CustomApplications(Applications):
    def app_default(self, c):
        
        return tup("exo-open",c.file.path)

This also works with mimeo by xyne.


Tamil is my mother tongue.

Offline

#77 2010-03-17 14:31:31

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

Re: Ranger, a textbased filemanager

bharani wrote:
hut wrote:

Thank you for the thank yous!

bharani wrote:

I very much like it. I have edited apps.py to open all files using exo-open which i use for opening files in dmenufm.

Can you share the changes? (via pastebin or email or...)

Its not very big or significant (i dont know python) .So i just paste it here.

from ranger.api.apps import *

class CustomApplications(Applications):
    def app_default(self, c):
        
        return tup("exo-open",c.file.path)

This also works with mimeo by xyne.

I would love to use an external program which handles all this, but I haven't found one that suits me yet. I'll take a look at mimeo


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

Offline

#78 2010-03-17 14:55:07

bharani
Member
From: Karaikudi, India
Registered: 2009-07-12
Posts: 202

Re: Ranger, a textbased filemanager

hut wrote:

I would love to use an external program which handles all this, but I haven't found one that suits me yet. I'll take a look at mimeo

If you use thunar , exo will be already installed for you. Also both exo and mimeo use mime for opening files.


Tamil is my mother tongue.

Offline

#79 2010-03-17 17:36:47

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

Re: Ranger, a textbased filemanager

litemotiv wrote:
hut wrote:

Thats weird. A __init__.py should be autogenerated inside ~/.ranger/colorschemes. Does that happen?

yes, this is it's contents:

--snip--

fixed, i copied the entire colorschemes dir from /usr/share, but it seems i should have let out the __init file

I worked a bit on the colorscheme engine to make it more intuitive

Also there's a minor change in the configuration file. Rather than writing colorscheme = colorschemes.jungle you can now write colorscheme = "jungle". (The old way is still supported but will be deprecated eventually.)


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

Offline

#80 2010-03-17 18:13:06

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Ranger, a textbased filemanager

hut wrote:
paldepind wrote:

This is awesome!! I like how the horizontal scrolling works and the preview of text files is nice too.

For some time I've been thinking about setting up a complete CLI environment on my netbook (just for fun). This program is sure going to be usefull.

Thanks!

Thats exactly what I did tongue Though it turned out that I can't live without firefox and mplayer

You can run Firefox in DirectFB and MPlayer doesn't require X.

I like this FM a lot smile Only thing I really miss is dual pane.
edit: also motions like dG to cut the focused file and all files below it.

Last edited by JohannesSM64 (2010-03-17 18:16:05)

Offline

#81 2010-03-17 18:15:39

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

Re: Ranger, a textbased filemanager

JohannesSM64 wrote:
hut wrote:
paldepind wrote:

This is awesome!! I like how the horizontal scrolling works and the preview of text files is nice too.

For some time I've been thinking about setting up a complete CLI environment on my netbook (just for fun). This program is sure going to be usefull.

Thanks!

Thats exactly what I did tongue Though it turned out that I can't live without firefox and mplayer

You can run Firefox in DirectFB and MPlayer doesn't require X.

I like this FM a lot smile Only thing I really miss is dual-pane.

Using `` you can quickly switch between two locations. That doesn't replace dual-pane but maybe it helps

JohannesSM64 wrote:

edit: also motions like dG to cut the focused file and all files below it.

Yeah, I am working on that smile

Last edited by hut (2010-03-17 18:20:20)


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

Offline

#82 2010-03-17 18:53:31

Themaister
Member
From: Trondheim, Norway
Registered: 2008-07-21
Posts: 652
Website

Re: Ranger, a textbased filemanager

Wow. This is really good. Intuitive, with vim-binds. big_smile Think I'll test it more in-depth, and then I'll finally ditch pcmanfm.

Offline

#83 2010-03-17 20:19:34

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

Re: Ranger, a textbased filemanager

Yep it's really good smile. One question : How do you remove / delete a file ? The keybinding is not in the filesystem part of the keys.py file ? Thanks for your answer smile

Offline

#84 2010-03-17 20:30:00

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Ranger, a textbased filemanager

dd, yy and pp. Press ? for help.

Offline

#85 2010-03-17 20:33:05

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

Re: Ranger, a textbased filemanager

Thanks but I am looking for the rm function ?
-->    map('yy', fm.copy())
-->    map('dd', fm.cut())
-->    map('pp', fm.paste())
Am I missing something ?

Edit : it is :delete ; sorry for my question smile

Last edited by Sirsurthur (2010-03-17 20:59:29)

Offline

#86 2010-03-17 20:59:08

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

Re: Ranger, a textbased filemanager

type 4?
There is only a delete-command, so type in :delete


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

Offline

#87 2010-03-17 22:34:16

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

Re: Ranger, a textbased filemanager

It's good that you really have to write "delete" as a word to delete files, keeps you from accidents :-)

Offline

#88 2010-03-17 23:07:05

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

Re: Ranger, a textbased filemanager

hut wrote:

Using `` you can quickly switch between two locations. That doesn't replace dual-pane but maybe it helps

that's a really smart function and it works surprisingly well, nice!


ᶘ ᵒᴥᵒᶅ

Offline

#89 2010-03-18 16:30:51

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Ranger, a textbased filemanager

Found a tiny bug: :rename without arguments causes some glitches.

Offline

#90 2010-03-18 16:36:59

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

Re: Ranger, a textbased filemanager

JohannesSM64 wrote:

Found a tiny bug: :rename without arguments causes some glitches.

Thank you, fixed


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

Offline

#91 2010-03-18 19:00:31

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Ranger, a textbased filemanager

Here's a little patch to (crudely) check if the terminal supports title setting instead of relying on a global option:   
http://omploader.org/vM3Zqdg
wget it and "git apply".

(used omploader to prevent potential tab issues other methods could produce)
edit: better patch format

Last edited by JohannesSM64 (2010-03-18 20:25:11)

Offline

#92 2010-03-18 22:14:44

Themaister
Member
From: Trondheim, Norway
Registered: 2008-07-21
Posts: 652
Website

Re: Ranger, a textbased filemanager

Isn't git format-patch and git am better if you want to contribute? smile

Offline

#93 2010-03-18 22:26:46

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

Re: Ranger, a textbased filemanager

Both works fine. I added the (slightly modified) patch, thanks


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

Offline

#94 2010-03-19 11:09:48

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

Re: Ranger, a textbased filemanager

i often mount remote systems through sshfs/ftpfs/autofs and this causes some trouble with the preview/directory functions. i guess the load is a little high for some remote connections, causing slowdowns and stalls in the middle pane. would it be possible to detect remote mounts and disable the preview function for those? (it's a long shot i know.. wink)

would it be possible to show an indication of file-transfer progress? when copying to/from remote mounts or external media it's a bit difficult to predict right now if the transfer has finished.

thanks again smile


ᶘ ᵒᴥᵒᶅ

Offline

#95 2010-03-19 11:47:27

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

Re: Ranger, a textbased filemanager

litemotiv wrote:

i often mount remote systems through sshfs/ftpfs/autofs and this causes some trouble with the preview/directory functions. i guess the load is a little high for some remote connections, causing slowdowns and stalls in the middle pane. would it be possible to detect remote mounts and disable the preview function for those? (it's a long shot i know.. wink)

would it be possible to show an indication of file-transfer progress? when copying to/from remote mounts or external media it's a bit difficult to predict right now if the transfer has finished.

thanks again smile

1. It is possible to detect remote connections by reading mtab though it's not 100% portable. An alternative would be to add a key which toggles directory previews.

I've been thinking about adding multithreading to ranger, so that it will not lock you up when it has to wait for IO. That might entirely solve the issue though it will take some time until it's implemented and stable.

2. A progress indicator is planned. I recommend to do lengthy copying operations without ranger as of now, since it seems to be rather slow.

Maybe the "w" key helps you, it displays the currently running IO operations (copy/move/loading of directories) and lets you change priorities (with J/K) or kill them (with dd). I wonder if that feature is even documented.

Edit: added documentation for the task view in 4?

Last edited by hut (2010-03-19 13:36:03)


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

Offline

#96 2010-03-19 12:54:54

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Ranger, a textbased filemanager

Another little patch so the title doesn't hog up space for long paths. I'm not good at Python, so I don't know how pretty the code is, but it works smile
http://omploader.org/vM3Zzaw

Offline

#97 2010-03-19 14:52:04

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

Re: Ranger, a textbased filemanager

hut wrote:

1. It is possible to detect remote connections by reading mtab though it's not 100% portable. An alternative would be to add a key which toggles directory previews.

I've been thinking about adding multithreading to ranger, so that it will not lock you up when it has to wait for IO. That might entirely solve the issue though it will take some time until it's implemented and stable.

2. A progress indicator is planned. I recommend to do lengthy copying operations without ranger as of now, since it seems to be rather slow.

Maybe the "w" key helps you, it displays the currently running IO operations (copy/move/loading of directories) and lets you change priorities (with J/K) or kill them (with dd). I wonder if that feature is even documented.

Edit: added documentation for the task view in 4?

Cool, thanks. The "w" is certainly helpful. smile


ᶘ ᵒᴥᵒᶅ

Offline

#98 2010-03-19 15:09:33

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

Re: Ranger, a textbased filemanager

JohannesSM64 wrote:

Another little patch so the title doesn't hog up space for long paths. I'm not good at Python, so I don't know how pretty the code is, but it works smile
http://omploader.org/vM3Zzaw

That deserves an extra option, i guess, since people might disagree on how many directories should be displayed. (the commit: http://git.savannah.gnu.org/cgit/ranger … 4e82423f0)

Additionally, "/home/yourname" is now replaced with "~"


litemotiv wrote:

i often mount remote systems through sshfs/ftpfs/autofs and this causes some trouble with the preview/directory functions. i guess the load is a little high for some remote connections, causing slowdowns and stalls in the middle pane. would it be possible to detect remote mounts and disable the preview function for those? (it's a long shot i know.. wink)

I added the option "preview_directories" for now, which is toggleable with the key combination bP. Map that to an easily accessible key, and you can at least manually turn off previews easily.

I'm afraid you'll have to wait a little while for a more sophisticated solution

rson451 wrote:

I haven't looked much at the code yet, but is there any chance we could get an option for borders on the panes?

Check out the new option "draw_borders"

Last edited by hut (2010-03-22 17:38:35)


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

Offline

#99 2010-03-24 13:43:38

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

Re: Ranger, a textbased filemanager

Hey guys. I want to give you an update on the progress.

Thinking about the future of the project, I decided it's time for a plugin-system. It will allow you to add any feature you like without having to modify files under /usr/. It's similar to the scripting feature of irssi, but going even further: Most parts, such as the user interface of ranger as you know it are going to be implemented by plugins too, so you're free to remove what you don't need or replace them with your own implementations, say, use mc's dual column view rather than ranger's miller columns.

Another thing I'm working on is a more intelligent key parser which detects direction keys and allows you to use complex vim-keybindings like y5gg to copy all files from here to the fifth file in the list.

Both features aren't ready for use yet, but maybe you want to throw in suggestions or take a look at them yourself. They have their own branch on github:

http://github.com/hut/ranger

For those guys who like to tinker with ruby, on github there's also a ruby implementation of ranger which has been abandoned by me though, also on github.

Anyway, I will keep the current branch alive for now since the program is working really stable and well for me. But unless I scrap the ideas I stated above, I'll only implement patches and bugfixes.


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

Offline

#100 2010-03-24 14:57:56

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: Ranger, a textbased filemanager

hut wrote:

It's similar to the scripting feature of irssi

More like weechat. Most of its functionality is written as plugins smile I like the idea.

hut wrote:

Another thing I'm working on is a more intelligent key parser  which detects direction keys and allows you to use complex vim-keybindings like y5gg to copy all files from here to the fifth file in the list.

Awesome!

Offline

Board footer

Powered by FluxBB