Skip to content

Commit e664066

Browse files
authored
Merge pull request #14 from mongodb/snooty-tweaks-1
snooty: add feature teaser and Optional Configuration section
2 parents 6407e1b + 4f89d9d commit e664066

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

source/snooty.txt

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ a fluid and integrated writing experience.
2626
Snooty is currently in an early testing stage. Expect bugs and gaps
2727
in functionality.
2828

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+
2938
Installation
3039
------------
3140

@@ -77,7 +86,7 @@ is loaded into Visual Studio Code with a ``snooty.toml`` file in the root.
7786
its root, so VSCode will launch Snooty.
7887

7988
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*
8190
underlines indicate an error.
8291

8392
Prepare an Existing Giza Project to Use Snooty
@@ -101,8 +110,9 @@ You can use the following example to start your project:
101110
package-name-org = "mongodb-org"
102111
pgp-version = "{+version+}"
103112

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.
106116

107117
Currently, Snooty accepts the following fields in ``snooty.toml``:
108118

@@ -148,6 +158,24 @@ Snooty offers the following commands:
148158
you change your ``snooty.toml`` configuration file. Eventually, this
149159
will be automatic.
150160

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+
151179
Bugs
152180
----
153181

@@ -157,14 +185,11 @@ deficiencies:
157185
* Diagnostics have wildly wrong line numbers in YAML content.
158186
* The Snooty project is not automatically reloaded after changes to the
159187
configuration file.
160-
* Snooty will not show diagnostics for files which have not been opened
161-
in the current project.
162188
* Snooty should be able to automatically create a ``snooty.toml`` given
163189
an existing Giza project. This is currently manual.
164-
* If the snooty download fails, the extension may be left in an inconsistent
165-
state.
166190
* Non-macOS systems are not yet officially supported.
167191
* 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 .
169194
* Only a single Snooty project at a time may be opened. Opening more than one
170195
project is currently undefined behavior.

0 commit comments

Comments
 (0)