You are not logged in.

#451 2010-08-24 13:48:36

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

hut, thanks, and sorry for my laziness! What a nice app!...

Offline

#452 2010-08-24 20:35:58

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

hut, how to make leafpad (text editor) run detached when i click on a txt file?
My apps.py: http://pastebin.com/qu3WCmtq
(I've fixed that smplayer and gpicview stuff just by copying stuff from other examples, cause I'm a zero at python (although I got python studying on schedule for the next month to start)
Also, do you guys get this glitch (using urxvt)? --> http://i37.tinypic.com/23kvvc8.jpg

Last edited by archman-cro (2010-08-24 20:40:36)

Offline

#453 2010-08-24 21:16:42

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

Re: Ranger, a textbased filemanager

archman-cro wrote:

hut, how to make leafpad (text editor) run detached when i click on a txt file?
My apps.py: http://pastebin.com/qu3WCmtq
(I've fixed that smplayer and gpicview stuff just by copying stuff from other examples, cause I'm a zero at python (although I got python studying on schedule for the next month to start)

I think it suffices to change the order of arguments at line 110.
Put 'leafpad' to the first position, like: either(c, 'leafpad', 'vim', ..)

EDIT: Hmm, It looks to me like line 110 is never reached since the function should return at line 108. (With a correct result...)

Try this: Replace both occurences of "editor" in the function app_defaults with "leafpad"

archman-cro wrote:

Also, do you guys get this glitch (using urxvt)? --> http://i37.tinypic.com/23kvvc8.jpg

Nope ;( When does this happen?

Last edited by hut (2010-08-24 21:21:23)


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

Offline

#454 2010-08-24 21:35:53

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

Awesome, works! Thanks, hut!

Offline

#455 2010-08-25 08:51:30

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

Re: Ranger, a textbased filemanager

hut wrote:

I renamed it from "slim ranger" to "pithy" so it's not going to be confused with the original ranger.

Hut, since pithy seems really a different program than ranger and this thread is getting quite long, it might be an idea to give pithy it's own thread?


ᶘ ᵒᴥᵒᶅ

Offline

#456 2010-08-25 23:11:12

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

Is there a possibility to leave apps that were ran with a 'detach' flag opened once you close ranger?

Offline

#457 2010-08-25 23:52:00

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

Re: Ranger, a textbased filemanager

I wish I knew.


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

Offline

#458 2010-08-25 23:58:20

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Ranger, a textbased filemanager

@archman-cro, hut: Did you try with double setsid? I mentioned this before, but I don't use Ranger so I haven't tried it myself. When I was working on pyfmii that issue also came up though, and forking twice instead of just once fixed it.

Offline

#459 2010-08-26 00:01:09

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

"setsid - creates a session and sets the process group ID"

@Procyon, how should I test this? hmm

Offline

#460 2010-08-26 00:50:48

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Ranger, a textbased filemanager

Add ~/bin to your PATH as the first entry
cat > ~/bin/mplayer << "EOF"
setsid setsid /usr/bin/mplayer "$@" &>/dev/null </dev/null
EOF
chmod +x ~/bin/mplayer

Last edited by Procyon (2010-08-26 00:51:57)

Offline

#461 2010-08-26 03:55:16

fiendskull9
Member
Registered: 2010-08-26
Posts: 5

Re: Ranger, a textbased filemanager

This is awesome and very well done, I got tired of launching ugly thunar when i wanted to do non-cli file management.

Offline

#462 2010-08-26 16:38:32

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

Re: Ranger, a textbased filemanager

Procyon wrote:

Add ~/bin to your PATH as the first entry
cat > ~/bin/mplayer << "EOF"
setsid setsid /usr/bin/mplayer "$@" &>/dev/null </dev/null
EOF
chmod +x ~/bin/mplayer

For me it's enough to just run setsid <program>, actually :-)


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

Offline

#463 2010-08-28 19:49:28

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

Re: Ranger, a textbased filemanager

Some updates:

1. The console is simplified: The different console modes were turned into simple commands, ":shell", ":open_with" and ":search". Pressing "!" will open the console with the text ":shell ", etc.

Type 3? for the complete documentation.

If you use custom keybindings that open the console, you need to adapt your configuration.

2. The configuration directory has changed to ~/.config/ranger. If you define the shell environment variable XDG_CONFIG_HOME, the directory $XDG_CONFIG_HOME/ranger is used instead.

3. Instead of splitting up the history of the console into 4 different files, it's just saved in confdir/history.

And other stuff, see http://git.savannah.gnu.org/cgit/ranger.git/log/


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

Offline

#464 2010-08-28 20:44:37

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

I say "nice!" to the .config/ranger scheme!
Btw, tried just moving the "ranger" folder to ".config", but then Ranger didn't start, it just flashed and shut itself down (or maybe it didn't start at all...). So I just moved apps.py, options.py and bookmarks from ranger to .config/ranger and it's working good that way.

Btw.: Is there a possibility to use "custom actions"? In example, when *.bz2 file is highlighted, and we press some keybinding, it extracts with tar or other app.

Thank you for this amazing file manager! smile

Last edited by archman-cro (2010-08-28 21:03:33)

Offline

#465 2010-08-28 22:38:25

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

Re: Ranger, a textbased filemanager

If you have atool installed, you can simply type 1l to extract the archive.
Adding keybindings is supported too, check out ranger/defaults/keys.py


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

Offline

#466 2010-08-28 23:30:37

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

atool - nice app, thanks!

Offline

#467 2010-08-29 22:46:45

Visti
Member
Registered: 2009-09-30
Posts: 13

Re: Ranger, a textbased filemanager

I love the application, thanks a lot for making it. I was just wondering something. Is there a way to set it so that unless the console is up, the marker will jump down to files starting with the letters I press? Or maybe a key that will go to files starting with the next letter pressed?

Offline

#468 2010-08-29 23:03:33

splittercode
Member
From: WI, USA
Registered: 2010-03-16
Posts: 203

Re: Ranger, a textbased filemanager

Visti wrote:

I love the application, thanks a lot for making it. I was just wondering something. Is there a way to set it so that unless the console is up, the marker will jump down to files starting with the letters I press? Or maybe a key that will go to files starting with the next letter pressed?

Yep.  Pressing f followed by any key sequence will automatically launch/select the first file/folder that uniquely contains the key sequence you've entered.

Last edited by splittercode (2010-08-29 23:04:41)

Offline

#469 2010-08-29 23:05:04

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

Visti wrote:

Is there a way to set it so that unless the console is up, the marker will jump down to files starting with the letters I press?

That'd be amazing to have. smile

EDIT: @splittercode, yes, that one jumps+enters. Is there a "jumping" feature only, maybe? (except the "/keyword")

Last edited by archman-cro (2010-08-29 23:10:09)

Offline

#470 2010-08-29 23:48:43

Visti
Member
Registered: 2009-09-30
Posts: 13

Re: Ranger, a textbased filemanager

archman-cro wrote:
Visti wrote:

Is there a way to set it so that unless the console is up, the marker will jump down to files starting with the letters I press?

That'd be amazing to have. smile

EDIT: @splittercode, yes, that one jumps+enters. Is there a "jumping" feature only, maybe? (except the "/keyword")

Exactly. Like the Vim "/" command except automatically executed to one letter. Or basically the "f" command without the launching.

Offline

#471 2010-08-30 11:27:09

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

Re: Ranger, a textbased filemanager

Well, you could easily hack it in: Change the last line of the :find definition to "return False"
But I could also add it by default. I'm just wondering how (new command? option? a parameter for :find?) and on what key. Any opinions? smile


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

Offline

#472 2010-08-30 11:43:48

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

Maybe a new command with "shift+u"? That one is unused by default (it doesn't react on my setup).

Offline

#473 2010-09-03 01:08:49

psyodin
Member
From: rocky mountains USA
Registered: 2008-11-13
Posts: 30

Re: Ranger, a textbased filemanager

Really appreciate this program. I'm slowly using more and more terminal programs on my linux journey and this one rocks. Not that familiar with python but still was not bad to configure.

Right up there with ncmpcpp in my book.

Much obliged


download>install>configure>enjoy, arch tastes good

Offline

#474 2010-09-04 18:19:58

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: Ranger, a textbased filemanager

I've come up with an idea. Is it possible to implement a "copy/paste" bar left of the rotating slash sign (which is active when you copy files)? Something similar to pacman when it downloads packages. It'd be cool to have it, so you can know how much ~time is left to copy/move some file(s). smile

Something like this:

=> (~5% done)
==> (~10% done)
===> etc
========> etc
==================>

Offline

#475 2010-09-05 09:56:03

silenc3r
Member
From: Poland
Registered: 2009-08-29
Posts: 149

Re: Ranger, a textbased filemanager

archman-cro wrote:

I've come up with an idea. Is it possible to implement a "copy/paste" bar left of the rotating slash sign (which is active when you copy files)? Something similar to pacman when it downloads packages. It'd be cool to have it, so you can know how much ~time is left to copy/move some file(s). smile

Something like this:

=> (~5% done)
==> (~10% done)
===> etc
========> etc
==================>

that'd be awesome!

Offline

Board footer

Powered by FluxBB