gpt4 book ai didi

sublimetext2 - Sublime Text 2 侧边栏上下文 : Vim-like key bindings for sidebar navigation

转载 作者:行者123 更新时间:2023-12-04 11:08:28 25 4
gpt4 key购买 nike

有谁知道 Sublime Text 2 侧边栏的“上下文”,或者知道如何找到上下文?

我在 Vintage 模式下使用 Sublime Text 2,以及几个自定义键绑定(bind)(和 VintageEx)很少需要离开主行。在不指定上下文的情况下重新绑定(bind)“j”、“k”等会在编辑窗口中转移到插入模式,以便移动而不是键入 j 或 k。更具体地说,关于什么应该替换“???”的任何想法在这个映射中:

{ "keys": ["j"], "command": "move", "args": {"by": "lines", "forward": true} , "context": [{"key": "???"}] }

使用“j”代替侧边栏中的向下箭头?

非常感谢!

最佳答案

干得好。只需将其添加到您的 Preferences->Key Bindings-User。

{ "keys": ["h"], "command": "move", "args": {"by": "characters", "forward": false}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["j"], "command": "move", "args": {"by": "lines", "forward": true}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["k"], "command": "move", "args": {"by": "lines", "forward": false}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
},
{ "keys": ["l"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[ {"key": "control", "operand": "sidebar_tree"} ]
}

希望有帮助!

关于sublimetext2 - Sublime Text 2 侧边栏上下文 : Vim-like key bindings for sidebar navigation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17078437/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com