0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Gemini CLI】Ctrl+bで戻らなくて「No background tasks...」が流れてくるのをもうやめる

0
Last updated at Posted at 2026-05-11

tl;dr

~/.gemini/keybindings.json を作成して, 下記のように設定する.
これにより Ctrl+b でカーソルを「1文字戻る」, 代わりに元のバックグラウンド機能を別キー (例: Ctrl+q) へ退避できる.

~/.gemini/keybindings.json
[
  {
    "command": "-background.toggle",
    "key": "ctrl+b"
  },
  {
    "command": "cursor.left",
    "key": "ctrl+b"
  },
  {
    "command": "background.toggle",
    "key": "ctrl+q"
  }
]

キーを上書きしたい場合は, command 名の先頭に - を付けて, デフォルトの割り当てを明示的に解除する必要があるらしい.

Ctrl+b 問題に毎回引っかかる日々

Gemini CLI では, Ctrl+f, Alt+f, Alt+b等はカーソル移動に割り当てられている一方, Ctrl+b だけは background.toggle(バックグラウンドタスクの表示切り替え)に割り当てられている.
つい手癖で「1文字戻る」つもりで Ctrl+b を長押してしまうがカーソルは動かず, 無慈悲にも下記のメッセージが連続表示されてしまうことが多発.

ℹ No background tasks are currently active.

image.png

Emacs や Mac 等のユーザーにとってはこれがなかなかのストレスだったのだが, キーのカスタム機能がいつの間にか実装されていた.

Ctrl+b 問題についてユーザーからの怒りの声

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?