3
0
mirror of https://github.com/britzl/monarch.git synced 2025-06-27 02:17:53 +02:00

Only allow editor script to target .gui (#67)

* Only allow editor script to target .gui

Disable .collection and .gui_script

* whitespace
This commit is contained in:
Brian 2020-11-22 23:32:12 -08:00 committed by GitHub
parent 00808c0d56
commit 03baa3eeb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ function M.get_commands()
},
active = function(opts)
local path = editor.get(opts.selection, "path")
return ends_with(path, ".gui") or ends_with(path, ".collection") or ends_with(path, ".gui_script")
return ends_with(path, ".gui")
end,
run = function(opts)
create_files(opts.selection)