-
Notifications
You must be signed in to change notification settings - Fork 233
Adding Plugin System #628
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
Adding Plugin System #628
Conversation
Codecov Report
@@ Coverage Diff @@
## master #628 +/- ##
==========================================
+ Coverage 73.53% 75.60% +2.06%
==========================================
Files 7 8 +1
Lines 1043 1123 +80
Branches 268 283 +15
==========================================
+ Hits 767 849 +82
+ Misses 202 198 -4
- Partials 74 76 +2
Continue to review full report at Codecov.
|
fea9868 to
f7f369a
Compare
tony
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joseph-flinn Try rebasing (I fixed an issue with poetry), running poetry install and then make black isort
|
Lets aim to get this in the next release (and last Python 2.7 release) This will assure packaged versions of tmuxp on BSD/Linux and systems using python 2.7 have a plugin system. |
9108ddd to
50dec52
Compare
3d04d7c to
6c036bf
Compare
|
Note: The bump in version is required for the extensive testing of the plugin system. The test plugins all depend on tmuxp version 1.6.0 (I believe this is the next release that will contain this feature?) |
Yes, this version bump and the constraint seems appropriate. |
|
@joseph-flinn Can you rebase this? (I know from email you're not around today) |
|
@joseph-flinn Can you try rebasing instead of merge? e.g. |
Whoops, yep. I thought I did the rebase instead of the merge. I don't think I finished the complete mental context switch on Sunday |
|
Oh, I just remembered that I used the |
|
@joseph-flinn technically the command (e.g. Since I don't know what your remotes are named, here is what it'd be if
Then: |
4f8f095 to
63d2fd0
Compare
|
@joseph-flinn Nice! You pushed it seconds after I wrote that, I guess you figured it out before! 😊 |
|
Yeah, that merge was my bad. I tried "resolving the conflicts" through github.com last weekend instead of doing it locally and must of have hit merge instead rebase + merge. |
|
@joseph-flinn https://tmuxp.git-pull.com/history.html#tmuxp-1-6-0-2020-11-06 You can rebase again, there's a conflict though ( Let's aim to get this in tomorrow (Sunday latest) Once its in master we will be able to dogfood it on our local machines |
|
Sounds good. I'm planning on working on it most of tomorrow.
…On Fri, Nov 6, 2020, 18:25 Tony Narlock ***@***.***> wrote:
@joseph-flinn <https://github.com/joseph-flinn>
https://tmuxp.git-pull.com/history.html#tmuxp-1-6-0-2020-11-06
You can rebase again, there's a conflict
Let's aim to get this in tomorrow (Sunday latest)
Once its in master we will be able to dogfood it on our local machines
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#628 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AN5KNNNSBWVSB4OFVBHDZEDSOSVZZANCNFSM4QP44Z7Q>
.
|
|
@joseph-flinn If you'd like to rebase this you can I will try to merge this in this afternoon/evening/tomorrow |
…the desired plugin api methods
…t with stubbed solution
…with python for testing purposes. Started rudimentary config testing. Started working on the cli.load_plugins test.
…nto the workspacebuilder and changed the reattach to take in a builder object instead of a session so that it can access those plugins.
…pdating corresponding tests. Starting on the documentation
…lugin function and corresponding tests. Add a way to skip loading a plugin if it failed to load
…kipping plugin load if the fail
63d2fd0 to
ceb7b6b
Compare
Adding most of the logic for the Plugin System from #530. I have done some initial manual testing and it seems to be working.
Design Decisions:
before_scriptin the tmuxp config will run before anything in theplugin.before_scriptmethod)plugin.on_window_createmethod is referring to when tmuxp is creating new windows versus the user creating a new window in tmuxplugin.after_window_finishedmethod is referring to after the window is done being setup versus when the tmux user closes the windowCurrently missing: