You are not logged in.
hut, thanks, and sorry for my laziness! What a nice app!...
Offline
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
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"
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
Awesome, works! Thanks, hut!
Offline
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
Is there a possibility to leave apps that were ran with a 'detach' flag opened once you close ranger?
Offline
I wish I knew.
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
@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
"setsid - creates a session and sets the process group ID"
@Procyon, how should I test this?
Offline
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
This is awesome and very well done, I got tired of launching ugly thunar when i wanted to do non-cli file management.
Offline
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
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
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!
Last edited by archman-cro (2010-08-28 21:03:33)
Offline
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
atool - nice app, thanks!
Offline
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
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
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.
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
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.
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
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?
"hut_" or "h00th00t" in irc.freenode.net #archlinux
Ranger Mailing List: https://lists.nongnu.org/mailman/listinfo/ranger-users
Offline
Maybe a new command with "shift+u"? That one is unused by default (it doesn't react on my setup).
Offline
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
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).
Something like this:
=> (~5% done)
==> (~10% done)
===> etc
========> etc
==================>
Offline
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).
Something like this:
=> (~5% done) ==> (~10% done) ===> etc ========> etc ==================>
that'd be awesome!
Offline