[Github-comments] [geany/geany-plugins] GeanyLua: Add filetype to set in geany.newfile() (#652)
Skif-off
notifications at xxxxx
Thu Nov 30 08:21:08 UTC 2017
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
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/652
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20171130/14f784cd/attachment.html>
More information about the Github-comments
mailing list