You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,3 +37,10 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
37
37
- removed debug lines from extension.js
38
38
- update of keywords.json
39
39
- update of patterns.json. Now the extension could handle both CRLF and LF line breaks in the regular expressions.
40
+
41
+
## [0.2.3] - 2023-10-17
42
+
43
+
- Bug fixes and optimizations
44
+
- Update of `patterns.json` file
45
+
- Added support for large ORCA output files (>50MB).Added a new command `Show ORCA Outline External` to allow the user to load large ORCA output files manually from the file system.
46
+
- Fixed a bug by adding dummy headings to the `ORCA FILE OUTLINE` view when the heading levels are not in strict ascending order.
Copy file name to clipboardExpand all lines: README.md
+18-9Lines changed: 18 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,44 +4,51 @@ This an extension for Visual Studio Code that provides a separate toggleable TOC
4
4
5
5
## Features
6
6
7
-
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. 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.
7
+
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.
8
+
9
+
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.
8
10
9
11
## Requirements
10
12
11
13
N/A
12
14
13
15
## Extension Settings
14
16
15
-
The current version (0.2.2) of this extension does not have any settings.
17
+
The current version (0.2.3) of this extension does not have any settings.
16
18
17
19
## Issues and Important Notes
18
20
19
-
- Due to the memory limit of VS Code for large files, the extension will not work properly for very large ORCA output files (>50MB) because VS code will disable the `activeEditor`. To parse very large ORCA output files and generate the TOC view, the extension will need to be run in a separate process. This will be implemented in a future release. Currently, the extension will work for ORCA output files that are less than 50MB in size. If you have very large ORCA output files, please consider splitting them into smaller chunks or remove the parts that are not needed (for example full print of the MOs).
21
+
- 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.
22
+
23
+
- If you have very large ORCA output files, please first consider splitting them into smaller chunks or remove the parts that are not needed (for example full print of the MOs).
24
+
25
+
-:warning: For large ORCA output files, The current solution is using the `FileSystemProvider` API to read the contents of the ORCA output file directly from the file system. This will allow the extension to parse ORCA output files that are larger than 50MB. please use the command `Show ORCA Outline External` from the command palette and load the large ORCA output file manually from your file system. The loaded ORCA output file will be displayed in a new tab in the editor of the current VS Code window, with a :lock: symbol at the end of the file name. This is because the file is read-only and cannot be modified. The TOC view will be automatically populated with the contents of this ORCA output file.
26
+
27
+
-:construction: A known issue is that clicking the heading titles in the `ORCA FILE OUTLINE` view for large ORCA output files will not navigate to the corresponding line in the opened tab. Instead a new tab with the same name file name will pop up, showing identical contents and TOC view at the respective line. This bug will be fixed in a future release.
28
+
29
+
-:warning:**(Not Recommended!)** Another solution for large ORCA output files is by patching the `workbench.desktop.main.js` file to increase the limit. The default value of `_MODEL_SYNC_LIMIT` is `50 * 1024 * 1024`, which is 50MB. You could change it to a value that is larger than the size of your ORCA output file. This will cause VS Code to display a warining message that the installation is corrupted. Please use this solution at your own risk.
20
30
21
31
- If you don's see the `ORCA FILE OUTLINE` in the sidebar of `EXPLORER`, please make sure that the `OPEN EDITORS` drop down menu is expanded. This is a known issue and will be fixed in a future release.
22
32
23
33
## Release Notes
24
34
25
35
For detailed release notes, please see [CHANGELOG.md](CHANGELOG.md).
26
36
27
-
### 0.2.2
37
+
### 0.2.3
28
38
29
39
Bug fixes and optimizations.
30
40
31
41
## TODO
32
42
33
43
-[x] Automatically show TOC view when opening an ORCA output file
34
-
-[X] Support for large ORCA output files (<50MB).
35
-
-[ ] Automatically update TOC view when saving changes to an ORCA output file (additional command to manually refresh TOC view)
36
-
-[ ] Add support for enabling/disabling TOC view for specific file types
37
-
-[ ] Add support for controlling the showing level of TOC entries
44
+
-[X] Support for large ORCA output files (>50MB).
38
45
-[ ] Add illustrations to this README
39
46
-[x] Add icon to this extension
40
47
-[x] Updating the list of regular expressions used to parse the ORCA output file
41
48
42
49
## Roadmap
43
50
44
-
The current version represents a very early release of this extension.
51
+
The current version represents an early release of this extension.
45
52
46
53
An important feature that will be added in the next major release is to enable the scrolling of the `ORCA FILE OUTLINE` view to the current line in the ORCA output file. This will be useful when the ORCA output file is very long and the user is navigating through the file. The `ORCA FILE OUTLINE` view will automatically scroll to the current line in the ORCA output file.
47
54
@@ -54,6 +61,8 @@ The list of regular expressions is saved in `patterns.json` file. The file conta
54
61
55
62
Please submit a pull request if you would like to add a new regular expression to the list. Please also submit a pull request if you would like to modify an existing regular expression.
56
63
64
+
A list of keywords that are used to format the headings in the TOC view is saved in `keywords.json` file. The matched strings will be formatted using the corresponding keywords. This list is currently not complete and will be updated in a future release.
0 commit comments