From 1b204fc1babfc0bbd4f394b0734d5a43747e8383 Mon Sep 17 00:00:00 2001 From: "user@node5.net" Date: Thu, 12 Feb 2026 00:29:57 +0100 Subject: File browser, open in GUI file browser with Shift+O --- lua.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lua.lua (limited to 'lua.lua') diff --git a/lua.lua b/lua.lua new file mode 100644 index 0000000..0750d6c --- /dev/null +++ b/lua.lua @@ -0,0 +1,22 @@ +require("neo-tree").setup({ + window = { + mappings = { + [""] = "refresh", + ["o"] = "open", + } + }, + filesystem = { + window = { + mappings = { + ["O"] = { + command = function(state) + local node = state.tree:get_node() + local cmd = "thunar '" .. node.path .. "'" .. " > /dev/null 2>&1" + print("Opening: " .. node.path) -- Debug statement + os.execute(cmd) + end, + }, + }, + }, + }, +}) -- cgit v1.2.3