diff options
| author | user@node5.net <user@node5.net> | 2026-02-12 00:29:57 +0100 |
|---|---|---|
| committer | user@node5.net <user@node5.net> | 2026-02-12 00:29:57 +0100 |
| commit | 1b204fc1babfc0bbd4f394b0734d5a43747e8383 (patch) | |
| tree | 259e910df2724cdc6c42d410d301f3999e5368ec /lua.lua | |
| parent | 639c06a0fdb7ceebf5676fac6066138197e7bc34 (diff) | |
File browser, open in GUI file browser with Shift+O
Diffstat (limited to 'lua.lua')
| -rw-r--r-- | lua.lua | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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, + }, + }, + }, + }, +}) |
