|
|
Line 1,688: |
Line 1,688: |
| === Completing === | | === Completing === |
| ;complete (TAB) | | ;complete (TAB) |
| :Attempt to perform completion on the text before point. Bash attempts completion treating the text as a variable (if the text begins with $), username (if the text begins with ~), hostname (if the text begins with @), or command (including aliases and functions) in turn. If none of these produces a match, filename completion is attempted. | | :point前のテキストに対して補完を試みる。 Bashは、テキストを変数(テキストが$で始まる場合)、ユーザー名(テキストが~で始まる場合)、ホスト名(テキストが@で始まる場合)、コマンド(エイリアスや関数を含む)として順番に扱い、補完を試みる。 どれもマッチしない場合は、ファイル名補完を試みる。 |
| ;possible-completions (M-?) | | ;possible-completions (M-?) |
| :List the possible completions of the text before point. | | :pointの前に、テキストの可能な完成形を列挙する。 |
| ;insert-completions (M-*) | | ;insert-completions (M-*) |
| :Insert all completions of the text before point that would have been generated by possible-completions. | | :possible-completionsによって生成されたであろう、pointの前のテキストのすべての補完を挿入する。 |
| ;menu-complete | | ;menu-complete |
| :Similar to complete, but replaces the word to be completed with a single match from the list of possible completions. Repeated execution of menu-complete steps through the list of possible completions, inserting each match in turn. At the end of the list of completions, the bell is rung (subject to the setting of bell-style) and the original text is restored. An argument of n moves n positions forward in the list of matches; a negative argument may be used to move backward through the list. This command is intended to be bound to TAB, but is unbound by default. | | :completeと似ているが、補完される単語を、補完可能リストからマッチする単語1つに置き換える。 menu-completeを繰り返し実行することで、補完可能な単語リストに順番にマッチする単語を挿入していく。 補完のリストが終わると、ベルが鳴らされ(ベルスタイルの設定に従う)、元のテキストに戻る。 引数nを指定すると、マッチのリストがn個前に進む。 このコマンドはTABにバインドされることを意図しているが、デフォルトではバインドされていない。 |
| ;menu-complete-backward | | ;menu-complete-backward |
| :Identical to menu-complete, but moves backward through the list of possible completions, as if menu-complete had been given a negative argument. This command is unbound by default. | | :menu-completeと同じだが、あたかもmenu-completeに負の引数を与えたかのように、補完可能なリストを後方に移動する。 このコマンドはデフォルトではバインドされていない。 |
| ;delete-char-or-list | | ;delete-char-or-list |
| :Deletes the character under the cursor if not at the beginning or end of the line (like delete-char). If at the end of the line, behaves identically to possible-completions. This command is unbound by default. | | :行頭または行末でない場合、カーソルの下にある文字を削除する(delete-charと同じ)。 行末にある場合は、可能補完と同じ動作をする。このコマンドはデフォルトではバインドされていない。 |
| ;complete-filename (M-/) | | ;complete-filename (M-/) |
| :Attempt filename completion on the text before point. | | :pointより前のテキストでファイル名の補完を試みる。 |
| ;possible-filename-completions (C-x /) | | ;possible-filename-completions (C-x /) |
| :List the possible completions of the text before point, treating it as a filename. | | :pointの前のテキストをファイル名として扱い、可能な補完を列挙する。 |
| ;complete-username (M-~) | | ;complete-username (M-~) |
| :Attempt completion on the text before point, treating it as a username. | | :pointより前のテキストをユーザー名として扱い、補完を試みる。 |
| ;possible-username-completions (C-x ~) | | ;possible-username-completions (C-x ~) |
| :List the possible completions of the text before point, treating it as a username. | | :point前のテキストをユーザー名として扱い、可能な補完を列挙する。 |
| ;complete-variable (M-$) | | ;complete-variable (M-$) |
| :Attempt completion on the text before point, treating it as a shell variable. | | :point前のテキストをシェル変数として扱い、補完を試みる。 |
| ;possible-variable-completions (C-x $) | | ;possible-variable-completions (C-x $) |
| :List the possible completions of the text before point, treating it as a shell variable. | | :シェル変数として扱い、pointの前にあるテキストの可能な補完を列挙する。 |
| ;complete-hostname (M-@) | | ;complete-hostname (M-@) |
| :Attempt completion on the text before point, treating it as a hostname. | | :pointより前のテキストをホスト名として扱い、補完を試みる。 |
| ;possible-hostname-completions (C-x @) | | ;possible-hostname-completions (C-x @) |
| :List the possible completions of the text before point, treating it as a hostname. | | :pointの前のテキストをホスト名として扱い、可能な補完を列挙する。 |
| ;complete-command (M-!) | | ;complete-command (M-!) |
| :Attempt completion on the text before point, treating it as a command name. Command completion attempts to match the text against aliases, reserved words, shell functions, shell builtins, and finally executable filenames, in that order. | | :pointより前のテキストをコマンド名として扱い、補完を試みる。 コマンド補完は、エイリアス、予約語、シェル関数、シェル組み込み関数、そして最後に実行ファイル名の順に、テキストとのマッチングを試みる。 |
| ;possible-command-completions (C-x !) | | ;possible-command-completions (C-x !) |
| :List the possible completions of the text before point, treating it as a command name. | | :pointの前のテキストをコマンド名として扱い、可能な補完を列挙する。 |
| ;dynamic-complete-history (M-TAB) | | ;dynamic-complete-history (M-TAB) |
| :Attempt completion on the text before point, comparing the text against lines from the history list for possible completion matches. | | :point前のテキストに対して補完を試み、補完にマッチする可能性のある履歴リストの行とテキストを比較する。 |
| ;dabbrev-expand | | ;dabbrev-expand |
| :Attempt menu completion on the text before point, comparing the text against lines from the history list for possible completion matches. | | :point前のテキストに対してメニュー補完を試み、補完にマッチする可能性のある履歴リストの行とテキストを比較する。 |
| ;complete-into-braces (M-{) | | ;complete-into-braces (M-{) |
| :Perform filename completion and insert the list of possible completions enclosed within braces so the list is available to the shell (see Brace Expansion above). | | :ファイル名の補完を実行し、可能な補完のリストを中括弧で囲んで挿入し、シェルがそのリストを利用できるようにする(上記の[[#Brace Expansion|Brace Expansion ]]を参照)。 |
|
| |
|
| === Keyboard Macros === | | === Keyboard Macros === |