BashのためのVimのような「コマンドラインウィンドウ」はありますか?

BashのためのVimのような「コマンドラインウィンドウ」はありますか?

履歴の項目を表示、編集、または実行できるVimのBashに似た「コマンドラインウィンドウ」はありますか?

:Vimでキーを押すと、コマンド全体のCtrl-F履歴を示すウィンドウが開きます。

7. Command-line window              *cmdline-window* *cmdwin*
                            *command-line-window*
In the command-line window the command line can be edited just like editing
text in any window.  It is a special kind of window, because you cannot leave
it in a normal way.

OPEN                        *c_CTRL-F* *q:* *q/* *q?*

[..]

When the window opens it is filled with the command-line history.  The last
line contains the command as typed so far.  The left column will show a
character that indicates the type of command-line being edited, see
|cmdwin-char|.

押すとEnter現在の行が実行されます。

Ctrl-R/((vi-mode)などを使用して履歴を検索できることを知っています。)

ベストアンサー1

2つのオプションがあります。

インストールできますhstrhttps://github.com/dvorka/hstr)これには、コマンド履歴を簡単に表示、閲覧、検索、管理するための高度な検索オプションを含む提案ボックスが含まれています。

ここに画像の説明を入力してください。

Bashにはviに似たコマンドライン履歴エディタもあります。 aを実行すると、set -o vi次のキーストロークを使用して履歴全体を検索できます。

Escコマンドモードに切り替え

/検索を開始します。検索文字列を入力してEnter検索を実行します。

n次のゲームに移動すると同時にN前のゲームに移動

i挿入モードに戻る

おすすめ記事