Skip to content

Commit 0319905

Browse files
committed
Update to version 0.4.0
1. added support for cursor tracking, automatic highlighting/expanding the corresponding parent & child entries 2. added support for customise highlight symbol 3. added support for preserving the collapsed/expanded state of TOC entries when navigating between different documents
1 parent 5b51f12 commit 0319905

File tree

4 files changed

+191
-98
lines changed

4 files changed

+191
-98
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,10 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
5757

5858
## [0.3.1] - 2023-12-03
5959

60-
- Added grammar syntax highlighting for the ORCA output file (syntax definition is saved in [`orca.tmLanguage.json`](syntaxes/orca.tmLanguage.json))
60+
- Added grammar syntax highlighting for the ORCA output file (syntax definition is saved in [`orca.tmLanguage.json`](syntaxes/orca.tmLanguage.json))
61+
62+
## [0.4.0] - 2023-12-29
63+
64+
- Added cursor position tracking for the ORCA output file. The TOC view will automatically highlight and expand the corresponding TOC entry when the user is navigating through the ORCA output file based on the current line number. The highlight and expand status of the TOC view will be updated when the user is moving the cursor to a different line in the ORCA output file.
65+
- Added support for changing the highlight symbols for the TOC entries.
66+
- Added support for saving the collapsed status of the TOC view in the settings of the extension. When navigating to different ORCA output files, the TOC view status for each file will be restored.

README.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,37 @@ This an extension for Visual Studio Code that provides a separate toggleable TOC
1111

1212
## Features
1313

14-
This extension provides a separate toggleable TOC view in the sidebar. The TOC view is automatically populated with the contents of the ORCA output file that is currently open in the editor. The TOC view is generated by parsing the ORCA output file using regular expressions and setting up a tree view based on the results. The generated TOC view is a tree view with the titles of the headings in the ORCA output file and the corresponding line numbers. Clicking on a TOC entry will jump to the corresponding line in the ORCA output file.
14+
This extension provides a separate toggleable TOC view in the sidebar. The TOC view can be toggled on and off by clicking on the `ORCA FILE OUTLINE` icon in the sidebar. The TOC view is automatically populated with the contents of the ORCA output file that is currently open in the editor. The TOC view is generated by parsing the ORCA output file using regular expressions and setting up a tree view based on the results.
15+
16+
The generated TOC view is a tree view with the titles of the headings in the ORCA output file and the corresponding line numbers. Clicking on a TOC entry will jump to the corresponding line in the ORCA output file.
17+
18+
By default all the parent entries are collapsed. While navigating through the ORCA output file using the cursor, the TOC view will automatically highlight and expand the corresponding parent entries and highlight the corresponding child entry. Moving the cursor to a different line will automatically update the TOC view by highlighting and expanding the new parent entries and highlighting the new child entry, while collapsing the previous parent entries and removing the highlight from the previous child entry.
19+
20+
The collapsed status of the TOC view could also be changed by clicking the toggle arrow next to each parent entry. The manually changed collapsed status of the TOC view for each ORCA output file will be preserved when navigating between different ORCA output files.
1521

1622
![Outline Example](images/outline_example.png)
1723

1824
![Outline Example Expanded](images/outline_example_expanded.png)
1925

20-
The TOC view can be toggled on and off by clicking on the `ORCA FILE OUTLINE` icon in the sidebar. The TOC view can also be toggled on by running the command `Show ORCA Outline` from the command palette. On Windows, the command palette can be opened with `Ctrl+Shift+P`, on Mac it is `Cmd+Shift+P`. The TOC view is automatically updated when navigating to a different ORCA output file.
21-
22-
This plugin also provides syntax highlighting for the ORCA output file, including the headings, separation lines, numbers, and keywords, etc. The display of the syntax highlighting varies with different themes. Dark themes are recommended for better display of the syntax highlighting. To temporarily disable the syntax highlighting, please use the command `Change Language Mode` from the command palette and select `Plain Text`. To switch back to the syntax highlighting, please use the command `Change Language Mode` from the command palette and select `Auto Detect` or `ORCA-output`.
26+
The TOC view can also be triggered manually by running the command `Show ORCA Outline` from the command palette. On Windows, the command palette can be opened with `Ctrl+Shift+P`, on Mac it is `Cmd+Shift+P`. The TOC view is automatically updated when navigating to a different ORCA output file, or when an ORCA output file is opened.
2327

2428
![Command Palette Example](images/command_palette_example.png)
2529

30+
This plugin also provides syntax highlighting for the ORCA output file, including the headings, separation lines, numbers, and keywords, etc. The display of the syntax highlighting varies with different themes. Dark themes are recommended for better display of the syntax highlighting. To temporarily disable the syntax highlighting, please use the command `Change Language Mode` from the command palette and select `Plain Text`. To switch back to the syntax highlighting, please use the command `Change Language Mode` from the command palette and select `Auto Detect` or `ORCA-output`.
31+
2632
## Requirements
2733

2834
N/A
2935

3036
## Extension Settings
3137

32-
The current version (0.3.1) enables changing the default status of the toggleable TOC view. The default collapsed status of the TOC view can be changed in the settings of the extension. The default value is `true`, which means that the TOC view is collapsed by default. The TOC view can be expanded by clicking on the `ORCA FILE OUTLINE` icon in the sidebar.
38+
The current version (0.4.0) enables changing the default status of the toggleable TOC view. The default collapsed status of the TOC view can be changed in the settings of the extension. The default value is `true`, which means that the TOC view is collapsed by default. The TOC view can be expanded by clicking the toggle arrow next to each parent entry.
3339

3440
![Setting: Collapse TOC view by default](images/setting_collapse_status.png)
3541

42+
The current version (0.4.0) enables changing the highlight symbols for the TOC entries. The default highlight symbol is 'circle-large-filled'.
43+
For a list of available highlight symbols, please see [here](https://code.visualstudio.com/api/references/icons-in-labels#icon-listing).
44+
3645
## Issues and Important Notes
3746

3847
- Due to the memory limit of VS Code for large files, could not process files larger than 50MB automatically. This is because the VS Code restricts the size of the `activeEditor` to 50MB, which prevents the extension from getting the contents of the opened ORCA output file. For more details, check the current open issue on Github [#31078](https://github.com/Microsoft/vscode/issues/31078).
@@ -51,19 +60,22 @@ The current version (0.3.1) enables changing the default status of the toggleabl
5160

5261
For detailed release notes, please see [CHANGELOG.md](CHANGELOG.md).
5362

54-
### 0.3.1
63+
### 0.4.0
5564

56-
- Added grammar syntax highlighting for the ORCA output file (syntax definition is saved in [`orca.tmLanguage.json`](syntaxes/orca.tmLanguage.json))
65+
- Added cursor position tracking for the ORCA output file. The TOC view will automatically highlight and expand the corresponding TOC entry when the user is navigating through the ORCA output file based on the current line number. The highlight and expand status of the TOC view will be updated when the user is moving the cursor to a different line in the ORCA output file.
66+
- Added support for changing the highlight symbols for the TOC entries.
67+
- Added support for saving the collapsed status of the TOC view in the settings of the extension. When navigating to different ORCA output files, the TOC view status for each file will be restored.
5768

5869
## TODO
5970

60-
- [ ] Highlight the corresponding TOC entry when the user is navigating through the ORCA output file based on the current line number.
71+
- [x] Highlight the corresponding TOC entry when the user is navigating through the ORCA output file based on the current line number.
6172
- [ ] Foldings feature for the ORCA output file based on the TOC entries.
62-
- [ ] Add support for the `ORCA FILE OUTLINE` view to automatically scroll to the current line in the ORCA output file.
73+
- [x] Add support for the `ORCA FILE OUTLINE` view to automatically scroll to the current line in the ORCA output file.
6374
- [x] Syntax highliting for the ORCA output file based on the TOC entries.
64-
- [ ] Add settings for enabling/disabling the syntax highlighting for the ORCA output file.
75+
- [x] Add settings for enabling/disabling the syntax highlighting for the ORCA output file.
6576
- [ ] Add command for unfold/fold all TOC entries
66-
- [ ] Add option to choose different highlight symbols for the TOC entries
77+
- [x] Add option to choose different highlight symbols for the TOC entries
78+
- [ ] Update illustration figures in this README
6779

6880
## Roadmap
6981

0 commit comments

Comments
 (0)