[Feat Req] Filtering out some TaskSwitcher entry
Hi,
I just discover Keypirinha and love it so far!
Is there a way to filter out some items from TaskSwitcher?
Regards,
Currently, I don't think it's possible. What's you idea? What's specific cases do you have?
I have some windows which are accessible through hotkeys thanks to Autohotkey so I don't need them in the list :)
You mean you would like to filter them out by their name?
yes, filter them out by the name between parenthesis
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.
... Hence the "help-appreciated" tag :)
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?
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.
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?
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!
How's it going?
I was going to implement this functionality but I've stopped using Windows and consequently Keypirinha. Maybe someone else could implement this.