Control-R 停止工作,我必须按 Control-Shift-R

ken*_*orb 8 bash shortcut-keys gnome-terminal 18.10

之前,我可以在 GNOME 终端中点击Control-R进入 Bash(reverse-i-search)模式。

但是,这停止工作,光标只是闪烁而不做任何事情。这也会影响远程和容器外壳(以前在那里工作)。

虽然我已经注意到,但它在我按下时起作用:Control- Shift- R

我在 GNOME 终端 v3.30.1 上使用 GNU bash v4.4.19。我不确定这是 Ubuntu Cosmic 的一些新功能,还是其他什么。

看来,这也会影响网络浏览器,我必须按Control- Shift-R刷新页面,并且Control-R没有任何效果(Chrome 和 Opera)。

我的键盘工作正常,我没有启用Caps Lock,而且我没有使用任何自定义程序来修改默认快捷键,而且我从未更改过任何快捷键。这个问题一直可以重现,我已经尝试了数百次,效果相同。

如何将快捷方式改回之前的默认组合 ( Control- R)?


我试过的:

  • 在 Ubuntu Settings中将所有键盘快捷键重置为默认值。

这里有几个细节:

$ bind -p | grep 'search-history'
"\C-s": forward-search-history
# non-incremental-forward-search-history (not bound)
# non-incremental-forward-search-history-again (not bound)
# non-incremental-reverse-search-history (not bound)
# non-incremental-reverse-search-history-again (not bound)
"\C-r": reverse-search-history
Run Code Online (Sandbox Code Playgroud)

我已经检查过,并且没有覆盖我的dotfiles 中的上述绑定:

$ grep -r reverse-search-history ~/.bash*
(nothing)
Run Code Online (Sandbox Code Playgroud)

小智 25

我遇到了这个问题,并意识到我正在运行 SimpleScreenRecorder,它正在捕获 CTRL+R 热键。希望这可以帮助任何谷歌员工!

  • 神圣的sXXt人,所以这不仅仅是*我的*失败;) (7认同)
  • 非常感谢你。我觉得自己像个白痴谷歌搜索“控制 r 搜索停止工作” (3认同)
  • omfg 你是英雄 :) (2认同)