joplin
joplin copied to clipboard
Desktop,Mobile: Add setting to disable markup autocompletion
Summary
This pull request adds a setting to disable markup autocompletion, as requested on the forum.
[!NOTE]
This pull request builds on https://github.com/laurent22/joplin/pull/11221 — a new CodeMirror API is required to disable HTML tag autocomplete.
Screen recording
Screencast from 2024-10-16 08-29-41.webm
Note: The screen recording shows the new setting with a different label. The setting label was changed in https://github.com/laurent22/joplin/pull/11222/commits/3f1d42b6c2b05a4b48a054942913e71750de04d1.
Testing plan
Desktop (Fedora 40) and Android 13:
- Disable markup autocomplete in settings > note > advanced.
- Type:
and verify that list numbers are not inserted automatically after pressing enter.1. this 2. is 3. a 4. test
- Press enter.
- Type
<div>
. - Verify that a
</div>
closing tag was not inserted automatically. - Close the
<div>
. - Add two new lines and type (.
-
Desktop only: Verify that a closing
)
has been inserted.- Automatch brackets is a separate setting.
- Desktop only: Disable braces automatch and enable HTML autocomplete.
- Move the cursor to the end of the 2nd list item.
- On desktop, Press tab. If on mobile, press the indent button.
- Verify that the list item has been indented and renumbered (
1.
instead of2.
). -
Desktop only: Near the end of the note, type
(
. Verify that no closing)
is added. - On a new line, type
<div>
. Verify that a closing</div>
is added.