|
3 | 3 | helpname: 'pi_zip' |
4 | 4 | --- |
5 | 5 | <div id='vimCodeElement'> |
6 | | -<a class="Constant" href="pi_zip.html" name="pi_zip.txt">pi_zip.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2025 Jul 15<br> |
| 6 | +<a class="Constant" href="pi_zip.html" name="pi_zip.txt">pi_zip.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2025 Sep 22<br> |
7 | 7 | <br> |
8 | 8 | +====================+<br> |
9 | 9 | | Zip File Interface |<br> |
|
54 | 54 | るように、正しいクォートのメカニズムを推測しようとする。ただし、設定で使用<br> |
55 | 55 | するクォートを誤推測した場合は以下を使用する<br> |
56 | 56 | <div class="helpExample"> g:zip_shq</div> |
57 | | - デフォルトでは、Unix ではシングルクォート (')、Windows ではダブルクォート<br> |
| 57 | + デフォルトでは、Unix ではシングルクォート (')、Windows ではダブルクォート<br> |
58 | 58 | (")である。クォート自体をしたくない場合は <.vimrc> の中で g:zip_shq に空文<br> |
59 | 59 | 字を設定する (let g:zip_shq = "") だけである。<br> |
60 | 60 | <br> |
|
80 | 80 | "0" に設定すると、"unzip" コマンドの実行を防ぐことができる:<br> |
81 | 81 | <div class="helpExample"> let g:zip_exec=0</div> |
82 | 82 | <br> |
| 83 | + <span class="PreProc">PowerShell コアへのフォールバック</span><br> |
| 84 | +<br> |
| 85 | + このプラグインは、まず (より高機能な) GNU zip/unzip コマンドの使用を試みる。<br> |
| 86 | + これらのコマンドが使用できない、または失敗し、ユーザーが PowerShell Core を<br> |
| 87 | + 使用している場合 (つまり、<a class="Type" href="options.html#'shell'">'shell'</a> オプションが "pwsh" に一致する場合)、プラ<br> |
| 88 | + グインは PowerShell Core コマンドレットにフォールバックする。PowerShell<br> |
| 89 | + Core コマンドレットには制限があり、zip アーカイブのサブディレクトリ内のファ<br> |
| 90 | + イルの書き込みや解凍はできない。ただし、別途 unzip バイナリをインストールす<br> |
| 91 | + る必要がないという利点がある。<br> |
| 92 | +<br> |
83 | 93 | <span class="PreProc">読み込みの無効化</span><br> |
84 | 94 | <br> |
85 | 95 | 何らかの理由で vim を使用して zip ファイルを検査したくない場合は、次の 2 つ<br> |
|
114 | 124 | <span class="PreProc">==============================================================================</span><br> |
115 | 125 | 4. 開発履歴 <a class="Constant" href="pi_zip.html#zip-history" name="zip-history">zip-history</a> {{ "{{{" }}1<br> |
116 | 126 | unreleased:<br> |
| 127 | + Sep 19, 2025 * support PowerShell Core<br> |
117 | 128 | Jul 12, 2025 * drop ../ on write to prevent path traversal attacks<br> |
118 | 129 | Mar 11, 2025 * handle filenames with leading '-' correctly<br> |
119 | 130 | Aug 21, 2024 * simplify condition to detect MS-Windows<br> |
|
0 commit comments