Skip to content

Commit bcf36ea

Browse files
committed
[1.2.0] new release
1 parent c872bd6 commit bcf36ea

File tree

6 files changed

+153
-30
lines changed

6 files changed

+153
-30
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,13 @@ typo
149149

150150
#### Other
151151

152-
- A better search field
152+
- A better search field
153+
154+
### [1.2.0] - 2023-10-13
155+
156+
#### Add
157+
158+
- Region and tag support #43
159+
- Region and tag symbols
160+
- Syntax highlight
161+
- Region folding

README.md

Lines changed: 72 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,95 @@ A visual, interactive outline map that combines the clarity of the outline with
1313

1414
## Features
1515

16-
- ### Automatically scroll, expand and collapse the outline tree
16+
### Follow
17+
18+
Automatically scroll, expand and collapse the outline tree when the cursor moves or the viewport scrolls.
19+
1720
![follow](screenshots/follow.gif)
18-
- ### Navigate through the outline
21+
22+
### Navigation
23+
24+
You can navigate to the symbol by clicking on the outline node like the built-in outline.
25+
26+
Keyboard navigation is also supported.
27+
1928
![navigation](screenshots/nav.gif)
20-
- ### Flag diagnostics
29+
30+
### Diagnostics
31+
32+
Show diagnostics of the current file.
33+
2134
![Flag diagnostics](screenshots/diagnostics.gif)
22-
- ### Search the outline (`<Alt-l>`)
23-
append `@` to filter by symbol kind
24-
- `/<exp>`: Normal
25-
- `=<exp>`: RegExp
26-
- `?<exp>`: Fuzzy
35+
36+
### Search
37+
38+
default keybinding: `<Alt-l>`
39+
40+
Search for symbols in the current file. You can use the following syntax to achieve different search effects:
41+
42+
- `/<exp>`: Normal search
43+
- `=<exp>`: Regex
44+
- `?<exp>`: Fuzzy search
45+
46+
You can append `@` to filter by symbol kind before the search expression.
2747

2848
![Search](screenshots/search.gif)
2949

50+
### Region and tag
51+
52+
Supports region and tag syntax
53+
54+
You can define regions to group code symbols anywhere in the code (usually comments), or tags to mark locations.
55+
56+
#### Grammar
57+
58+
```md
59+
#region <name> <comment>
60+
#tag <name> <comment>
61+
#endregion <name>
62+
```
63+
64+
#### Features
65+
- Allows customizing identifiers for regions and labels.
66+
- Tag syntax highlighting (semantic highlighting needs to be enabled)
67+
- Region folding
68+
69+
![region and tag](screenshots/region.png)
70+
3071
---
3172

3273
## Configuration
3374
Changes will take effect after restarting the outline view
34-
- `outline-map.color`: color table for specific symbols
75+
76+
### Customization
77+
78+
- `outline-map.color`: Color table for specific symbols
79+
80+
- `outline-map.customFont`: Custom font for the outline.
81+
82+
Syntax: `[ <family-name> | <generic-family> ]#`
83+
84+
- `outline-map.customCSS`: Custom css for the outline. The css will be injected into the outline's webview.
85+
86+
### Behavior
3587

3688
- `outline-map.follow`: Scroll the outline when the cursor moves or the viewport scrolls
3789

3890
- `outline-map.hiddenItem`: Choose items you do not want to see in the outline.
3991

4092
- `outline-map.defaultMaxDepth`: Set the default maximum depth of the outline tree. Set this to non-zero to enable the depth button `>` & `<`.
4193

42-
- `outline-map.customFont`: Custom font for the outline. Syntax: `[ <family-name> | <generic-family> ]#`
94+
### Region and tag
95+
96+
- `outline-map.region.enabled`: Enable region and tag support
4397

44-
- `outline-map.customCSS`: Custom css for the outline. The css will be injected into the outline's webview.
98+
- `outline-map.region.startRegion`: The start of a region.
99+
100+
- `outline-map.region.endRegion`: The end of a region.
101+
102+
- `outline-map.region.tag`: The start of a tag.
103+
104+
- `outline-map.region.highlight`: Enable region and tag syntax highlighting
45105

46106
## Commands
47107
- `outline-map.toggleSearch`: Switch the visibility of search and navigation field. Default keybinding: `<Alt-l>`
@@ -53,9 +113,8 @@ Changes will take effect after restarting the outline view
53113
---
54114

55115
## Suggestion: move view to secondary side panel (vscode ^1.64)
56-
![Initialize settings](images/init.gif)
57116

58-
> Outline Map relies on (vscode || other extensions) to provide symbol information
117+
> Outline Map relies on vscode or other extensions to provide symbol information
59118
>
60119
> Refer to the following links for more information: [vscode-code-outline/ language-support](https://github.com/patrys/vscode-code-outline#language-support)
61120

README_ZH_CN.md

Lines changed: 70 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,94 @@
1212

1313
## 特性
1414

15-
- ### 自动滚动, 展开与折叠大纲
15+
### 跟随
16+
17+
根据代码视图或光标位置自动滚动, 展开与折叠大纲。
18+
1619
![follow](screenshots/follow.gif)
17-
- ### 快速导航
20+
21+
### 导航
22+
23+
点击大纲节点可跳转至对应位置, 也支持键盘导航。
24+
1825
![navigation](screenshots/nav.gif)
19-
- ### 标记Error与Warning
26+
27+
### 诊断
28+
29+
显示当前文件的错误与警告。
30+
2031
![Flag diagnostics](screenshots/diagnostics.gif)
21-
- ### 搜索 (`<Alt-l>`)
22-
在搜索框中输入 `@` 以按符号类型过滤
23-
- `/<exp>`: 正常搜索
24-
- `=<exp>`: 正则表达式
25-
- `?<exp>`: 模糊搜索
32+
33+
### 搜索
34+
35+
默认键位: `<Alt-l>`
36+
37+
在当前文件中搜索符号. 可以使用以下语法实现不同的搜索效果:
38+
39+
- `/<exp>`: 正常搜索
40+
- `=<exp>`: 正则表达式
41+
- `?<exp>`: 模糊搜索
42+
43+
在搜索前输入 `@` 以按符号类型过滤
2644

2745
![Search](screenshots/search.gif)
2846

29-
---
47+
### 区域与标签
48+
49+
支持区域与标签语法
50+
51+
可以在代码中的任何位置定义区域以分组代码符号(通常是注释), 或者定义标签以标记位置.
52+
53+
#### 语法
54+
55+
```md
56+
#region <name> <comment>
57+
#tag <name> <comment>
58+
#endregion <name>
59+
```
60+
61+
#### 功能
62+
63+
- 可折叠或展开区域
64+
- 标签和区域语法高亮
65+
- 自定义区域与标签的标识符
66+
67+
![region and tag](screenshots/region.png)
3068

3169
## 设置
70+
3271
更改将在重启大纲视图后生效
3372

73+
### 样式
74+
3475
- `outline-map.color`: 为特定符号设置颜色
3576

77+
- `outline-map.customFont`: 设置自定义字体.
78+
79+
语法: `[ <family-name> | <generic-family> ]#`
80+
81+
- `outline-map.customCSS`: 设置自定义CSS. 这些CSS会被插入大纲的Webview视图
82+
83+
### 行为
84+
3685
- `outline-map.follow`: 设置大纲视图自动跟随光标|视口
3786

3887
- `outline-map.hiddenItem`: 选择隐藏大纲视图中的项目
3988

4089
- `outline-map.defaultMaxDepth`: 设置默认最大深度. 将其设置为正值以启用命令按钮 `>` & `<`.
41-
42-
- `outline-map.customFont`: 设置自定义字体. 语法: `[ <family-name> | <generic-family> ]#`
4390

44-
- `outline-map.customCSS`: 设置自定义CSS. 这些CSS会被插入大纲的Webview视图
91+
### 区域与标签
92+
93+
- `outline-map.region.enabled`: 启用区域与标签功能
94+
95+
- `outline-map.region.startRegion`: 区域的开始标识符
96+
97+
- `outline-map.region.endRegion`: 区域的结束标识符
98+
99+
- `outline-map.region.tag`: 标签的标识符
100+
101+
- `outline-map.region.highlight`: 启用区域与标签的语法高亮
102+
45103

46104
## 命令
47105

@@ -56,9 +114,6 @@
56114
---
57115

58116
## 建议: 将视图移至辅助侧栏 (vscode ^1.64)
59-
![Initialize settings](images/init.gif)
60-
61-
---
62117

63118
> Outline Map 依赖于 vscode 或 其他扩展提供符号信息
64119
>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "outline-map",
33
"displayName": "Outline Map",
44
"description": "A visual, interactive outline map that combinesAlternative Minimap. the clarity of the outline with the intuitive overview of the minimap. Enhanced version of vscode built-in outline.",
5-
"version": "1.1.0",
5+
"version": "1.2.0",
66
"repository": {
77
"url": "https://github.com/Gerrnperl/outline-map.git"
88
},

screenshots/region.png

97.8 KB
Loading

screenshots/search.gif

-232 KB
Loading

0 commit comments

Comments
 (0)