gpt4 book ai didi

xpath - Sublime Text - XPath 插件快捷方式

转载 作者:行者123 更新时间:2023-12-03 16:15:19 28 4
gpt4 key购买 nike

我已经安装了Sublime Text - XPath Plugin ,但我在 Sublime 中找不到启动 XPath 搜索的快捷方式或按钮。特别是“输入 xpath”行。

最佳答案

打开命令面板 ( Ctrl+Shift+P ),然后选择 XPath: Query document .这将打开“输入 xpath”输入面板。

XPath 插件默认没有设置键绑定(bind)。 Example.sublime-keymap文件显示了您可能想要设置的示例。

Example.sublime-keymap 中的底部示例标记为“显示 XPath 查询输入框”的文件是显示“输入 xpath”输入面板的键绑定(bind),它使用的键是 Ctrl+Shift+Alt+Super+q很难按,以至于作者显然打算让用户更改它们。查看示例键绑定(bind)的作用并将您想要的那些复制“n”粘贴到您的用户 key 文件中,将他们使用的 key 更改为您喜欢的 key 。

例如,您可能希望将下面的绑定(bind)添加到您的用户 key 以显示带有 Ctrl+Shift+X 的“输入 xpath”提示。键:

注意:请注意以下示例中的有用行:"prefill_query": "//text()", // an XPath query to put into the input box by default - can omit and use "prefill_path_at_cursor": true instead to use the path of the node under the first cursor .您可能想要添加 2 个不同的键绑定(bind)来显示“输入 xpath”提示;一个使用"prefill_query": "//text(),"另一个使用 "prefill_path_at_cursor": true, .

// Show the XPath query input box
{
"keys": ["ctrl+shift+x"],
"command": "query_xpath",
"args": {
"prefill_query": "//text()", // an XPath query to put into the input box by default - can omit and use "prefill_path_at_cursor": true instead to use the path of the node under the first cursor
"live_mode": true, // as per settings
"normalize_whitespace_in_preview": false, // as per settings
"intelligent_auto_complete": true, // as per settings
"goto_element": "names", // same options available as for goto_relative
"goto_attribute": "value", // options are name, value, entire
"max_results_to_show": 1000 // as per settings
}
},

关于xpath - Sublime Text - XPath 插件快捷方式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45586508/

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