Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop forcing Sublime Text to show the auto completion when between quotes "" #106

Open
evandrocoan opened this issue May 17, 2017 · 0 comments

Comments

@evandrocoan
Copy link

evandrocoan commented May 17, 2017

I set the setting "afn_use_keybinding" to true:

	// If you don't like having filenames flood the default autocompletions,
	// you can set the plugin to only activate with a keybinding.
	// If you set this to true, add the following to your user-keybindings:
	//
	// { "keys": ["whatever"], "command": "afn_show_filenames",
	//    "context":
	//  [
	//      { "key": "afn_use_keybinding", "operator": "equal", "operand": true }
	//  ]
	// }
	//
	"afn_use_keybinding": true

However every time I put the cursor between quotes the autocompletion pops up:

2

On my settings there is only this set for auto_complete_with_fields:

	"autoIndent": true,
	"auto_complete": true,
	"auto_complete_cycle": true,
	"auto_complete_delay": 0,
	"auto_complete_selector": "source, text",
	"auto_complete_triggers":
	[
		{
			"characters": "<",
			"selector": "text.html"
		},
		{
			"characters": "\\",
			"selector": "text.tex.latex"
		}
	],
	"auto_complete_with_fields": true,

I am on Sublime Text build 3114, windows 10.

This is what the Sublime Text console outputs when I ran the animated gif:

chr evt: " (0x22)
chr evt: " (0x22)
key evt: left
command: move {"by": "characters", "forward": false}
key evt: left
command: move {"by": "characters", "forward": false}
key evt: right
command: move {"by": "characters", "forward": true}
key evt: left
command: move {"by": "characters", "forward": false}
key evt: right
command: move {"by": "characters", "forward": true}
key evt: right
command: move {"by": "characters", "forward": true}
key evt: left
command: move {"by": "characters", "forward": false}
evandrocoan referenced this issue in jsilvermist/AutoFileName May 17, 2017
…ng is true

When using 'afn_use_keybinding' = true option the autocomplete popup still is opened inside any string and it is quite distracting. I have tried to fix this, though I am not sure if it  is okay to query settings value on every modification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant