Autopair brackets - long expression

Steps to reproduce

  1. SettingsAuto pair brackets->On
  2. Write aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa (or longer word)
  3. Mark whole word
  4. Press left parenthesis key (

Did you follow the troubleshooting guide?

Yes

Expected result

(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)

Actual result

Changins word with parenthesis ()

Environment

SYSTEM INFO:
Operating system: android 9 (HTC HTC U12+)
Obsidian version: 1.4.16 (114)
API version: v1.4.16
Login status: not logged in
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 2
Restricted mode: on

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.


Additional information

Probably bug can be dependent on width screen, so if bug doesn’t work try longer word.
It works with another signs like [ { and backtick `.

I’m not able to reproduce even with a “word” being 4 lines long, with all my plugins activated as well…

Show debug info
SYSTEM INFO:
	Operating system: android 13 (samsung SM-A515F)
	Obsidian version: 1.4.16 (114)
	API version: v1.4.16
	Login status: not logged in
	Live preview: off
	Legacy editor: off
	Base theme: dark
	Community theme: Minimal v7.4.6
	Snippets enabled: 7
	Restricted mode: off
	Plugins installed: 27
	Plugins enabled: 9
		1: Minimal Theme Settings v7.3.1
		2: Advanced Tables v0.20.0
		3: Buttons v0.4.19
		4: Plaintext v0.2.0
		5: Templater v1.18.3
		6: Style Settings v1.0.7
		7: Sortable v0.3.1
		8: QuickAdd v1.6.1
		9: Dataview v0.5.64

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

So there might be something else happening at your end. Not sure what though…

1 Like

Do you use Android on smartphone?
My smartphone is 7 cm width.

I’ve pasted my Debug info before.

Yes, it’s a Samsung A51, and I’m on a newer operating system than you.

Slightly longer text, but no issues…

Also tried in SandBox vault without issues, so there is something else causing your issues.

1 Like

I found that issue occur with (Google) Gboard.
When I switch to HTC or Multiling keyboard; autopair works correctly.
Tested with touchscreen and BT keyboard.

2 Likes

I disabled all options in Gboard settings but it didn’t help.

Keyboard configurations:

  • Only screen keyboard - doesn’t work
  • Only BT keyboard - doesn’t work
  • BT keboard AND screen keyboard - somehow work…

I’m not using Gboard, nor an external keyboard, so I can’t help any further than what I’ve already stated. Happy hunting for the actual reason why your setups fails in this context.

1 Like

If this is a virtual keyboard problem, there isn’t much we can do.

Is it possible this is a variant of the other bug related to backticks being a dead key on some keyboards? When I’m typing on Android the backtick is not a deadkey on the default keyboard, but it could very well be so on a virtual keyboard (if it’s an international keyboard).

1 Like

I don’t think so.