[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ranger-users] ranger not usable in my environment anymore
From: |
Roman Z. |
Subject: |
Re: [Ranger-users] ranger not usable in my environment anymore |
Date: |
Mon, 30 Aug 2010 13:16:44 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
Ah. Apologies for breaking old config files, but I felt this was
necessary. I think I announced it in a previous mail though:
I replaced the concept of "console modes" with plain and simple commands.
In your case, simply replace
> map('<F8>', fm.open_console(cmode.COMMAND, 'delete y'))
with:
> map('<F8>', fm.open_console('delete y'))
If you got any open_console()s or execute_console()s using other
cmodes, here's a list of old->new translations:
open_console(cmode.OPEN, "firefox")
is now:
open_console("shell firefox")
open_console(cmode.OPEN, "p!diff %s")
is now:
open_console("shell -p diff %s")
open_console(cmode.OPEN, "@mount")
is now:
open_console("shell mount %s")
Note: the "@" has no direct translation, but appending " %s" does the same
open_console(cmode.OPEN_QUICK, "mplayer")
is now:
open_console("open_with mplayer")
open_console(cmode.SEARCH, "sometext")
is now:
open_console("search sometext")
open_console(cmode.COMMAND_QUICK, "find foo")
is now:
open_console("find foo")
As you see, every line got shorter and less weird.
It just slightly bothers me that pressing "/" doesn't present you with
the usual vim like "/" prompt anymore. Maybe I'm going to visually
simulate it, maybe I'll simply leave it like this.
On Mon, Aug 30, 2010 at 12:03:51PM +0530, Sitaram Chamarty wrote:
> ok first -- apologies... I still have a problem but not as big as I thought.
>
> 2 things conspired. One is the INSTALL doc no longer actually *says*
> you can run it standalone, which I assumed was bad.
>
> Second, I moved my config over very carefully before I tried it.
>
> After sending off that email I tried by removing my config, and it worked.
>
> It seems it is barfing on this line in my ~/.config/ranger/keys.py
> (which used to be ~/.ranger/keys.py before this but I don't suppose
> that makes a difference):
>
> map('<F8>', fm.open_console(cmode.COMMAND, 'delete y'))
>
> It complains thus:
>
> NameError: name 'cmode' is not defined
>
> So... not an earth shaking problem, but useful for me to have.
>
> apologies for the false alarm again!
>
> sitaram
>
> On Mon, Aug 30, 2010 at 11:34 AM, Roman Z. <address@hidden> wrote:
> > On Mon, Aug 30, 2010 at 11:00:16AM +0530, Sitaram Chamarty wrote:
> >> Hi,
> >>
> >> I have a rather unique "environment". I carry around all my essential
> >> software in a single directory because I often have to work on strange
> >> machines where I don't want to/can't install stuff.
> >>
> >> Till recently, ranger's "you dont have to install anything" used to
> >> work great for me. I'd just set PYTHONPATH to the right place and off
> >> I'd go.
> >>
> >> Now even the good old standby doesn't work, and this is apparently by
> >> design.
> >>
> >> I'm not a python programmer, and I do not know how to "fake out" an
> >> install to get things working.
> >>
> >> Can someone help me? If my use case is not clear I'd be glad to
> >> explain in more detail. Just don't tell me to "install it". That is
> >> not an option, and honestly, in a standalone program like this with
> >> its own libraries, as long as the requisite ncurses etc are present,
> >> it *ought* to be able to work in standalone "do not touch the rest of
> >> the system dammit" mode.
> >>
> >> Thanks
> >>
> >> --
> >> Sitaram
> >>
> >
> > Hmm, it should work as a standalone app, just by running ./ranger.py,
> > so, explain in detail please :)
> >
> >
> >
>
>
>
> --
> Sitaram