It's continuation of the discussion #646 . Code example: ```lua local s = geany.selection();
if (s ~= "") and (s ~= nil) then local t = geany.fileinfo(); geany.newfile("", t.type); geany.selection(s); end ```
Old/current scripts don't need to be updated, they will still work! You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany-plugins/pull/652
-- Commit Summary --
* GeanyLua: Add filetype to set in geany.newfile()
-- File Changes --
M geanylua/docs/geanylua-ref.html (24) M geanylua/glspi_doc.c (17)
-- Patch Links --
https://github.com/geany/geany-plugins/pull/652.patch https://github.com/geany/geany-plugins/pull/652.diff