Keypirinha icon indicating copy to clipboard operation
Keypirinha copied to clipboard

[Feat Req] Filtering out some TaskSwitcher entry

Open Geobert opened this issue 8 years ago • 12 comments

Hi,

I just discover Keypirinha and love it so far!

Is there a way to filter out some items from TaskSwitcher?

Regards,

Geobert avatar Mar 30 '18 11:03 Geobert

Currently, I don't think it's possible. What's you idea? What's specific cases do you have?

Fuhrmann avatar Apr 05 '18 04:04 Fuhrmann

I have some windows which are accessible through hotkeys thanks to Autohotkey so I don't need them in the list :)

Geobert avatar Apr 05 '18 09:04 Geobert

You mean you would like to filter them out by their name?

polyvertex avatar Apr 06 '18 11:04 polyvertex

yes, filter them out by the name between parenthesis

Geobert avatar Apr 06 '18 11:04 Geobert

Ah their process name. Ideally this feature would allow to differentiate windows and process name at config-level. Sounds good!

Unfortunately I'm focusing on the core of the app due to time constraint, but I'll leave that here in case someone wants to implement it by making a PR to the Keypirinha/Packages repo.

polyvertex avatar Apr 06 '18 11:04 polyvertex

... Hence the "help-appreciated" tag :)

polyvertex avatar Apr 06 '18 11:04 polyvertex

What would the settings look like? Something like this?

[main]
filter_process = explorer spotify
filter_windows = Configuration Calendar

Or this:

[main]
filter_process_name = 
    explorer
    spotify
filter_window_name = 
    Configuration
    Calendar

Would the settings differentiate between upper and lower case names?

Fuhrmann avatar Apr 06 '18 16:04 Fuhrmann

Looks good yes! I may add that each value can be a pattern (fnmatch-compatible) and they should not be sensitive to case (i.e. explorer would match ExPlorer).

[main]
exclude_process_name = 
    *explorer*
    spotif?
exclude_window_name = 
    Configuration
    Calendar

Note the change from filter_ to exclude_ to emphasize filter is not inclusive.

However, I'm not sure how we should treat values without wildcards. Should we assume they are surrounded by * characters? I think not.

polyvertex avatar Apr 07 '18 12:04 polyvertex

Nice! 'exclude' is definitely better. On your last sentence, I think we should treat wildcards only when wildcards were explicitly set, as you said.

In your example, the patterns would work for both process and windows names?

Fuhrmann avatar Apr 07 '18 16:04 Fuhrmann

I think we should treat wildcards only when wildcards were explicitly set [...]

Ok then :)

In your example, the patterns would work for both process and windows names?

Yes!

polyvertex avatar Apr 09 '18 13:04 polyvertex

How's it going?

KamiGim avatar Feb 02 '20 02:02 KamiGim

I was going to implement this functionality but I've stopped using Windows and consequently Keypirinha. Maybe someone else could implement this.

Fuhrmann avatar Feb 02 '20 03:02 Fuhrmann