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

Comments

Projects
None yet
@mrlami
Copy link

commented Mar 4, 2016

Reference snapshot

bs3-autocomplete-issue

@tgirardin

This comment has been minimized.

Copy link

commented Mar 4, 2016

I have the same problem.

@surjithctly

This comment has been minimized.

Copy link

commented Mar 8, 2016

+1

@KumarAditya

This comment has been minimized.

Copy link

commented Mar 15, 2016

The issue is happening for me too.

@ghost

This comment has been minimized.

Copy link

commented Mar 15, 2016

And I have the same.

@mosleimgai

This comment has been minimized.

Copy link

commented Mar 16, 2016

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

@raedlime

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Apr 22, 2016

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

This comment has been minimized.

Copy link

commented Apr 26, 2016

For me its working fine...

@lsvt-olivier

This comment has been minimized.

Copy link

commented May 3, 2016

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

@vdmytrovskyi-lattice

This comment has been minimized.

Copy link

commented May 11, 2016

+1

@Pablocgdev

This comment has been minimized.

Copy link

commented May 14, 2016

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

@swirly

This comment has been minimized.

Copy link

commented May 15, 2016

No. It also happens for me on osX.

@jayleco

This comment has been minimized.

Copy link

commented May 20, 2016

+1

1 similar comment
@solitud

This comment has been minimized.

Copy link

commented May 20, 2016

+1

@tsamridh86

This comment has been minimized.

Copy link

commented May 25, 2016

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

@dave-ok

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

commented May 29, 2016

Let me/others know if this worked for you

@Pablocgdev

This comment has been minimized.

Copy link

commented May 30, 2016

Now it is working as intended, thanks.

@tsamridh86

This comment has been minimized.

Copy link

commented Jun 2, 2016

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

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

commented Jun 3, 2016

Just tried it in CSS and js still good

@tsamridh86

This comment has been minimized.

Copy link

commented Jun 6, 2016

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

@dave-ok

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link

commented Jun 11, 2016

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

@dave-ok

This comment has been minimized.

Copy link
Contributor

commented Jun 13, 2016

You're welcome will try

@nir-jas

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Aug 11, 2016

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
You can’t perform that action at this time.