GithubHelp home page GithubHelp logo

Comments (27)

JasonMortonNZ avatar JasonMortonNZ commented on July 24, 2024 1

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 :)

from bs3-sublime-plugin.

robinleboe avatar robinleboe commented on July 24, 2024

Same issue

from bs3-sublime-plugin.

giacom0 avatar giacom0 commented on July 24, 2024

+1

from bs3-sublime-plugin.

 avatar commented on July 24, 2024

same problem here

from bs3-sublime-plugin.

sishugang avatar sishugang commented on July 24, 2024

i have the same problem

from bs3-sublime-plugin.

ablx avatar ablx commented on July 24, 2024

+1

from bs3-sublime-plugin.

CristianCristea avatar CristianCristea commented on July 24, 2024

same problem

from bs3-sublime-plugin.

Beaudinn avatar Beaudinn commented on July 24, 2024

+1

from bs3-sublime-plugin.

 avatar commented on July 24, 2024

just type bs3 without <

from bs3-sublime-plugin.

thebao avatar thebao commented on July 24, 2024

+1

from bs3-sublime-plugin.

qerim avatar qerim commented on July 24, 2024

+1

Really nice plugin, but this issue get's very annoying.

from bs3-sublime-plugin.

JasonMortonNZ avatar JasonMortonNZ commented on July 24, 2024

I'm looking in to this issue now guys. Can I get you to provide some more info:

  1. What versions of Sublime your running?
  2. What OS are you using?
  3. Do you have the old Zen Coding plugin installed or the HTML5 plugin? (Both those plugins have been known to mess with snippets.)
  4. Are you typing "<bs3-" to trigger the snippets of "bs3-"?

Also if you could execute sublime.log_commands(True) in the sublime console. This will log what commands are ran and should help narrow down the plug-in causing the issue. Let me know your results.

@nmaxcom @robertd @giacom0 @wvllvw @sishugang @ablx @CristianCristea @Beaudinn @thebao @qerim

from bs3-sublime-plugin.

qerim avatar qerim commented on July 24, 2024

@JasonMortonNZ

Thanks for getting back dude!

  1. Sublime Text 3 Build 3083 - Portable
  2. Windows 7 Enterprise x64, Windows 8.1 Pro x64
  3. Plugins Installed: Emmet, AlignTab, HTML Minifier, Markdown Preview, SASS Build, Sass
  4. I type "<bs3" and then select from the auto dropdown.

The console just outputs: "command: comit_completion". after I type "<bs3", select and hit Enter.

I just removed the Emmet plugin and tried, but same result.

from bs3-sublime-plugin.

sishugang avatar sishugang commented on July 24, 2024

@JasonMortonNZ thanks very much

  1. 3 build 3083
  2. win10 enterprise x64
  3. plugin :emmet,jquery, pyv8
  4. I type "<bs3' and click , and console have no outputs,

from bs3-sublime-plugin.

thebao avatar thebao commented on July 24, 2024

@JasonMortonNZ
thanks for looking into this

  1. Sublime 3 build 3083
  2. Ubuntu 14.04
  3. Plugins: Better Completion, Bootstrap3, Emmet, Foundation 5, Sass, KnockoutJS
  4. "<bs3" + dropdown + TAB. console outputs "command: commit_completion"

from bs3-sublime-plugin.

CronGM avatar CronGM commented on July 24, 2024

Plus one. Thanks for looking into in:

  1. Sublime Text 3 build 3083
  2. Windows 8.1 Enterprise, 64-bit
  3. Plugins: Bracket Highlighter, ColorHighlighter, VAlign, jQuery, Minifier, Razor, Sublimerge Pro,
  4. Typing "<bs3-" to trigger the snippets.

from bs3-sublime-plugin.

LuoHuacheng avatar LuoHuacheng commented on July 24, 2024

I have the same problem.

  1. Sublime Text 3 build 3083
  2. Windows 10 Professional , 64-bit
  3. Plugins: Emmet , Html-Css-Js-Prettify , Sass , PyV8 , Sublimelinter
  4. Typing "<bs3-" or "<bs3" + dropdown + TAB
    There is always a "<" at front of the snippets.

from bs3-sublime-plugin.

benhulan avatar benhulan commented on July 24, 2024

I had the same problem on a Mac running OS X 10.10.5

The work-around was posted in a previous Issue. When I type "bs3" (without the leading "<") and press control + space, I get the dropdown menu. I can now click or use my cursor to select the desired snippet. Tab autocompletes properly, without an extra "<"

////// Previous comment:

+1

  1. Sublime Text 3 build 3083
  2. Mac OS X 10.10.5
  3. Plugins: Emmet, Markdown Preview, Package Control, PyV8, SassBeautify, SFTP, SublimeLinter, SublimeLinter-jshint
  4. Typing "<bs", "<bs3" or "<bs3-" and either pressing tab or clicking a selection in the dropdown menu

If I press tab on the default selection, console logs:
'command: insert_best_completion {"default": " ", "exact": false}'
If I click on the selection in the dropdown menu, it changes to "exact":true

Sometimes it also logs cursor moves and command: left_delete, depending on the length of the selection. However, command: left_delete does not appear to remove the leading angle bracket

from bs3-sublime-plugin.

edgarshurtado avatar edgarshurtado commented on July 24, 2024

I have the same problem on Mac too. I didn't know about the ctrl + space key shortcut. It solves the issue pretty much for me. Thank you!

from bs3-sublime-plugin.

anburocky3 avatar anburocky3 commented on July 24, 2024

Thank you @benhulan that was a great shortcut! Helpful :) .. By the way please solve that < (symbol)..
Waiting for the updates :)

from bs3-sublime-plugin.

jiachiun avatar jiachiun commented on July 24, 2024

I had the same problem on my Windows 8, but I found a work-around that works for both Sublime 2 and Sublime 3.

You can trigger the snippet shortcut by pressing Ctrl+Shift+Space, this will launch the command palette, and you can just type "bs3" and you get the dropdown menu. Then you can just click it or press enter to insert the selected snippet, without an extra "<".

snippet

More advanced option:
Pressing Ctrl+Shift+Space will only launch the command palette. If you want it to launch the command palette and automatically apply a filter for snippets only, you can add this line to Preferences > Key-Bindings - User:

{ "keys": ["ctrl+shift+."], "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Snippet: "}}

Then you can just press Ctrl+Shift+. to launch the snippet command.
Of course, you can change the shortcut key to any that you like, like "ctrl+y" etc.

More Info on my problem:

+1

  1. Sublime 3, Build 3083
  2. Windows Server 2012 R2 Datacenter
  3. No, it's a clean install of Sublime 3, but I have 2 other Sublime packages, "Laravel 5 Snippets", and "laravel-bootstrap-snippets".
  4. Yes, I typed "<bs3-" to trigger the snippets. But there was an extra "<" that appeared when I pressed enter.

Thanks for the awesome plugin!

from bs3-sublime-plugin.

eriktobben avatar eriktobben commented on July 24, 2024

I am having the same problem. Any updates on this issue?

from bs3-sublime-plugin.

wuzhitian avatar wuzhitian commented on July 24, 2024

I am having the same problem. Any updates on this issue?

from bs3-sublime-plugin.

MartinHaun avatar MartinHaun commented on July 24, 2024

Same issue here

In the default sublime.setting i can see there's already a trigger for '<', which remains even if i uninstall this package. Perhaps that's causing the issue?

from bs3-sublime-plugin.

raedlime avatar raedlime commented on July 24, 2024

Same here!

from bs3-sublime-plugin.

raedlime avatar raedlime commented on July 24, 2024

awesome! works pretty fine for me!

from bs3-sublime-plugin.

ish3lan avatar ish3lan commented on July 24, 2024

Took me a while to understand why it is working with every one but me!

After adding
"auto_complete_triggers": [{"selector": "text.html", "characters": "<"},{"selector": "text.html", "characters": "bs3"}]
to Sublime User Settings.

use bs3 without <. that is (e.g. bs3-form instead of <bs3-form ) and the auto complete will work

from bs3-sublime-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.