Home Download Buy Blog Forum Support

PowerUser package for power users.

Re: PowerUser package for power users.

Postby EJ12N on Tue Oct 27, 2009 8:28 pm

firefusion wrote: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....

Code: Select all
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... :)
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: PowerUser package for power users.

Postby jjk on Tue Oct 27, 2009 8:57 pm

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
jjk
 
Posts: 1
Joined: Tue Oct 27, 2009 8:52 pm

Re: PowerUser package for power users.

Postby EJ12N on Tue Oct 27, 2009 9:06 pm

jjk wrote: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


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:
Code: Select all

<!-- 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 :D
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: PowerUser package for power users.

Postby firefusion on Wed Mar 03, 2010 7:59 am

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?
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: PowerUser package for power users.

Postby guillermooo on Wed Mar 03, 2010 12:09 pm

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:
http://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.

Code: Select all
"""
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)
guillermooo
 
Posts: 718
Joined: Thu Jul 23, 2009 9:06 am

Re: PowerUser package for power users.

Postby firefusion on Sat Mar 13, 2010 7:54 am

Got it working. Thanks :)
firefusion
 
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: PowerUser package for power users.

Postby trevorsg on Mon May 31, 2010 4:58 pm

Looks like the link is broken now. Is this up somewhere else? Thanks!
trevorsg
 
Posts: 10
Joined: Fri Dec 04, 2009 5:05 am

Re: PowerUser package for power users.

Postby EJ12N on Mon Jun 14, 2010 4:56 pm

EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: PowerUser package for power users.

Postby splud on Sun Nov 18, 2012 7:08 pm

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?
splud
 
Posts: 3
Joined: Sun Nov 18, 2012 6:29 pm

Re: PowerUser package for power users.

Postby C0D312 on Sun Nov 18, 2012 7:27 pm

Uhmm... look at the date. It's from 3 years ago. I don't even know how you managed to dig this up...
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: Yahoo [Bot] and 6 guests