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

duplicate opening "<" for snippet completions #99

Closed
mrlami opened this issue Mar 4, 2016 · 28 comments
Closed

duplicate opening "<" for snippet completions #99

mrlami opened this issue Mar 4, 2016 · 28 comments

Comments

@mrlami
Copy link

mrlami commented Mar 4, 2016

Reference snapshot

bs3-autocomplete-issue

@tgirardin
Copy link

I have the same problem.

@surjithctly
Copy link

+1

@KumarAditya
Copy link

The issue is happening for me too.

@ghost
Copy link

ghost commented Mar 15, 2016

And I have the same.

@mosleimgai
Copy link

step instalation is: before install this plugin, install emmet firstly. it's maybe can solve the problem. and the snippet is not require < again.

@cem90
Copy link

cem90 commented Mar 29, 2016

The way the problem can be minimized is shown in one of the closed issues.

Below the answer from @JasonMortonNZ :

Hey guys, I've been stumped by the issue for a long time. There's a setting in Sublime called auto_complete_triggers and by default it's set to "auto_complete_triggers": [ {"selector": "text.html", "characters": "<"} ]. I believe this is the root cause of the '<' remaining.

Unfortunately I can't find much (any) info in the Sublime docs in order to work out if there's a potential fix for this, but as a solution I updated the setting to this:

"auto_complete_triggers": [{"selector": "text.html", "characters": "<"},{"selector": "text.html", "characters": "bs3"}]

Hope that helps guys. Bootstrap 4 snippets is under way an will be released soon :)

@swirly
Copy link

swirly commented Apr 13, 2016

Same problem for me. The proposition from raedlime is not convenient for me, as it makes the usual completion with <h3 for exemple bieng inactive

Real problem :(

@cerealBoxx
Copy link

The solution doesn't work for me. I tried both reinstalling and changing the user preferences as suggested but I still have the issue. Is there another solution?

@ArunHub
Copy link

ArunHub commented Apr 26, 2016

For me its working fine...

@lsvt-olivier
Copy link

Same issue here and outlined solution doesn't work for me either.

@vdmytrovskyi-lattice
Copy link

+1

@Pablocgdev
Copy link

I'll add more info, only happens in linux, working as intended in osx and windows.

@swirly
Copy link

swirly commented May 15, 2016

No. It also happens for me on osX.

@jayleco
Copy link

jayleco commented May 20, 2016

+1

1 similar comment
@solitud
Copy link

solitud commented May 20, 2016

+1

@tsamridh86
Copy link

Please tell us on details to remove this duplicate < problem, it seriously poses a lot of problems

@dave-ok
Copy link
Contributor

dave-ok commented May 29, 2016

SOLVED: DOCUMENTATION ERROR!

Just started using this plugin, had the same issue and found the fix.

Docs incorrectly state "start typing '<bs3' " instead of just "bs3".

DONT use the "<" tag when typing, just start typing with "bs...". After confirmation (i.e when u hit ENTER or TAB key depending on ur editor), there should be no extra leading "<" character.

Problem is "" in code snippets do not include leading "<" but starts from "bs...". So e.g if u type "<bs3-col" the plugin will decode only "bs3-col" leaving the "<" character behind.

@dave-ok
Copy link
Contributor

dave-ok commented May 29, 2016

Let me/others know if this worked for you

@Pablocgdev
Copy link

Now it is working as intended, thanks.

@tsamridh86
Copy link

This only works inside the tags, it does not work when it's outside.
The method you describe is completely ineffective in HTML syntax

@dave-ok
Copy link
Contributor

dave-ok commented Jun 3, 2016

I use this in pure HTML and it works fine. Are u sure u have set ur preferences in sublime text to include: "auto_complete_triggers": [{"selector": "text.html", "characters": "bs3"}]. Ensure that u dont have any of ur autocomplete triggers set to capture <bs3 then u shd hav no problems

@dave-ok
Copy link
Contributor

dave-ok commented Jun 3, 2016

Just tried it in CSS and js still good

@tsamridh86
Copy link

tell me how to check it, i am unable to find that in the sublime text menu, thanks

@dave-ok
Copy link
Contributor

dave-ok commented Jun 10, 2016

Sorry for the late reply.

Goto Preferences->Settings-user and after the last entry place a comma and add like so:

"auto_complete_triggers":
    [
        {
            "characters": "bs",
            "selector": "text.html"
        }
    ]

Save your changes and restart sublime text. Hope this helps

@tsamridh86
Copy link

Yes, it works, thank you, please include this in the installation documentation also.

@dave-ok
Copy link
Contributor

dave-ok commented Jun 13, 2016

You're welcome will try

@nir-jas
Copy link

nir-jas commented Aug 4, 2016

Just Go to Preferences-->Settings-User and Add following line into the settings file.
"auto_complete_triggers": [ {"selector": "text.html", "characters": "bs"} ]

@Pablocgdev
Copy link

By setting correctly the filetype this is not needed, I can confirm in OSX, Linux and Windows.

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