-
-
Notifications
You must be signed in to change notification settings - Fork 790
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
Lua Debug Terminal #641
Comments
Adds a `ShowDebugOverlay` key assignment that will create a tab overlay that shows a limited number of recently logged events. refs: #641
`wezterm` is pre-imported. The repl prints the result of the expressions to the overlay. refs: #641
Make print equivalent to log_info. Improve the various log functions so that all of their arguments are considered. refs: #641
There's now a basic implementation of this in I've bound Any state changed in the lua context in that overlay is local to that overlay. The lua context has One thing to note about this is that it won't be possible to directly define event handlers using However, once |
Thanks for this!!! You are rocking!! A couple of things I noticed to start. SHIFT+CTRL+L cleared my screen rather than invoking the debug overlay. When I It was aggressive in parsing. I typed I haven't tried much else yet, and, I know this is early code. Pretty cool though! And it didn't seem to be much code when I browsed the commit. |
Yeah, I haven't added a default key assignment for this yet.
Yeah, the line under the line editor shows a "preview" of the parse status. It parses but does not execute the code until you hit enter! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Is your feature request related to a problem? Please describe.
In order to learn about the API having a playground to test things out would be helpful. It would allow tweaking the running in-memory configuration to try out ideas.
Describe the solution you'd like
The basic idea is that a new window (or tab??) pops up that allows you to type in Lua and see the results. The context would be with the running configuration, globals, etc. All
print
statements would display in the debug terminal. A bonus is that alllog
messages would show up there too.Any Lua statements would affect the current running config if they are applicable.
I don't yet understand
domain
s but my guess is aDebugDomain
concept might apply.Hammerspoon
(also Lua-based config) has a concept similar to what I'm proposed with thetoggleConsole
command.Describe alternatives you've considered
I thought about having a modifying
SendString
that might accomplish the purpose but that does not seem like a right solution as it would not be "powerful" enough.The text was updated successfully, but these errors were encountered: