diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-03 15:15:43 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-03 15:15:43 +0800 |
| commit | 706de616460a8b3698accca679e44a98ab5c00aa (patch) | |
| tree | 951834c8d12aa71e438bbdf2c479fd6dab41b6f4 /scripts | |
| parent | baeee2f316c8c9ccab3da15943b478aed99c6cad (diff) | |
Add break option to align moved command
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/completions/bash/completion_jv.sh | 8 | ||||
| -rw-r--r-- | scripts/completions/powershell/completion_jv.ps1 | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/scripts/completions/bash/completion_jv.sh b/scripts/completions/bash/completion_jv.sh index d6743e7..4023e42 100644 --- a/scripts/completions/bash/completion_jv.sh +++ b/scripts/completions/bash/completion_jv.sh @@ -113,11 +113,11 @@ _jv_completion() { elif [[ "$item" == lost:* ]]; then align_operations="confirm $created_items" elif [[ "$item" == "moved" || "$item" == moved:* ]]; then - align_operations="local remote" + align_operations="local remote break" elif [[ "$item" == "erased" || "$item" == erased:* ]]; then align_operations="confirm" else - align_operations="local remote confirm $created_items" + align_operations="local remote confirm break $created_items" fi COMPREPLY=($(compgen -W "$align_operations" -- "$cur")) @@ -145,11 +145,11 @@ _jv_completion() { elif [[ "$item" == lost:* ]]; then align_operations="confirm $created_items" elif [[ "$item" == "moved" || "$item" == moved:* ]]; then - align_operations="local remote" + align_operations="local remote break" elif [[ "$item" == "erased" || "$item" == erased:* ]]; then align_operations="confirm" else - align_operations="local remote confirm $created_items" + align_operations="local remote confirm break $created_items" fi COMPREPLY=($(compgen -W "$align_operations" -- "$cur")) diff --git a/scripts/completions/powershell/completion_jv.ps1 b/scripts/completions/powershell/completion_jv.ps1 index 5027a35..0c854e3 100644 --- a/scripts/completions/powershell/completion_jv.ps1 +++ b/scripts/completions/powershell/completion_jv.ps1 @@ -102,11 +102,11 @@ Register-ArgumentCompleter -Native -CommandName jv -ScriptBlock { } elseif ($item -like "lost:*") { $alignOperations = @("confirm") + $createdItems } elseif ($item -eq "moved" -or $item -like "moved:*") { - $alignOperations = @("local", "remote") + $alignOperations = @("local", "remote", "break") } elseif ($item -eq "erased" -or $item -like "erased:*") { $alignOperations = @("confirm") } else { - $alignOperations = @("local", "remote", "confirm") + $createdItems + $alignOperations = @("local", "remote", "confirm", "break") + $createdItems } return $alignOperations | Where-Object { $_ -like "$wordToComplete*" } @@ -133,11 +133,11 @@ Register-ArgumentCompleter -Native -CommandName jv -ScriptBlock { } elseif ($item -like "lost:*") { $alignOperations = @("confirm") + $createdItems } elseif ($item -eq "moved" -or $item -like "moved:*") { - $alignOperations = @("local", "remote") + $alignOperations = @("local", "remote", "break") } elseif ($item -eq "erased" -or $item -like "erased:*") { $alignOperations = @("confirm") } else { - $alignOperations = @("local", "remote", "confirm") + $createdItems + $alignOperations = @("local", "remote", "confirm", "break") + $createdItems } return $alignOperations | Where-Object { $_ -like "$wordToComplete*" } |
