Sublime Forum

How to show automatically show completion pop-up when typing?

#1

I would like to have the pop-up with available completions and snippets appear automatically as I type in a .txt file with markdown syntax. I seem to recall this is possible, but I cannot recall how to enable it. Below are my possibly relevant settings. Thanks for any help.

"auto_complete": true,
"auto_complete_cycle": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source, text, text.plain",
"auto_complete_use_index": false,
"auto_complete_with_fields": false,
"tab_completion": true,
0 Likes

#2

Those settings are working fine on my end. Perhaps you have a plugin interfering?

1 Like

#3

On further investigation, it seems my completions file is not matching for my text file’s syntax, but I don’t know why.

I have the file syntax set to “Markdown Extended” (source) that specifies its scope as “text.html.markdown”. My completions file is written to match to “text.html.markdown”. The completions popup does appear in files with “Markdown” syntax but not in files with “Markdown Extended” syntax. Anyone know why?

0 Likes

#4

Both Markdown and Markdown Extended share the same scope, but completions show fine on my end.

Checked it by creating Packages/User/Test.sublime-completions with:

{
	"scope": "text.html.markdown",
	"completions": [
		{
			"trigger": "thisismycompletion",
			"kind": ["navigation", "n", "Navi"],
		}
	],

That said, ST4’s default Markdown should be far superior than Markdown Extended these days.

0 Likes

#5

To be honest, I forget why I even settled on using Markdown Extended so many years ago. Good to hear default Markown has advanced. I’ll just go with that syntax from know on or until I encounter a limitation with it. Thank you!

0 Likes