This is really awesome. Thank you.
Is there an easy way to find out a shortcut list for CSS and html properties?
This is really awesome. Thank you.
Is there an easy way to find out a shortcut list for CSS and html properties?
[quote=āfirefusionā]This is really awesome. Thank you.
Is there an easy way to find out a shortcut list for CSS and html properties?[/quote]
Am afraid I donāt understand your question ?
[quote=āsublimatorā]@EJ12N
I think he may mean some way to get a list of the tab trigger abbreviations for the snippets.[/quote]
Oh okā¦ well most of the css/html snippets are now obsolete kind of with ZenCoding package so so they might go awayā¦
It looks like there is a conflict between PowerUser and Zen Coding. If you start a new CSS document and try the following rules youāll see that the tabbing automatically fans out.
http://dl.getdropbox.com/u/497583/zen-tabs.png
Edit: Ok the fix is for Zen Coding
http://www.sublimetext.com/forum/viewtopic.php?f=2&t=580&start=60#p3076
Ok I have added getOnlineHelp command for PHP/CSS/XHTML
it uses php.net, and reference.sitepoint.com/css, reference.sitepoint.com/html for its referencesā¦
default binding to shift+f1, if thereās text selected it uses that if not it uses word under cursor
Enjoy it.
NOTE: eventually sometime I will edit it to use local help files (chm)ā¦
Iām having a problem when typing open curly braces in a CSS document. I get the following error in the console and no curly brace appearsā¦
No such snippet Packages/PowerUser/Snippets/curly_braces.sublime-snippet
[quote=āfirefusionā]Iām having a problem when typing open curly braces in a CSS document. I get the following error in the console and no curly brace appearsā¦
No such snippet Packages/PowerUser/Snippets/curly_braces.sublime-snippet
umm ok my bad I removed that, I believe sublime does curly braces by default nowā¦
Hello
Iām totally newbie on sublimetext and of course on plugins. I just downloaded then installed Power Use package.
Installation did work fine.
But on sublime menus I find just two entries to use PowerUser : on Tools Macros and on Tools Snippets.
But I donāt find how to use the other features like all those are listed on the first message of this topic.
Please, help me to use PowerUser and why notā¦ other plugins.
Thanks in advance
Best regards
JJK
[quote=ājjkā]Hello
Iām totally newbie on sublimetext and of course on plugins. I just downloaded then installed Power Use package.
Installation did work fine.
But on sublime menus I find just two entries to use PowerUser : on Tools Macros and on Tools Snippets.
But I donāt find how to use the other features like all those are listed on the first message of this topic.
Please, help me to use PowerUser and why notā¦ other plugins.
Thanks in advance
Best regards
JJK[/quote]
Ok basically the first thing to familiarize yourself with plugins if you have no understanding of python is to look at the Default.sublime-keymap in the plugin folder
This file lists the shortcuts for the commands that the plugin itself provides to the user, from here you can play with the shortcuts in a new empty file and try the commandsā¦
I commented most the shortcuts and what they do
ie:
<!-- Zoom In/Out -->
<binding key="alt+equals" command="zoomIn" />
<binding key="alt+minus" command="zoomOut" />
<!-- Get Online Help for PHP/CSS/XHTML -->
<binding key="shift+f1" command="getOnlineHelp" />
I promise better documentation is coming
It seems I only need one command from this package - The ability to duplicate lines with ctrl + D.
Is there a way to get just that feature?
You just need to locate the command used by the key binding and place it wherever you want (Packages/User, usually).
Hereās this particular one extracted directly from the repo:
code.google.com/p/sublime-text-c ā¦ werUser.py
Now you only need to add a key binding for it and youāre good to go.
"""
Duplicates Current Line or Selected text
---
Duplicates current line if there's nothing selected. Else duplicates content
"""
class DuplicateLineCommand(sublimeplugin.TextCommand):
def run(self, view, args):
for region in view.sel():
if region.empty():
line = view.line(region)
lineContents = view.substr(line) + '\n'
view.insert(line.begin(), lineContents)
else:
s = view.substr(region)
view.insert(region.end(), s)
It would seem that this package isnāt compatible with Sublime Text 2 ?
I downloaded the package file, dropped it into my sublimb packages folder; doubleclick it and restart sublime, and it complains about issues with the key bindings script. The macros appear in the Macros menu item, but none will successfully run.
Thereās no useful documentation whatsoever for it. What gives?
Uhmmā¦ look at the date. Itās from 3 years ago. I donāt even know how you managed to dig this upā¦
Iāve got it that the original discussion is aged, but the package is still posted at googlecode. Seems like either the package or sublime lack version checking for API support, so it just fumbles instead of reporting something useful such as the package uses an outdated API or somesuch.
In any event, it didnāt make for a particularly impressive first go at installing a third party extension into sublime.
Install Package Control wbond.net/sublime_packages/package_control. This installs packages that work with ST2. This should make things go smooth for you.
I would also recommend against installing ākitchen sinkā plugins (plugins that do a lot of little things). Use the editor as is and figure out exactly whatās missing that you need and go from there. In the case of this old plugin, a lot of that functionality exists by default now.
While there isnāt a lot of formal documentation - there are ways to figure out the editor. It just requires a bit more effort than a wiki would provide. Start with the keybinds file (Preferences, Key Bindings - Default). I skimmed through this file when I first started using Sublime and it helped a LOT. It will also help to illustrate the power of the editor as well as the customizability (I think I just made that word up). Also, donāt be afraid to ask. Iāve found the ST2 community to be very nice. Not the usual ālrn 2 srch noobā mindset that a lot of forums have.