[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ranger-users] scout command
From: |
Miodrag Milić |
Subject: |
Re: [Ranger-users] scout command |
Date: |
Thu, 28 Feb 2013 19:34:37 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Interesting mnemonic:
travel = scout -fekalist
On Serbian its even a word: the one that eats poop. On english its just
a fekal list :)
Problems:
without a ".." navigation doesn't work but it should. I use 'e' option
instead: scout -feklist
Also, we really really need arrows working with scout. If files are
substrings , you have no solution to select a file but to abandon:
x
ranger
ranger-10
ranger-100
y
If you want to get to ranger and in moment when you start typing cursor
is at ranger-100, or it gets there during filtering, there is no way you can
get to it but cancel. So, we need arrows working.
BTW, scout -fitm is really nice.
On Mon, Feb 25, 2013 at 07:00:17AM +0100, Roman Z. wrote:
> I finally took the time to implement the :scout command. It has the
> following flags:
>
> AUTO_OPEN = 'a'
> OPEN_ON_ENTER = 'e'
> FILTER = 'f'
> SM_GLOB = 'g'
> IGNORE_CASE = 'i'
> KEEP_OPEN = 'k'
> SM_LETTERSKIP = 'l'
> MARK = 'm'
> UNMARK = 'M'
> PERM_FILTER = 'p'
> SM_REGEX = 'r'
> SMART_CASE = 's'
> AS_YOU_TYPE = 't'
> INVERT = 'v'
>
> They are more or less self-explanatory. Let me just note that you can't
> use more than one SM_* flag at once.
>
> Seven existing commands were replaced by aliases to :scout with the
> respective flags. Plus, they got more awesome, since now you got
> inverted filters with ":filter -v [...]" or a filtered :find command
> with ":find -f [...]".
>
> alias filter scout -prt
> alias find scout -aet
> alias mark scout -mr
> alias unmark scout -Mr
> alias search scout -r
> alias search_inc scout -rt
> alias travel scout -aefiklst
>
> And of course you can remix them however you want by putting your own
> aliases into ~/.config/ranger/rc.conf.
>
> The only bug I see atm is that ":travel" gets changed into
> ":scout -aefiklst" inside the console after you changed the directory
> with it, but that's completely harmless.
>
> Please test the command and tell me if you experience unexpected
> results, or give me more ideas for useful flags :)
>
> Roman
>
>