Autoclosing of braces does not work if there is a character after it

Steps to reproduce

  1. Type any letter or set of letters
  2. Move typing cursor behind it
  3. Type any of these braces { [ (
  4. Cry (optional)

Expected result

I expect it to auto close the brace, regardless of there is an extra character or not

Actual result

It wasn’t auto closed

Environment

  • Operating system: Linux
  • Debug info:
SYSTEM INFO:
	Obsidian version: v0.13.19
	Installer version: v0.11.13
	Login status: not logged in
	Insider build toggle: off
	Live preview: off
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 1
	Safe mode: off
	Plugins installed: 15
	Plugins enabled: 0

Additional information

This is not true for if there is a space after it.

This is probobly a ‘feature’, however, it definetly seems like a bug. If anything, there should be an option to enable or disable this behavior.

This type of behaiour should also definetly be disabled in math blocks, and possibly code blocks.

I don’t consider this a bug and I am skeptical most users will find such behavior useful.

The idea behind not autoclosing the bracket is because if you are inserting the bracket right before a character it’s likely that you forgot to open the bracket there before.

VScode behaves the same way.

1 Like