feat: default "Reveal" opener for Linux (#907)

This commit is contained in:
三咲雅 · Misaki Masa 2024-04-14 01:43:10 +08:00 committed by GitHub
parent 5fc2789c78
commit 0cc14f44d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 "$0")"', 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