【问题标题】:Is there a way to copy text in git bash (on Windows) using just the keyboard?有没有办法仅使用键盘在 git bash(在 Windows 上)中复制文本?
【发布时间】:2020-02-14 02:14:59
【问题描述】:

我也想复制文本 -

  • 上一个命令的输出,或者
  • bash 窗口中存在的任何文本,

只需导航光标并仅使用键盘选择文本即可。我根本不想使用鼠标。

  1. 有没有办法做到这一点?
  2. 如果不可能,有没有什么方法可以在最少使用鼠标的情况下做到这一点?

示例用例 - 复制分支名称或提交 ID(来自之前的 git loggit branch),然后将其粘贴到 git 命令中以切换到它。

【问题讨论】:

  • 在 git-bash 窗口栏上,右键单击,选项,鼠标,检查 copy on select 并选择 Paste 鼠标右键。选择复制右键粘贴,我觉得挺方便的。
  • 我认为这不可能,因为您坚持使用命令行提示符。

标签: bash git text editor git-bash


【解决方案1】:

您可以通过

查看快捷方式

带键:> options > keys > shortcuts

用鼠标> options > mouse > mouse functions

【讨论】:

    猜你喜欢
    • 2011-09-18
    • 1970-01-01
    • 2021-08-27
    • 2012-04-05
    • 2021-08-25
    • 2012-12-31
    • 2015-05-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多