Skip to content

Commit 079e61b

Browse files
authored
Merge pull request #2337 from h-east/update-pi_zip
Update pi_zip.{txt,jax}
2 parents 2ff5719 + 3800dfb commit 079e61b

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

doc/pi_zip.jax

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pi_zip.txt* For Vim バージョン 9.1. Last change: 2025 Jul 15
1+
*pi_zip.txt* For Vim バージョン 9.1. Last change: 2025 Sep 22
22

33
+====================+
44
| Zip File Interface |
@@ -49,7 +49,7 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
4949
るように、正しいクォートのメカニズムを推測しようとする。ただし、設定で使用
5050
するクォートを誤推測した場合は以下を使用する >
5151
g:zip_shq
52-
< デフォルトでは、Unix ではシングルクォート (')、Windows ではダブルクォート
52+
< デフォルトでは、Unix ではシングルクォート (')、Windows ではダブルクォート
5353
(")である。クォート自体をしたくない場合は <.vimrc> の中で g:zip_shq に空文
5454
字を設定する (let g:zip_shq = "") だけである。
5555

@@ -75,6 +75,16 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
7575
"0" に設定すると、"unzip" コマンドの実行を防ぐことができる: >
7676
let g:zip_exec=0
7777
<
78+
PowerShell コアへのフォールバック~
79+
80+
このプラグインは、まず (より高機能な) GNU zip/unzip コマンドの使用を試みる。
81+
これらのコマンドが使用できない、または失敗し、ユーザーが PowerShell Core を
82+
使用している場合 (つまり、'shell' オプションが "pwsh" に一致する場合)、プラ
83+
グインは PowerShell Core コマンドレットにフォールバックする。PowerShell
84+
Core コマンドレットには制限があり、zip アーカイブのサブディレクトリ内のファ
85+
イルの書き込みや解凍はできない。ただし、別途 unzip バイナリをインストールす
86+
る必要がないという利点がある。
87+
7888
読み込みの無効化~
7989

8090
何らかの理由で vim を使用して zip ファイルを検査したくない場合は、次の 2 つ
@@ -109,6 +119,7 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
109119
==============================================================================
110120
4. 開発履歴 *zip-history* {{{1
111121
unreleased:
122+
Sep 19, 2025 * support PowerShell Core
112123
Jul 12, 2025 * drop ../ on write to prevent path traversal attacks
113124
Mar 11, 2025 * handle filenames with leading '-' correctly
114125
Aug 21, 2024 * simplify condition to detect MS-Windows

en/pi_zip.txt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pi_zip.txt* For Vim version 9.1. Last change: 2025 Jul 15
1+
*pi_zip.txt* For Vim version 9.1. Last change: 2025 Sep 22
22

33
+====================+
44
| Zip File Interface |
@@ -50,7 +50,7 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
5050
allow spaces and whatnot in filenames; however, if it is incorrectly
5151
guessing the quote to use for your setup, you may use >
5252
g:zip_shq
53-
< which by default is a single quote under Unix (') and a double quote
53+
< which by default is a single quote under Unix (') and a double quote
5454
under Windows ("). If you'd rather have no quotes, simply set
5555
g:zip_shq to the empty string (let g:zip_shq= "") in your <.vimrc>.
5656

@@ -77,6 +77,16 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
7777
"0": >
7878
let g:zip_exec=0
7979
<
80+
FALLBACK TO POWERSHELL CORE~
81+
82+
This plugin will first attempt to use the (more capable) GNU zip/unzip
83+
commands. If these commands are not available or fail, and the user is
84+
using PowerShell Core (i.e., the 'shell' option matches "pwsh"), the
85+
plugin will fall back to a PowerShell Core cmdlet. The PowerShell Core
86+
cmdlets are limited: they cannot write or extract files within
87+
subdirectories of a zip archive. The advantage, however, is that no
88+
separate unzip binary needs to be installed.
89+
8090
PREVENTING LOADING~
8191

8292
If for some reason you do not wish to use vim to examine zipped files,
@@ -112,6 +122,7 @@ Copyright: Copyright (C) 2005-2015 Charles E Campbell *zip-copyright*
112122
==============================================================================
113123
4. History *zip-history* {{{1
114124
unreleased:
125+
Sep 19, 2025 * support PowerShell Core
115126
Jul 12, 2025 * drop ../ on write to prevent path traversal attacks
116127
Mar 11, 2025 * handle filenames with leading '-' correctly
117128
Aug 21, 2024 * simplify condition to detect MS-Windows

0 commit comments

Comments
 (0)