Commits
Spell checker
4 min read
Versora uses the Windows spell checker (the one in WebView2, the component that draws the app's window) in the commit message. Misspelled words are underlined, and right-clicking the word shows the suggestions in a menu of the app's own.
The spell checker works in:
- Commit summary;
- Description (optional);
- the expanded description editor (Commit description);
- the Text (the first line is the summary) field of the template editor, in Preferences › Commit message.
In the app's other fields, right-clicking shows the usual Windows menu.
- In the commit box itself: the underlined words and right-clicking on them.
- To turn it on or off: Preferences › Commit message › Spell checker › Spell checker in the commit message.
- Palette (Ctrl+P): "Commit message preferences".
- Write the message. A word the dictionary doesn't know is underlined.
- Right-click the word (or put the cursor on it and use Shift+F10 or the Menu key).
- The menu shows the suggestions at the top. Click one: it replaces the word in the field.
- Below the suggestions are Undo, Redo, Cut, Copy, Paste and Select all (the ones that make sense at the moment) and, last, Spell checker language…, which opens Preferences › Commit message.
- If you replaced the wrong one, Ctrl+Z in the field undoes the replacement.
| Option | What it does | Default |
|---|---|---|
| Spell checker in the commit message › On | Turns the underlining and the suggestions on or off in the summary, the description and the expanded editor. Takes effect right away | On |
| Dictionary language | The language of the words and the suggestions (see the next section) | Windows' language |
Nothing. The spell checker only looks at the text in the box; the commit is the usual one.
Replacing a word goes into the field's own undo: Ctrl+Z with the focus in the field brings back the previous word.
- "No suggestions": the dictionary has nothing to suggest for the word. The suggestions are also empty if the Windows spell checker takes too long to respond.
- There's no "Add to dictionary" in the menu: that would write to the Windows personal dictionary, which applies to other programs too. Underlined technical terms (function names, acronyms) can be ignored.
- Branch names, file names and code snippets in the message usually show up underlined; that's not an error.
- Preferences › Commit message › Spell checker. The company policy can hide this page or make it read-only.
The spell checker uses one dictionary at a time. By default it's the one for the Windows language; you can choose another language that has spelling installed in Windows, for example to write the messages in English on Windows set to Portuguese.
- Preferences › Commit message › Spell checker › Dictionary language.
- In the commit box's right-click menu: Spell checker language….
- Open Preferences › Commit message.
- Under Dictionary language, look at the list. The hint next to it says which languages have spelling installed, for example "With spelling installed in Windows: English (United States) · en-US, Portuguese (Brazil) · pt-BR."
- Choose the language.
- "The new language takes effect after you close and reopen Versora." appears. Close and reopen the app.
- To go back to the default, choose Windows' language (Portuguese (Brazil) · pt-BR) and reopen the app.
If the language you want isn't on the list, install it in Windows with the spelling feature (Settings › Time & language › Language & region) and open Preferences again.
| Option | What it is | Default |
|---|---|---|
| Windows' language (…) | The first Windows language | Selected |
| A language from the list | A language with spelling installed in Windows, shown as "English (United States) · en-US" | — |
| "Spanish (Spain) · es-ES — no spelling installed in Windows" | Shows up when the language chosen earlier no longer has spelling installed | — |
Nothing in git.
For IT
The chosen language goes to WebView2 when the app opens (the --accept-lang argument, with the
chosen language ahead of the Windows languages). The choice is kept in a file in Versora's WebView2
profile folder, under %LOCALAPPDATA%. With no language chosen, the app doesn't pass anything to
WebView2.
Choose Windows' language (…) and reopen the app.
- When you choose a language, the interface language is pinned to the current one (Preferences › General), because WebView2 then reports the spell checker language as the preferred one. The page's note says which one ("… the interface language is pinned to English (Preferences › General) …"). Git terms stay in English, as always.
- "Windows didn't report any language with spelling installed.": the list only has the Windows language.
- ""xx" isn't a valid language code (e.g. en-US, pt-BR).": an invalid language code.
- "Couldn't find the WebView2 profile folder." and "Couldn't save the spell checker language: …": the app couldn't save the choice.
- Interface language: Preferences › General (see Language and theme).