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 » Mon 07 Apr, 2014 12:08

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: 5230
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 151 times

Re: Quick filter

Post by Shmuel » Mon 07 Apr, 2014 12:39

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

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

Re: Quick filter

Post by HaRT » Mon 07 Apr, 2014 12:46

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: 11415
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 17 times
Been thanked: 101 times

Re: Quick filter

Post by John Doe » Mon 07 Apr, 2014 13:19

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: 5230
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 151 times

Re: Quick filter

Post by Shmuel » Mon 07 Apr, 2014 13:22

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: 11415
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 17 times
Been thanked: 101 times

Re: Quick filter

Post by John Doe » Mon 07 Apr, 2014 13:24

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: 11415
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 17 times
Been thanked: 101 times

Re: Quick filter

Post by John Doe » Mon 07 Apr, 2014 13:29

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: 5230
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 151 times

Re: Quick filter

Post by Shmuel » Mon 07 Apr, 2014 13:30

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: 11415
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 17 times
Been thanked: 101 times

Re: Quick filter

Post by John Doe » Mon 07 Apr, 2014 13:32

Sure, but where is your ready to use solution?

Shmuel
Posts: 5230
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 151 times

Re: Quick filter

Post by Shmuel » Mon 07 Apr, 2014 13:36

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

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

Re: Quick filter

Post by John Doe » Mon 07 Apr, 2014 13:40

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: 11415
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 17 times
Been thanked: 101 times

Quick filter

Post by John Doe » Mon 07 Apr, 2014 13:41

One more ready to use macro was posted here: 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 viewtopic.php?f=15&t=9246#p126876

Post Reply

Return to “General Discussions”