# Disabling "Auto pair" options still inserts closing brackets

**URL:** <https://forum.obsidian.md/t/disabling-auto-pair-options-still-inserts-closing-brackets/72880>\
**Category:** Help\
**Created:** [December 11, 2023, 7:37pm UTC](https://forum.obsidian.md/t/disabling-auto-pair-options-still-inserts-closing-brackets/72880 "2023-12-11T19:37:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jms1](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jms1/32/57852_2.png) [@jms1](https://forum.obsidian.md/u/jms1)\
**Post date:** [December 11, 2023, 7:37pm UTC](https://forum.obsidian.md/t/disabling-auto-pair-options-still-inserts-closing-brackets/72880/1 "2023-12-11T19:37:04Z")

</div>

I’m trying to add this line to the middle of an already-existing code block, delimited with triple-backticks:

```auto
if [[${#FILES[@]} > 0 ]]

```

When I type the `[[`, it tries to “help” by popping up a drop list of other pages in the vault. I can hit ESC to dismiss this, but every keystroke after this pops up a new list of possible completions. If I don’t hit ESC after _every single keystroke_, it will _perform_ whatever substitution it thinks I want. For example, if I type the `#` without hitting ESC first, the line becomes:

```auto
if [[#]]

```

### Steps to reproduce

- Create a fenced code block, with both opening and closing lines of three backticks
- Between them, start typing the line shown above

### Did you follow the troubleshooting guide? [Y/N]

I did, and even after turning off the “Auto pair Brackets” and “Auto pair Markdown Syntax” options in _that_ vault, the problem still happens.

### Expected result

No attempts to “help”, since I’m typing inside of a fenced code block where Markdown syntax would be rendered “raw” anyway.

No automatic “`]]`” added, because the “Auto pair Markdown Syntax” option is turned off.

### Actual result

```auto
if [[#]]

```

### Environment

SYSTEM INFO:  
Obsidian version: v1.4.16  
Installer version: v1.4.14  
Operating system: Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:27 PDT 2023; root:xnu-10002.41.9~6/RELEASE\_X86\_64 23.1.0  
Login status: not logged in  
Insider build toggle: off  
Live preview: on  
Legacy editor: off  
Base theme: dark  
Community theme: none  
Snippets enabled: 0  
Restricted mode: on

RECOMMENDATIONS:  
none

* * *

### Additional information

 ![image](https://forum.obsidian.md/uploads/default/original/3X/a/d/adb3245524cee42a53492a961230b7dad54a98f8.png)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 28, 2024, 3:41pm UTC](https://forum.obsidian.md/t/disabling-auto-pair-options-still-inserts-closing-brackets/72880/2 "2024-05-28T15:41:46Z")

</div>

when autopair brackets is disabled, the `]]` are not inserted.

Regarding the link suggestion behavior inside code blocks, follow this FR:

> [@Disable all forms of markdown typing assistance in codeblocks](https://forum.obsidian.md/t/disable-all-forms-of-markdown-typing-assistance-in-codeblocks/76910):
>
> Use case or problem Currently, most of the typing assistance that Obsidian provides do no make sense or actively gets in the way when writing within a codeblock. For example, auto-pairing of markdown symbols (like bold), link suggestion [[, tag suggestion #. Also unlinked mention should not be picked up ([here](https://forum.obsidian.md/t/do-not-show-x-in-unlinked-mentions-avoid-backlinks-detection-in-tags-wikilinks-and-md-links/8599)). Proposed solution All these typing assistance tools should be deactivated while typing within a codeblock. Notes This FR is a simplified version of this other [FR](https://forum.obsidian.md/t/make-obsidians-behavior-on-codeblocks-dependent-on-their-type/21729) that asks for type-depe…

---

<div class="post-metadata">

**Author:** ![jms1](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jms1/32/57852_2.png) [@jms1](https://forum.obsidian.md/u/jms1)\
**Post date:** [May 30, 2024, 2:19am UTC](https://forum.obsidian.md/t/disabling-auto-pair-options-still-inserts-closing-brackets/72880/3 "2024-05-30T02:19:17Z")

</div>

Sorry, but no. The problem isn’t that it’s typing `]]`.

The problem is, when I type `[[` inside of a code block, it pops up a drop-list with the titles of the other pages in that vault … and when I hit ESC to make the drop-list go away, _every keystroke I type_ (other than `]`) makes it pop up the drop-list again.

I don’t use the “auto-update” feature, I prefer to wait a few days after a software update comes out to see if other people report problems. I _just_ upgraded this computer from 1.4.6 to 1.5.12 and the same problem is still happening.

The “FR” (whatever that means) you linked to, seems to describe the problem I’m having. Any idea where it is on the roadmap, i.e. how long it’s going to be until somebody looks at it?

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [May 30, 2024, 2:49am UTC](https://forum.obsidian.md/t/disabling-auto-pair-options-still-inserts-closing-brackets/72880/4 "2024-05-30T02:49:28Z")

</div>

> [@jms1](#):
>
> Sorry, but no. The problem isn’t that it’s typing `]]`.

I only wrote that because it was the title of your post.

FR means Feature Request. No idea on timing. Please continue the convo on that thread. This will be closed.

---

<div class="post-metadata">

**Author:** ![jms1](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jms1/32/57852_2.png) [@jms1](https://forum.obsidian.md/u/jms1)\
**Post date:** [May 30, 2024, 5:26am UTC](https://forum.obsidian.md/t/disabling-auto-pair-options-still-inserts-closing-brackets/72880/5 "2024-05-30T05:26:58Z")

</div>

Ahhh … if I remember correctly, it _was_ adding the `]]` by itself, but I found the setting to disable that, and that’s when it started doing the drop-list thing, so I edited the message I had already started but forgot to change the title. My apologies if that response sounded a bit snarky.

Any idea when or if the drop-list thing is going to be disabled while the cursor is inside of a code block? Is it even on the roadmap, or is it just something that a few users are grumbling about but it hasn’t reached critical mass yet?

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [June 27, 2024, 5:27am UTC](https://forum.obsidian.md/t/disabling-auto-pair-options-still-inserts-closing-brackets/72880/6 "2024-06-27T05:27:04Z")

</div>

Closed on June 27, 2024, 5:27am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
