From f812c79567d8edad9d0b1285b66b4825b53d174d Mon Sep 17 00:00:00 2001 From: gerrnperl Date: Sun, 24 Mar 2024 15:58:15 +0800 Subject: [PATCH] [1.4.0] new release --- CHANGELOG.md | 18 +++++++++++++++++- README.md | 49 +++++++++++++++++++++++++++++++++++++++++++------ README_ZH_CN.md | 37 ++++++++++++++++++++++++++----------- package.json | 17 ++++++++++++++++- 4 files changed, 102 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f76816c..bdd8bfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -209,4 +209,20 @@ typo #### Fix - Overlap items when the height of the outline is not enough #50 -- Other minor fixes \ No newline at end of file +- Other minor fixes + +### [1.4.0] - 2024-03-24 + +#### Add + +- Add find References when goto tag #59 @howin98 +- Provide outline sorting feature #54 +- Expand to the symbol under the cursor + +### Fix + +- Now the outline will not scroll automatically when in the `manual` follow mode #53 + +#### Other + +- Collapse pin state switch actions for less buttons in navigation bar \ No newline at end of file diff --git a/README.md b/README.md index e77c9c3..464038f 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ A visual, interactive outline map that combines the clarity of the outline with ![version](https://img.shields.io/visual-studio-marketplace/v/gerrnperl.outline-map?color=8bf7c7&logo=visualstudio&style=flat-square) ![installs](https://img.shields.io/visual-studio-marketplace/i/gerrnperl.outline-map?color=56b6c2&logo=visualstudiocode&style=flat-square) ![rating](https://img.shields.io/visual-studio-marketplace/stars/gerrnperl.outline-map?color=97dbf3&style=flat-square) +![downloads](https://img.shields.io/visual-studio-marketplace/d/gerrnperl.outline-map?color=62abf5&logo=visualstudiocode&style=flat-square) +![stars](https://img.shields.io/github/stars/gerrnperl/outline-map?color=f2c661&logo=github&style=flat-square) +![license](https://img.shields.io/github/license/gerrnperl/outline-map?color=f9e2ae&logo=github&style=flat-square) ## Features @@ -103,6 +106,8 @@ By default, region and tag symbols will be added. You can customize the symbols - `outline-map.follow`: Scroll the outline when the cursor moves or the viewport scrolls +- `outline-map.expand`: Set the automatic expansion mode of the outline view. Select `cursor` to expand only to the node where the cursor is located, and `viewport` to expand all nodes in the viewport. + - `outline-map.hiddenItem`: Choose items you do not want to see in the outline. - `outline-map.defaultMaxDepth`: Set the default maximum depth of the outline tree. Set this to non-zero to enable the depth button `>` & `<`. @@ -124,20 +129,52 @@ By default, region and tag symbols will be added. You can customize the symbols - `outline-map.region.highlight`: Enable region and tag syntax highlighting ## Commands -- `outline-map.toggleSearch`: Switch the visibility of search and navigation field. Default keybinding: `` -- `outline-map.addDepth` | `outline-map.reduceDepth`: Add / Reduce a level to the outline tree. Only works when `outline-map.defaultMaxDepth` is set to non-zero. + + -- `outline-map.pin` | `outline-map.unpin` | `outline-map.freeze` : Pin / Unpin / Freeze the outline tree. +- `outline-map.focusSearch`: Focus the search box, default keybinding `` +- `outline-map.toggleSearch`: Toggle the visibility of the search and navigation area. + +### View Actions + +- Depth limit: Increase / decrease the outline by one level. Available when `outline-map.defaultMaxDepth` is a positive value. + - `Increase depth >` + - `Decrease depth <` + +- Temporarily fix + - `Fixed`: The outline node will not be automatically expanded; + - `Frozen`: The outline node will not be automatically expanded, and the outline view will not automatically scroll; + +- Sort + - `Sort by position`: Sort the outline nodes by position; + - `Sort by name`: Sort the outline nodes by name; + - `Sort by kind`: Sort the outline nodes by kind; --- -## Suggestion: move view to secondary side panel (vscode ^1.64) +Suggestion: move view to secondary side panel (vscode ^1.64) -> Outline Map relies on vscode or other extensions to provide symbol information +> Outline Map does not perform language-specific symbol parsing, symbol information is provided by vscode or other extensions. > > Refer to the following links for more information: [vscode-code-outline/ language-support](https://github.com/patrys/vscode-code-outline#language-support) --- -**Enjoy!** +**Enjoy! ❤️** diff --git a/README_ZH_CN.md b/README_ZH_CN.md index f85cd21..637ebf9 100644 --- a/README_ZH_CN.md +++ b/README_ZH_CN.md @@ -6,9 +6,12 @@ 可视, 可互动的大纲地图, 提供大纲的清晰条理与缩略地图的直观概览. 更好的 VSCode 内置大纲. -![version](https://img.shields.io/visual-studio-marketplace/v/gerrnperl.outline-map?color=8bf7c7&logo=visualstudio&style=flat-square) +![version](https://img.shields.io/visual-studio-marketplace/v/gerrnperl.outline-map?color=8bf7c7&logo=visualstudiocode&style=flat-square) ![installs](https://img.shields.io/visual-studio-marketplace/i/gerrnperl.outline-map?color=56b6c2&logo=visualstudiocode&style=flat-square) ![rating](https://img.shields.io/visual-studio-marketplace/stars/gerrnperl.outline-map?color=97dbf3&style=flat-square) +![downloads](https://img.shields.io/visual-studio-marketplace/d/gerrnperl.outline-map?color=62abf5&logo=visualstudiocode&style=flat-square) +![stars](https://img.shields.io/github/stars/gerrnperl/outline-map?color=f2c661&logo=github&style=flat-square) +![license](https://img.shields.io/github/license/gerrnperl/outline-map?color=f9e2ae&logo=github&style=flat-square) ## 特性 @@ -100,7 +103,9 @@ ### 行为 -- `outline-map.follow`: 设置大纲视图自动跟随光标|视口 +- `outline-map.follow`: 设置大纲视图自动跟随光标|视口滚动 + +- `outline-map.expand`: 设置大纲视图自动展开模式,选择`cursor`时只展开到光标所在的节点,选择`viewport`时展开视口内的所有节点 - `outline-map.hiddenItem`: 选择隐藏大纲视图中的项目 @@ -125,21 +130,31 @@ ## 命令 -- `outline-map.toggleSearch`: 切换搜索及导航区域可见性. 默认键位 `` +- `outline-map.focusSearch`: 聚焦搜索框, 默认键位 `` +- `outline-map.toggleSearch`: 切换搜索及导航区域可见性. + +### 视图操作 + +- 深度限制: 增加 / 减少大纲的一级. `outline-map.defaultMaxDepth` 为正值时可用. + - `增加深度 >` + - `减少深度 <` + +- 临时固定 + - `固定`: 大纲节点将不会自动展开; + - `冻结`: 大纲节点将不会自动展开, 同时大纲视图不会自动滚动; -- `outline-map.addDepth` | `outline-map.reduceDepth`: 增加 / 减少大纲的一级. `outline-map.defaultMaxDepth` 为正值时可用. -- `outline-map.pin` | `outline-map.unpin`: 固定 / 取消固定 / 冻结大纲视图. - - `unpin`: 取消固定大纲视图; - - `pin`: 大纲节点将不会自动展开; - - `freeze`: 大纲节点将不会自动展开, 同时大纲视图不会自动滚动; +- 排序 + - `按位置排序`: 按位置排序大纲节点; + - `按名称排序`: 按名称排序大纲节点; + - `按类型排序`: 按类型排序大纲节点; --- -## 建议: 将视图移至辅助侧栏 (vscode ^1.64) +建议: 将视图移至辅助侧栏 (vscode ^1.64) -> Outline Map 依赖于 vscode 或 其他扩展提供符号信息 +> Outline Map 不会进行语言相关的符号解析, 符号信息由 vscode 或其他扩展提供. > > 参考: [vscode-code-outline/language-support](https://github.com/patrys/vscode-code-outline#language-support) --- -**Enjoy!** +**Enjoy! ❤️** diff --git a/package.json b/package.json index d60599a..fd07c78 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "outline-map", "displayName": "Outline Map", "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.", - "version": "1.3.2", + "version": "1.4.0", "repository": { "url": "https://github.com/Gerrnperl/outline-map.git" }, @@ -48,6 +48,21 @@ "href": "https://img.shields.io/", "url": "https://img.shields.io/visual-studio-marketplace/stars/gerrnperl.outline-map?color=97dbf3&style=flat-square", "description": "rating" + }, + { + "href": "https://img.shields.io/", + "url": "https://img.shields.io/visual-studio-marketplace/d/gerrnperl.outline-map?color=62abf5&logo=visualstudiocode&style=flat-square", + "description": "downloads" + }, + { + "href": "https://img.shields.io/", + "url": "https://img.shields.io/github/stars/gerrnperl/outline-map?color=f2c661&logo=github&style=flat-square", + "description": "stars" + }, + { + "href": "https://img.shields.io/", + "url": "https://img.shields.io/github/license/gerrnperl/outline-map?color=f9e2ae&logo=github&style=flat-square", + "description": "license" } ], "contributes": {