From 112d3fd03b4fea9ffabc413c96b2515ca346b29d Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Sun, 4 Jul 2021 21:28:23 +0200 Subject: [PATCH] by default launch in $HOME --- TODO | 2 ++ data/core/init.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 2c658b7..2c3d23c 100644 --- a/TODO +++ b/TODO @@ -15,6 +15,8 @@ [ ] prevent overscrolling on treeview [ ] user config file and/or init.lua [ ] save session and restore on reopening +[ ] optimize dir tree taking too long to load on big folders +[ ] go in background when launching from terminal [ ] some key bindings: [ ] alt+right == End [ ] alt+left == Home diff --git a/data/core/init.lua b/data/core/init.lua index cef305e..6e0aa2b 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -82,7 +82,7 @@ function core.init() CommandView = require "core.commandview" Doc = require "core.doc" - local project_dir = EXEDIR + local project_dir = os.getenv("HOME") or '/' local files = {} for i = 2, #ARGS do local info = system.get_file_info(ARGS[i]) or {}