V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
ainpy
V2EX  ›  问与答

关于组合快捷键, 想通过 Alt + j k l i 控制光标 左下右上 移动, 有什么好的方案?

  •  
  •   ainpy · 2018-12-07 17:39:28 +08:00 · 1959 次点击
    这是一个创建于 1967 天前的主题,其中的信息可能已经有所发展或是发生改变。

    用的 ide 是 phpstorm

    vim 的移动光标是 h j k l

    但是经常打游戏,习惯了 wasd jkli 这种操作方式

    想通过 Alt+jkli 操作 上 下 左 右

    ide 内是否能实现? 不能话还有什么方案? 可编程键盘能否实现?推荐一款

    不怕大家笑话, 我现在 台式机 开发,用的普通的办公键盘,写大量代码的时候,把鼠标放到码字区的下边,这样的话用到鼠标的时候右手往下移一下就可以够到鼠标了,类似笔记本的触控。

    6 条回复    2018-12-07 20:14:22 +08:00
    CrownLeo
        1
    CrownLeo  
       2018-12-07 17:44:04 +08:00 via Android
    window 上用 autohotkey
    mac 用那个叫 keyelement 什么的,具体的名字不记得了
    NonClockworkChen
        2
    NonClockworkChen  
       2018-12-07 17:50:55 +08:00
    autohotkey 贼好用,我最近正在把 mac 和 windows 的快键键统一起来- -
    DaPanda
        3
    DaPanda  
       2018-12-07 18:10:07 +08:00
    试试 capslock+
    noe132
        4
    noe132  
       2018-12-07 19:04:22 +08:00
    autohotkey

    ; ---------- arrow keys ----------
    ; alt
    <!i::Send, {Up}
    <!k::Send, {Down}
    <!j::Send, {Left}
    <!l::Send, {Right}

    ; alt-ctrl
    ^<!i::Send, ^{Up}
    ^<!k::Send, ^{Down}
    ^<!j::Send, ^{Left}
    ^<!l::Send, ^{Right}

    ; alt-shift
    +<!i::Send, +{Up}
    +<!k::Send, +{Down}
    +<!j::Send, +{Left}
    +<!l::Send, +{Right}

    ; alt-ctrl-shift
    +^<!i::Send, +^{Up}
    +^<!k::Send, +^{Down}
    +^<!j::Send, +^{Left}
    +^<!l::Send, +^{Right}
    xujinkai
        5
    xujinkai  
       2018-12-07 20:06:55 +08:00   ❤️ 1
    又到了给自己写的软件打广告的时间

    https://onequick.org/
    Goooogle
        6
    Goooogle  
       2018-12-07 20:14:22 +08:00
    macOS karabiner-element
    ` + HJKL 输出方向键

    {
    "description": "(Arrow) Grave + HJKL to arrow keys",
    "manipulators": [
    {
    "from": {
    "key_code": "grave_accent_and_tilde"
    },
    "to": [
    {
    "set_variable": {
    "name": "grave_pressed",
    "value": 1
    }
    }
    ],
    "to_after_key_up": [
    {
    "set_variable": {
    "name": "grave_pressed",
    "value": 0
    }
    }
    ],
    "to_if_alone": [
    {
    "key_code": "grave_accent_and_tilde"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "grave_pressed",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "h"
    },
    "to": [
    {
    "key_code": "left_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "grave_pressed",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "j"
    },
    "to": [
    {
    "key_code": "down_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "grave_pressed",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "k"
    },
    "to": [
    {
    "key_code": "up_arrow"
    }
    ],
    "type": "basic"
    },
    {
    "conditions": [
    {
    "name": "grave_pressed",
    "type": "variable_if",
    "value": 1
    }
    ],
    "from": {
    "key_code": "l"
    },
    "to": [
    {
    "key_code": "right_arrow"
    }
    ],
    "type": "basic"
    }
    ]
    }
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4466 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 10:04 · PVG 18:04 · LAX 03:04 · JFK 06:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.