Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch specific signals at once, using hook_signal #1780

Closed
weechatter opened this issue Apr 23, 2022 · 1 comment
Closed

catch specific signals at once, using hook_signal #1780

weechatter opened this issue Apr 23, 2022 · 1 comment
Assignees
Labels
feature New feature request
Milestone

Comments

@weechatter
Copy link
Contributor

Feature description

with hook_signal you can catch one signal or you can use a wildcard to catch more signals at once.
But it would be fine to catch only specific signals, e.g. window_switch;buffer_switch

hook = weechat.hook_signal("window_switch;buffer_switch", "my_signal_cb", "")

@weechatter weechatter added the feature New feature request label Apr 23, 2022
@flashcode
Copy link
Member

I'm implementing this and doing it as well for hook_hsignal which works exactly the same way.

In future it could be possible to do it as well on these functions, but I doubt there are real use cases:

  • hook_config
  • hook_modifier
  • hook_info
  • hook_info_hashtable

@flashcode flashcode self-assigned this Apr 24, 2022
@flashcode flashcode added the in progress Someone is working on this issue label Apr 24, 2022
@flashcode flashcode added this to the 3.6 milestone Apr 24, 2022
@flashcode flashcode removed the in progress Someone is working on this issue label Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

2 participants