From e4829372db533c6201ace0d627663adc12dd2868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20misaki=20masa?= Date: Wed, 11 Mar 2026 13:34:11 +0800 Subject: [PATCH] feat: link to the quick-start in `yazi --help` where lists all common keybinds (#3754) --- yazi-actor/src/mgr/cd.rs | 2 +- yazi-actor/src/mgr/update_files.rs | 2 +- yazi-boot/src/args.rs | 1 + yazi-plugin/preset/plugins/multi.lua | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/yazi-actor/src/mgr/cd.rs b/yazi-actor/src/mgr/cd.rs index a0882a20..a5aabeb3 100644 --- a/yazi-actor/src/mgr/cd.rs +++ b/yazi-actor/src/mgr/cd.rs @@ -50,7 +50,7 @@ impl Actor for Cd { err!(Pubsub::pub_after_cd(tab.id, tab.cwd())); act!(mgr:displace, cx)?; - act!(mgr:hidden, cx)?; + act!(mgr:hidden, cx).ok(); act!(mgr:sort, cx).ok(); act!(mgr:hover, cx)?; act!(mgr:refresh, cx)?; diff --git a/yazi-actor/src/mgr/update_files.rs b/yazi-actor/src/mgr/update_files.rs index 195bfd39..da8fc4e5 100644 --- a/yazi-actor/src/mgr/update_files.rs +++ b/yazi-actor/src/mgr/update_files.rs @@ -25,7 +25,7 @@ impl Actor for UpdateFiles { } render!(cx.mgr.yanked.catchup_revision(false)); - act!(mgr:hidden, cx)?; + act!(mgr:hidden, cx).ok(); act!(mgr:sort, cx).ok(); if revision != cx.current().files.revision { diff --git a/yazi-boot/src/args.rs b/yazi-boot/src/args.rs index d6071a2e..76c50936 100644 --- a/yazi-boot/src/args.rs +++ b/yazi-boot/src/args.rs @@ -5,6 +5,7 @@ use yazi_shared::{Id, url::UrlBuf}; #[derive(Debug, Default, Parser)] #[command(name = "yazi")] +#[command(after_help = "See https://yazi-rs.github.io/docs/quick-start for a quick starter.")] pub struct Args { /// Set the current working entry #[arg(index = 1, num_args = 1..=9)] diff --git a/yazi-plugin/preset/plugins/multi.lua b/yazi-plugin/preset/plugins/multi.lua index 7dee4696..600092c2 100644 --- a/yazi-plugin/preset/plugins/multi.lua +++ b/yazi-plugin/preset/plugins/multi.lua @@ -39,8 +39,8 @@ function M:spot_multi(job, comp) local rows = { ui.Row({ "Multi" }):style(ui.Style():fg("green")), - ui.Row { " Count:", string.format("%d selected", #self.selected) }, ui.Row { " Size:", ya.readable_size(self.sum) .. (comp and "" or " (?)") }, + ui.Row { " Count:", string.format("%d selected", #self.selected) }, } ya.spot_table(