Comments (27)
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.
Same issue
from bs3-sublime-plugin.
+1
from bs3-sublime-plugin.
same problem here
from bs3-sublime-plugin.
i have the same problem
from bs3-sublime-plugin.
+1
from bs3-sublime-plugin.
same problem
from bs3-sublime-plugin.
+1
from bs3-sublime-plugin.
just type bs3 without <
from bs3-sublime-plugin.
+1
from bs3-sublime-plugin.
+1
Really nice plugin, but this issue get's very annoying.
from bs3-sublime-plugin.
I'm looking in to this issue now guys. Can I get you to provide some more info:
- What versions of Sublime your running?
- What OS are you using?
- Do you have the old Zen Coding plugin installed or the HTML5 plugin? (Both those plugins have been known to mess with snippets.)
- 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.
Thanks for getting back dude!
- Sublime Text 3 Build 3083 - Portable
- Windows 7 Enterprise x64, Windows 8.1 Pro x64
- Plugins Installed: Emmet, AlignTab, HTML Minifier, Markdown Preview, SASS Build, Sass
- 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.
@JasonMortonNZ thanks very much
- 3 build 3083
- win10 enterprise x64
- plugin :emmet,jquery, pyv8
- I type "<bs3' and click , and console have no outputs,
from bs3-sublime-plugin.
@JasonMortonNZ
thanks for looking into this
- Sublime 3 build 3083
- Ubuntu 14.04
- Plugins: Better Completion, Bootstrap3, Emmet, Foundation 5, Sass, KnockoutJS
- "<bs3" + dropdown + TAB. console outputs "command: commit_completion"
from bs3-sublime-plugin.
Plus one. Thanks for looking into in:
- Sublime Text 3 build 3083
- Windows 8.1 Enterprise, 64-bit
- Plugins: Bracket Highlighter, ColorHighlighter, VAlign, jQuery, Minifier, Razor, Sublimerge Pro,
- Typing "<bs3-" to trigger the snippets.
from bs3-sublime-plugin.
I have the same problem.
- Sublime Text 3 build 3083
- Windows 10 Professional , 64-bit
- Plugins: Emmet , Html-Css-Js-Prettify , Sass , PyV8 , Sublimelinter
- Typing "<bs3-" or "<bs3" + dropdown + TAB
There is always a "<" at front of the snippets.
from bs3-sublime-plugin.
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
- Sublime Text 3 build 3083
- Mac OS X 10.10.5
- Plugins: Emmet, Markdown Preview, Package Control, PyV8, SassBeautify, SFTP, SublimeLinter, SublimeLinter-jshint
- 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.
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.
Thank you @benhulan that was a great shortcut! Helpful :) .. By the way please solve that < (symbol)..
Waiting for the updates :)
from bs3-sublime-plugin.
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 "<".
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
- Sublime 3, Build 3083
- Windows Server 2012 R2 Datacenter
- No, it's a clean install of Sublime 3, but I have 2 other Sublime packages, "Laravel 5 Snippets", and "laravel-bootstrap-snippets".
- 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.
I am having the same problem. Any updates on this issue?
from bs3-sublime-plugin.
I am having the same problem. Any updates on this issue?
from bs3-sublime-plugin.
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.
Same here!
from bs3-sublime-plugin.
awesome! works pretty fine for me!
from bs3-sublime-plugin.
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)
- Add Snippet for Nav Dropdown HOT 1
- Carousel for large screens
- Add scope to snippets HOT 4
- There's no a command for only navtabs. HOT 1
- Hero Example not working
- Not only for html HOT 1
- Update the bootstrap version in CDN to the current version 3.3.7 HOT 1
- doesn't work on twig files [my fault]
- snippet creates extra top and bottom empty line
- Cannot find collapse
- textarea input missing HOT 3
- add tabs snippet
- Indentation
- <bs3 not working on install HOT 7
- One more character after shortcut HOT 8
- bootstrap cdn url update and version HOT 5
- JS cdn is broken. HOT 3
- Can't find nav-pills snippet
- duplicate opening "<" for snippet completions HOT 28
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bs3-sublime-plugin.