[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ranger-users] ranger 1.6.0 on the horizon

From: Roman Z.
Subject: Re: [Ranger-users] ranger 1.6.0 on the horizon
Date: Mon, 18 Feb 2013 21:19:53 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Feb 18, 2013 at 08:12:39PM +0100, Miodrag Milic wrote:
> Nice example with binds and full RE. Clearly +1 for RE implementation.

Let's discuss then what kind of options will be available for the new
command.  I'll name it :scout for now.  I suggest these:

1. -a for automatic opening, as soon as there is only 1 match left
2. -e for automatic opening when the user presses enter
3. -k for keeping the console open until the user presses ESC
4. -s for letter skipping ("hl" matches "hello")
5. -g for globbing ("h*o" matches "hello")
6. -r for regular expressions ("h.*\w$" matches "hello")
7. -f for filtering the list of files to show only the matching ones
8. -t for the "as-you-type" feature
9. -m for marking all matching files

If none of -s, -g or -r are used, it matches when the given string is a
substring of the matching file name -- just like the :find command works
now.  Obviously -s, -g and -r can't be used together.

We could implement lots of commands with these flags:
:find        -> :scout -aet
:search      -> :scout -r
:search_inc  -> :scout -rt
:travel      -> :scout -aeksft
:narrow      -> :scout -esft

And all users would be happy because they can combine the flags however
they want.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]