Re: Better "select by name" behavior

Thomas Leonard <[email protected]> Wed, 6 Feb 2013 10:26:03 +0000
Newsgroups gmane.comp.desktop.rox.user
Message-ID <CAG4opy8qnFJMDyFppE3_6wiXrRv5kkwF1ZVmSxRDfUxixb+StA@mail.gmail.com>
On 31 January 2013 18:31, Dennis Nezic <[email protected]> wrote:
> So, currently (rox-2.10), when you MINI_SELECT_BY_NAME (. command), it
> defaults to the "*." glob -- i.e. it assumes we want to select by a
> certain file extension. I found that I usually wasn't searching by file
> extension, but rather by keywords within filenames, and often found
> myself having to backspace. So, I think it would be better to not have
> that initial default glob.
>
> Also, when matches were found, although they were selected, the window
> wouldn't scroll to them (if they weren't visible -- ie. in a folder
> with many files.) I think the window should jump to the first match,
> much like the current MINI_PATH does. This little patch here does
> something like that, although I'm not sure if it's the best way :P --
> it will move the window and the non-highlighted-selected entry down one
> each time a new glob is matched.

Well, I applied the bit about showing the selected match (except that
I changed it so that it doesn't keep moving forward if the current
item matches).

Don't think the first change is worth it. Even if you want "*foo",
it's still easier to hit backspace than to type "*".

Thanks,


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb