@@ -26,6 +26,15 @@ a fluid and integrated writing experience.
26
26
Snooty is currently in an early testing stage. Expect bugs and gaps
27
27
in functionality.
28
28
29
+ Some features:
30
+
31
+ * Realtime diagnostics.
32
+ * When hovering over a ``include``, ``literalinclude``, or ``figure`` directive path,
33
+ a tooltip will appear showing the path to the requested file, which you may click to
34
+ open.
35
+
36
+ Note that this will NOT currently work for files generated by Giza (e.g. steps and extracts).
37
+
29
38
Installation
30
39
------------
31
40
@@ -77,7 +86,7 @@ is loaded into Visual Studio Code with a ``snooty.toml`` file in the root.
77
86
its root, so VSCode will launch Snooty.
78
87
79
88
Once Snooty is launched, Snooty will highlight problematic source lines
80
- as you type. By default, *green * underlines indicate a warning, and *red*
89
+ as you type. By default, *yellow * underlines indicate a warning, and *red*
81
90
underlines indicate an error.
82
91
83
92
Prepare an Existing Giza Project to Use Snooty
@@ -101,8 +110,9 @@ You can use the following example to start your project:
101
110
package-name-org = "mongodb-org"
102
111
pgp-version = "{+version+}"
103
112
104
- Once this file is created, run ``code .`` in the project directory
105
- to start Visual Studio Code.
113
+ Once this file is created, run Visual Studio Code and open the in the project directory.
114
+ If you are using the terminal, the ``code <path>`` command will open Visual Studio Code
115
+ in the given path.
106
116
107
117
Currently, Snooty accepts the following fields in ``snooty.toml``:
108
118
@@ -148,6 +158,24 @@ Snooty offers the following commands:
148
158
you change your ``snooty.toml`` configuration file. Eventually, this
149
159
will be automatic.
150
160
161
+ Optional Configuration
162
+ ----------------------
163
+
164
+ Preview Mode
165
+ Visual Studio Code has a behavior which some users find undesirable: by default
166
+ after opening a file, it is placed in *preview* mode until either you change the
167
+ file or you double-click on the tab header.
168
+
169
+ When in *preview mode*, any additional files that you open will be opened in the
170
+ current tab rather than opening a new tab.
171
+
172
+ You can disable this behavior with the following steps:
173
+
174
+ * Open the command palette (Command-Shift-P),
175
+ * Choose ``Open User Settings``,
176
+ * Search for ``preview``, and
177
+ * Uncheck :guilabel:`Workbench > Editor: Enable Preview`
178
+
151
179
Bugs
152
180
----
153
181
@@ -157,14 +185,11 @@ deficiencies:
157
185
* Diagnostics have wildly wrong line numbers in YAML content.
158
186
* The Snooty project is not automatically reloaded after changes to the
159
187
configuration file.
160
- * Snooty will not show diagnostics for files which have not been opened
161
- in the current project.
162
188
* Snooty should be able to automatically create a ``snooty.toml`` given
163
189
an existing Giza project. This is currently manual.
164
- * If the snooty download fails, the extension may be left in an inconsistent
165
- state.
166
190
* Non-macOS systems are not yet officially supported.
167
191
* Some valid content may show diagnostics.
168
- * Steps and Extracts are the only supported YAML files.
192
+ * Steps, Extracts, and Release are the only supported YAML files.
193
+ * Hovering to open Steps, Extracts, and Release files will not work correctly .
169
194
* Only a single Snooty project at a time may be opened. Opening more than one
170
195
project is currently undefined behavior.
0 commit comments