From 4cb7c2e91d7dbde32de31e6ab48683d60212ec1d Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 25 Mar 2026 21:52:52 +0800 Subject: Add shell flag to completion scripts and rename output files - Add -F flag to all completion scripts to specify shell type - Rename completion output files to generic names (comp.sh, comp.zsh, etc.) - Add help text for jvn_comp program - Combine specific and default completion results - Add completion handlers for sheetdump, sheetedit, and version commands - Remove word count limits from workspace_alias and workspace_sheet completions --- src/cmds/comp/workspace_sheet.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/cmds/comp/workspace_sheet.rs') diff --git a/src/cmds/comp/workspace_sheet.rs b/src/cmds/comp/workspace_sheet.rs index 89cd259..3162442 100644 --- a/src/cmds/comp/workspace_sheet.rs +++ b/src/cmds/comp/workspace_sheet.rs @@ -3,17 +3,6 @@ use cli_utils::string_vec; use just_enough_vcs::system::workspace::workspace::manager::WorkspaceManager; pub fn comp(ctx: CompletionContext) -> Option> { - if ctx.all_words.len() > 5 { - return None; - } - - if (ctx.all_words.contains(&"--list-all".to_string()) - || ctx.all_words.contains(&"-A".to_string())) - && ctx.all_words.len() > 4 - { - return None; - } - if ctx.current_word.starts_with('-') { return Some(string_vec![ "-A", -- cgit