Shift-Insert 粘贴到 Mac OS X 中?

ans*_*ble 20 keyboard-shortcuts paste macos

任何线索如何使用 Windows 键盘让 Shift-Insert 粘贴到 OS X 中?

我在左侧使用鼠标,所以 command-v 使我来回切换很多。我的任何搜索都没有运气。

小智 11

虽然我有 Mac,但我大部分时间都花在 Linux 虚拟机上。

我真的需要 Shift-Insert 来访问选择剪贴板。

所以我在我的 linux 机器 F9 上重新映射,我很少用它来表现像插入。

xmodmap -e "keycode 75 = Insert Insert Insert"
Run Code Online (Sandbox Code Playgroud)

把它放在一个正在加载窗口管理器启动的文件中

所以现在我可以使用 Shift-F9 来插入。


小智 9

作为一名 Linux 人员,我主要在终端中使用 Shift-Ins 方法,其中 Ctrl-V 并不总是有效。iTerm2允许您重新映射键。

Preferences -> Keys -> Key Mappings -> +

然后从操作列表中选择粘贴,然后单击键盘快捷键并按 Shift-Ins。它将显示为 Shift-Help。


ans*_*ble 6

我终于能够使用 Karabiner-Elements 让它工作 - https://pqrs.org/osx/karabiner/index.html

我创建了一个“复杂修改”,通过将此修饰符添加到其中一个 json 文件来实现此目的:

    {
  "description": "PC-Style Shift-Insert Paste",
  "manipulators": [
    {
      "type": "basic",
      "from": {
        "key_code": "insert",
        "modifiers": {
          "mandatory": [
            "shift"
          ],
          "optional": [
            "any"
          ]
        }
      },
      "to": [
        {
          "key_code": "v",
          "modifiers": [
            "left_command"
          ]
        }
      ],
      "conditions": [
        {
          "type": "frontmost_application_unless",
          "bundle_identifiers": [
            "^com\\.microsoft\\.rdc$",
            "^com\\.microsoft\\.rdc\\.mac$",
            "^com\\.microsoft\\.rdc\\.macos$",
            "^com\\.microsoft\\.rdc\\.osx\\.beta$",
            "^net\\.sf\\.cord$",
            "^com\\.thinomenon\\.RemoteDesktopConnection$",
            "^com\\.itap-mobile\\.qmote$",
            "^com\\.nulana\\.remotixmac$",
            "^com\\.p5sys\\.jump\\.mac\\.viewer$",
            "^com\\.p5sys\\.jump\\.mac\\.viewer\\.web$",
            "^com\\.teamviewer\\.TeamViewer$",
            "^com\\.vmware\\.horizon$",
            "^com\\.2X\\.Client\\.Mac$",
            "^com\\.vmware\\.fusion$",
            "^com\\.vmware\\.horizon$",
            "^com\\.vmware\\.view$",
            "^com\\.parallels\\.desktop$",
            "^com\\.parallels\\.vm$",
            "^com\\.parallels\\.desktop\\.console$",
            "^org\\.virtualbox\\.app\\.VirtualBoxVM$",
            "^com\\.vmware\\.proxyApp\\.",
            "^com\\.parallels\\.winapp\\.",
            "^com\\.apple\\.Terminal$",
            "^com\\.googlecode\\.iterm2$",
            "^co\\.zeit\\.hyperterm$",
            "^co\\.zeit\\.hyper$",
            "^io\\.alacritty$",
            "^net\\.kovidgoyal\\.kitty$"
          ]
        }
      ]
    }
  ]
},
Run Code Online (Sandbox Code Playgroud)

  • 此处解释了如何以及在何处包含此 JSON https://github.com/tekezo/Karabiner-Elements/issues/1225 (3认同)