Skip to content

Commit

Permalink
feat: default "Reveal" opener for Linux (#907)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Apr 13, 2024
1 parent 5fc2789 commit 0cc14f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions yazi-config/preset/yazi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
2 changes: 1 addition & 1 deletion yazi-plugin/preset/components/current.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion yazi-plugin/preset/plugins/folder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0cc14f4

Please sign in to comment.