How to change window size and maximize it from init.lua? #55
Answered
by
orbitalquark
winterwolf
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Textadept stores window geometry and maximized state in a session file, which is loaded after your *~/.textadept/init.lua* is read, so that's probably what's undoing your settings. Try wrapping your settings in an `events.INITIALIZED` handler:
events.connect(events.INITIALIZED, function()
ui.maximized = true
end)
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
winterwolf
-
Sorry, I don't understand the question. From your *~/.textadept/init.lua* you can launch processes via `os.spawn()`, `os.execute()`, and `io.popen()`. If you need a window handle or something to pass to such a process, Textadept does not provide that.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am not satisfied with the default window size and changing the ui.size values does nothing.
In theory, I could solve this issue by calling wmctrl through os.execute but I don't like such a crutch.
There should be some native solution...
Beta Was this translation helpful? Give feedback.
All reactions