Quick filter

You want to talk about Far Manager, but don't know where to turn?
Post Reply
DanielK
Posts: 6
Joined: Mon 07 Apr, 2014 11:55

Quick filter

Post by DanielK »

Hello to everyone, I'm new here,

Is it possible in FAR to quickly define filters without having to add them to the Filters menu,
like in Double Commander?

I mean, say you want to show all files except *.md5, you press for example Alt+F, a small popup menu appears
(in the same manner as when you press Alt+[A-Z] and Search popup appears) and lets you define
a quick filter such as:

-*.md5 or
-*.md5 -*.sha1
etc.

Shmuel
Posts: 6031
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 27 times
Been thanked: 294 times

Re: Quick filter

Post by Shmuel »

It can be done with a macro (~ 20 min. to create and debug).

User avatar
HaRT
Moderator
Posts: 9271
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 97 times
Been thanked: 205 times

Re: Quick filter

Post by HaRT »

There's a FAR1 plugin PanelFilter which might still work in FAR3 (not its accompanying macros though). The latest version of that plugin is 1.5.
Фар есть инструмент, а не нянька. © 2009 DrKnS

User avatar
John Doe
Бюрократ
Posts: 12657
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 35 times
Been thanked: 271 times

Re: Quick filter

Post by John Doe »

DanielK wrote:Is it possible in FAR to quickly define filters without having to add them to the Filters menu,
Aren't it there out of the box?
Extensions filters are already predefined, you have not define them explicitly.

All you need is select file extension (in filters list) and press + or - (then confirm by Enter)

Shmuel
Posts: 6031
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 27 times
Been thanked: 294 times

Re: Quick filter

Post by Shmuel »

John Doe
The user may want to filter (in or out) multiple extensions at a time, or filter by name, etc.

User avatar
John Doe
Бюрократ
Posts: 12657
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 35 times
Been thanked: 271 times

Re: Quick filter

Post by John Doe »

I do not know what he may want, but I see example from first post:
DanielK wrote:-*.md5 or
-*.md5 -*.sha1
etc.
Such basic usage does not require any extra macros or plugins

User avatar
John Doe
Бюрократ
Posts: 12657
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 35 times
Been thanked: 271 times

Re: Quick filter

Post by John Doe »

DanielK wrote:I mean, say you want to show all files except *.md5, you press for example Alt+F, a small popup menu appears
(in the same manner as when you press Alt+[A-Z] and Search popup appears)
There is ready for use macro for MacroLib: http://code.google.com/p/far-macro-libr ... FastFilter
(Not tested by me)

Shmuel
Posts: 6031
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 27 times
Been thanked: 294 times

Re: Quick filter

Post by Shmuel »

Such basic usage does not require any extra macros or plugins
ОК, but what if I want to filter myproject.*? This is still very basic.

User avatar
John Doe
Бюрократ
Posts: 12657
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 35 times
Been thanked: 271 times

Re: Quick filter

Post by John Doe »

Sure, but where is your ready to use solution?

Shmuel
Posts: 6031
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 27 times
Been thanked: 294 times

Re: Quick filter

Post by Shmuel »

John Doe wrote:Sure, but where is your ready to use solution?
Why should I waste 20 minutes?

User avatar
John Doe
Бюрократ
Posts: 12657
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 35 times
Been thanked: 271 times

Re: Quick filter

Post by John Doe »

Far manager does not support your case out-of-the-box.
But it does support sample case from title post.
That's all I wanted to say.

User avatar
John Doe
Бюрократ
Posts: 12657
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 35 times
Been thanked: 271 times

Quick filter

Post by John Doe »

One more ready to use macro was posted here: http://forum.farmanager.com/viewtopic.php?f=15&t=7675
I used to try it a long ago and as I remember it works, despite of ugly code.

Edit: here is better implemenation http://forum.farmanager.com/viewtopic.p ... 46#p126876

Post Reply

Return to “General Discussions”