mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
feat: default "Reveal" opener for Linux (#907)
This commit is contained in:
parent
5fc2789c78
commit
0cc14f44d7
3 changed files with 3 additions and 2 deletions
|
|
@ -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" },
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue