Skip to content

Conversation

friday
Copy link
Member

@friday friday commented Dec 15, 2021

Adds new blank methods on the Extension class so users can extend and override those to bind the events without a ton of boilerplate code.

See friday/ulauncher-encoder@08ad29e (this fork and commit works only with the PR applied)

Also see 228527f that renames the SystemExitEvent (which I don't think we even need?) to UnloadEvent/on_unload (old name still works for backward compatibility)

I have some further changes in mind for these like renaming the "preferences" event to "load" event, but wanted this to get merged first.

Checklist

  • Verify that the test command ./ul test is passing (the CI server will check this if you don't)
  • Update the documentation according to your changes (when applicable)
  • Write unit tests for your changes (when applicable)

@friday friday added this to the 6.0.0 milestone Dec 15, 2021
@friday
Copy link
Member Author

friday commented Dec 15, 2021

@gornostal This is the biggest API change probably. The link above to the forked extension shows some other things as well, but this part is about removing the event binding boilerplate code, and removing steps from the tutorial that the user don't need any more. I hope you agree. It's backwards compatible of course.

@friday friday requested a review from gornostal December 19, 2021 14:13
@friday
Copy link
Member Author

friday commented Dec 22, 2021

Going to merge this one as well as I'm waiting to do more work on parts related to this and have a lot of time during the holiday, but I would still like to get feedback on the direction.

@friday friday merged commit 3e33b27 into v6 Dec 22, 2021
@friday friday deleted the v6-automatic-event-binding branch December 22, 2021 15:56
@friday friday mentioned this pull request Mar 29, 2022
@friday friday mentioned this pull request Jun 14, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant