Skip to content

Comments

Add screen.Redraw binding for Lua's plugins#2939

Closed
X-Ryl669 wants to merge 2 commits intomicro-editor:masterfrom
X-Ryl669:addRedraw
Closed

Add screen.Redraw binding for Lua's plugins#2939
X-Ryl669 wants to merge 2 commits intomicro-editor:masterfrom
X-Ryl669:addRedraw

Conversation

@X-Ryl669
Copy link

@X-Ryl669 X-Ryl669 commented Sep 27, 2023

This adds a binding for screen.Redraw function in Lua as discussed in the linked issue.
This is required for using asynchronous functions in Lua that have visible impact on the UI.

This fixes #2923

I've tested it in my filemanager's plugin branch and it's working perfectly.

@JoeKar
Copy link
Member

JoeKar commented Sep 27, 2023

Since one new interface has been exported the help should be updated accordingly:
https://github.com/zyedidia/micro/blob/master/runtime/help/plugins.md#accessing-micro-functions

The Tabs, Lock and potential other missing interface can be added too in this moment. ;)

@X-Ryl669
Copy link
Author

Ok, did my best from my limited understanding of the other field. Let me know if it's ok for you.

@X-Ryl669
Copy link
Author

Any update on this ?

@dmaluka
Copy link
Collaborator

dmaluka commented Oct 10, 2023

IMHO, I would hold on with this and instead try to revisit lua timers as per our discussion in #2945.

@dmaluka
Copy link
Collaborator

dmaluka commented Mar 14, 2024

#3023 has been merged, so I think this PR is no longer needed.

@X-Ryl669 X-Ryl669 closed this Mar 14, 2024
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.

Timer callback in lua plugins can't refresh the screen

3 participants