aboutsummaryrefslogtreecommitdiff
path: root/lua.lua
diff options
context:
space:
mode:
authoruser@node5.net <user@node5.net>2026-02-12 00:29:57 +0100
committeruser@node5.net <user@node5.net>2026-02-12 00:29:57 +0100
commit1b204fc1babfc0bbd4f394b0734d5a43747e8383 (patch)
tree259e910df2724cdc6c42d410d301f3999e5368ec /lua.lua
parent639c06a0fdb7ceebf5676fac6066138197e7bc34 (diff)
File browser, open in GUI file browser with Shift+O
Diffstat (limited to 'lua.lua')
-rw-r--r--lua.lua22
1 files changed, 22 insertions, 0 deletions
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 = {
+ ["<F5>"] = "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,
+ },
+ },
+ },
+ },
+})