## 功能
alt + e
, 列出当前文件所有的html
通过正则匹配的group(1), 获取html
要注意的是,line会先 trim
再匹配正则,比如 one/one.rst
应该用 (.+\\.rst)
而不是\\s+(.+\\.rst)
{
"name": ".yaml",
"start_text_list": [
"^- include_tasks: (.+)"
]
}
{
"name": ".yaml",
"start_text_list": [
"^ansible_cmd = f\"ansible-playbook \\{proj_dir\\}/(\\S+).+\""
"^ansible_cmd = f'ansible-playbook \\{proj_dir\\}/(\\S+).+'"
]
}
{
"name": ".html",
"start_text_list": [
"\\{%\\s*extends\\s*'(.+)'\\s*%\\}",
"\\{%\\s*extends\\s*\"(.+)\"\\s*%\\}",
]
}
{
"name": ".html",
"start_text_list": [
"\\{\\{reverse_url\\(\"(.+)\"\\)\\}\\}",
"\\{\\{reverse_url\\('(.+)'\\)\\}\\}",
]
}
{
"name": ".py",
"start_text_list": [
"reverse_url\\(\"(.*)\"\\)",
"reverse_url\\('(.*)'\\)",
]
}
{
"name": ".md",
"start_text_list": [
"\\[(\\d+)\\..+\\]",
]
},
{
"name": ".rst",
"start_text_list": [
"^.. literalinclude::\\s+/(.+)",
]
}
{
"name": ".rst",
"start_text_list": [
"(.+\\.rst)"
]
}
而不是 \\s+(.+\\.rst)
因为line在正则匹配之前会strim
掉