feat: default "Reveal" opener for Linux

This commit is contained in:
sxyazi 2024-04-14 01:37:23 +08:00
parent 5fc2789c78
commit d89dddfef1
No known key found for this signature in database
3 changed files with 3 additions and 2 deletions

View file

@ -36,6 +36,7 @@ open = [
{ run = 'start "" "%1"', orphan = true, desc = "Open", for = "windows" },
]
reveal = [
{ run = 'xdg-open "$(dirname "$1")"', desc = "Reveal", for = "linux" },
{ run = 'open -R "$1"', desc = "Reveal", for = "macos" },
{ run = 'explorer /select, "%1"', orphan = true, desc = "Reveal", for = "windows" },
{ run = '''exiftool "$1"; echo "Press enter to exit"; read _''', block = true, desc = "Show EXIF", for = "unix" },

View file

@ -9,7 +9,7 @@ function Current:empty(area)
if folder.files.filter then
line = ui.Line("No filter results")
else
line = ui.Line(folder.stage == "loading" and "Loading..." or "No files")
line = ui.Line(folder.stage == "loading" and "Loading..." or "No items")
end
return {

View file

@ -13,7 +13,7 @@ function M:peek()
if #folder.files == 0 then
return ya.preview_widgets(self, {
ui.Paragraph(self.area, { ui.Line(folder.stage == "loading" and "Loading..." or "No files") })
ui.Paragraph(self.area, { ui.Line(folder.stage == "loading" and "Loading..." or "No items") })
:align(ui.Paragraph.CENTER),
})
end