This extension offers syntax highlighting, code snippets, option auto-completion and more for .dat input files used by the Forte [1] plugin of the Psi4 [2] quantum chemistry package.
-
Snippets: A selection of snippets are included and can be accessed by typing
_. -
Language Support: Syntax highlighting, option auto-completion and hover-over description display (both currently available only for Forte), and document reformatting.
-
forte-lang Settings: Configures custom values for forte-lang parameters. To access these settings, right-click in the editor or open the command palette (
Shift + Cmd/Ctrl + P) and selectforte-lang: settings. The currently customizable parameters include:-
Specifying the path to the Forte
options.yamlfile. -
Setting the number of spaces between an option and its value in
set { ... }andset forte { ... }blocks. -
Defining the indentation size for options in
set { ... }andset forte { ... }blocks.
-
-
Molecule Viewer: This feature allows users to highlight any molecule in Cartesian format and plot it (
Cmd/Ctrl + M) in a webview. Right-clicking inside the webview panel opens a helpful menu with a list of options. Measurements can be made for bond lengths, bond angles, and atomic positions. Double-clicking on the units label (lower-left corner) changes the internal plotting logic (i.e., bond cutoff, atom radii, bond radii, etc.) to better visualize molecules provided in different units (Bohr or Angstrom). Note: This does not change the units of the molecule itself.
- Orbital Plotter: This feature allows users to plot orbitals (
Cmd/Ctrl + O) from.cubefiles by selecting the directory containing the files (individual file selection is currently not supported). Orbitals are plotted as voxels (isosurface plotting is coming soon). The orbital plotting interface consists of two independent columns; selecting an orbital toggles it between the two columns.
-
Psi4 Run Button: This feature executes a bash script (from the user’s
$HOME/Bin/folder) in the current.datfile's working directory. To set up this feature, include a bash script namedfl_psi4_run_bash.shin your$HOME/Bin/folder with the commands you want to use to execute Psi4 when the button is pressed.- Example
fl_psi4_run_bash.shfile:
#!/bin/sh source activate my_conda_env psi4 - Example
-
New Feature: Settings for forte-lang (
RMBorShift + Cmd/Ctrl + P>forte-lang: settings) -
Updated: Orbital plot ordering now uses numeric collation to account for numbers in
.cubefile names -
Fixed: Orbital plotter now correctly handles
.cubefiles with trailing empty lines (previously causing the total density to be plotted)
-
New Feature: Molecule viewer (
Cmd/Ctrl + M) -
New Feature: Orbital plotter (
Cmd/Ctrl + O) -
New Feature: Navigation menu button that executes the bash scrip
$HOME/Bin/fl_psi4_run_bash.sh -
Updated: Forte options now only auto-complete within the
set forte { ... }block -
Updated: Forte option suggestions now appear only when the option line is empty
-
Updated: Hover-over Forte option suggestions now trigger only within the
set forte { ... }block -
Updated: Reduced spacing between options and values when auto-reformatting the document
-
Fixed: Comments no longer get auto-formatted
-
Fixed: Highlighting for missing irreps
- Added auto-completion and hover-over for Forte options
- Added reformatting for
set { ... }andset forte { ... }option blocks - Improvements to snippets and highlighting
Initial release of forte-lang
[1] F. A. Evangelista, C. Li, P. Verma, K. P. Hannon, J. B. Schriber, T. Zhang, C. Cai, S. Wang, N. He, N. H. Stair, M. Huang, R. Huang, J. P. Misiewicz, S. Li, K. Marin, Z. Zhao, and L. A. Burns, J. Chem. Phys. 161, 062502475 (2024) [docs]
[2] D. G. Smith, L. A. Burns, A. C. Simmonett, R. M. Parrish, M. C. Schieber, R. Galvelis, P. Kraus, H. Kruse, R. Di Remigio, A. Alenaizan, A. M. James, S. Lehtola, J. P. Misiewicz, M. Scheurer, R. A. Shaw, J. B. Schriber, Y. Xie, Z. L. Glick, D. A. Sirianni, J. S. O’Brien, J. M. Waldrop, A. Kumar, E. G. Hohenstein, B. P. Pritchard, B. R. Brooks, H. F. Schaefer, A. Y. Sokolov, K. Patkowski, A. E. Deprince, U. Bozkaya, R. A. King, F. A. Evangelista, J. M. Turney, T. D. Crawford, and C. D. Sherrill, J. Chem. Phys. 152, 184108 (2020) [docs]