diff options
Diffstat (limited to 'plugins/cleanstart.lua')
-rw-r--r-- | plugins/cleanstart.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/cleanstart.lua b/plugins/cleanstart.lua new file mode 100644 index 0000000..b1f3244 --- /dev/null +++ b/plugins/cleanstart.lua @@ -0,0 +1,11 @@ +-- mod-version:3 +require 'plugins.treeview' -- load after treeview +local command = require 'core.command' + +local close = true +for _, v in ipairs(ARGS) do + local info = system.get_file_info(v) + if info and info.type == "dir" then close = false; break end +end + +if close then command.perform "treeview:toggle" end |