From 1e43def95472d9c906cff50534b38be2864690f4 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 15 Dec 2025 10:05:21 +0800 Subject: Update help documentation and move command functionality - Redesign move command to modify upstream mappings with support for erase operations - Add erased items support to align command and status display - Update help text to reflect new move mapping semantics and add erased item instructions - Add auto-update timeout configuration via JV_OUTDATED_MINUTES environment variable - Improve status display with separate structural and content change modes - Add force flag to hold/throw commands to skip pre-checks - Update completion scripts to include erased items in align command --- scripts/completions/bash/completion_jv.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/completions/bash') diff --git a/scripts/completions/bash/completion_jv.sh b/scripts/completions/bash/completion_jv.sh index ff600ed..be5afc6 100644 --- a/scripts/completions/bash/completion_jv.sh +++ b/scripts/completions/bash/completion_jv.sh @@ -99,7 +99,7 @@ _jv_completion() { ;; "align") if [[ $cword -eq 3 ]]; then - local align_items="lost moved" + local align_items="lost moved erased" local unsolved_items unsolved_items=$($cmd sheet align --unsolved --raw 2>/dev/null) COMPREPLY=($(compgen -W "$align_items $unsolved_items" -- "$cur")) @@ -115,6 +115,8 @@ _jv_completion() { align_operations="confirm $created_items" elif [[ "$item" == "moved" || "$item" == moved:* ]]; then align_operations="local remote" + elif [[ "$item" == "erased" || "$item" == erased:* ]]; then + align_operations="confirm" else align_operations="local remote confirm $created_items" fi @@ -129,7 +131,7 @@ _jv_completion() { # Completion align if [[ "$subcmd" == "align" ]]; then if [[ $cword -eq 2 ]]; then - local align_items="lost moved" + local align_items="lost moved erased" local unsolved_items unsolved_items=$($cmd sheet align --unsolved --raw 2>/dev/null) COMPREPLY=($(compgen -W "$align_items $unsolved_items" -- "$cur")) @@ -145,6 +147,8 @@ _jv_completion() { align_operations="confirm $created_items" elif [[ "$item" == "moved" || "$item" == moved:* ]]; then align_operations="local remote" + elif [[ "$item" == "erased" || "$item" == erased:* ]]; then + align_operations="confirm" else align_operations="local remote confirm $created_items" fi -- cgit