Skip to content

Commit a3896e0

Browse files
authored
fix: open on linux / xdg-open output's parent dir (#19)
1 parent b9e54ef commit a3896e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/freeze-code/commands.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ local open_by_os = function(opts)
137137
local filename = vim.fn.expand(opts.output)
138138
if is_win then
139139
cmd = { "explorer", filename }
140+
elseif is_unix then
141+
cmd = { "xdg-open", vim.fs.dirname(filename) }
140142
else
141143
cmd = { "open", filename }
142144
end

0 commit comments

Comments
 (0)