Problem with inputing headings

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

I have lots of tags.

When I type headings (which start with one or more #), the tag suggestion pops up as soon as I enter the first #. However, loading this suggestion window causes Obsidian to freeze for about 1 second, which is very annoying.

Unfortunately, after Obsidian has been running for days or longer, the freeze time becomes non-negligible (almost 2 seconds).

Things I have tried

tag suggestion, slow.

Changing the tag suggestion trigger by inputting a combination of # and Tab, rather than just a single #, might be a solution.

Press space after typing # quickly.
Consolidate tags with AI.

There is no setting to switch off the tag suggester, I don’t think.

The real challenging part is typing multiple #s—e.g., two consecutive #s for a second-level heading. But your reply made me think: we could increase the delay between the first # and the tag suggestion popup. And typing another # or a space will break the spell before it’s cast.

Patching main app is not trivial.

Your best bet at this point is to use a Text Expander plugin (I use Typing Transformer). For example:
:2 > ## (space added also)
etc.

In Typing Transformer it is:
':2|' -> '## |'

Try thinking of a squence that would normally never happen.
Otherwise some plugin may be used to paste in text such as the above at cursor position.
Back in the day, Templater was used for stuff like this. Because Typing Transformer expansions cannot be individually bound to hotkeys.

BUT: you can use the expander where your hotkey would some simple thing as mentioned above (your “hotkey”: :2 with the colon and 2 pressed one after the other). So no need to think too complex.

You can use Set as heading 2 etc commands or Toggle heading command. Then bind a keyboard shortcut like LeftAlt+2. By using this method you can input level 1 headings without tags suggestions but if you want to first input ## automatically and then going back to one # triggers the tags suggestions. However you can avoid using level 1 headings and then use Set as heading 2 for inputing level 2–6 headings i.e. first run the shortcut then manually add extra #s if needed.