Sublime Forum

PackageDev - Package Development

#1

bitbucket.org/guillermooo/aaapackagedev/src

Tools for authors of syntax definitions, plugins, completions… and packages in general.

Notes:

  • Read README.rst
  • Quickstart: Tools | Packages | Package Development

Cheers,
Guillermo

0 Likes

#2

Updated!

  • Fine-grained syntax def for .sublime-keymap files.
  • Some completions for .sublime-keymap files.

New syntax def for .sublime-keymap files should be applied automatically upon opening of said files.

Still a work in progress, but you might want to give it a try!

0 Likes

#3

The link seems to be broken. Is this it bitbucket.org/guillermooo/aaapa … v/overview?

0 Likes

#4

Thanks, firefusion, that’s correct. I had to rename the package because it appends to sys.path and therefore needs to be loaded first.

0 Likes

#5

Updated!

Expanded docs, new tools for snippet dev (develop snippets with syntax highlighting and snippets).

0 Likes

#6

Ehm, probably I am too stupid, but double-clicking the file opens the “Open With” dialog thingy.
I saw it is a .zip file actually. Where to extract it in order to make it work?

0 Likes

#7

In the README I’m assuming you’re running a full installation as opposed to a portable one. I’ll update the docs. You can learn about alternate installation methods here:

sublimetext.info/docs/extensibil … kages.html

Basically, copy the .sublime-package file to Data/Installed Packages and restart.

0 Likes

#8

I’ve got this after start:

  File "./sublime_plugin.py", line 187, in is_enabled_
  File "./snippet_dev.py", line 35, in is_enabled
  File "/Users/squ1b3r/Library/Application Support/Sublime Text 2/Packages/AAAPackageDev/Lib/sublime_lib/view/_view.py", line 17, in has_file_ext
    return view.file_name().endswith(ext)
AttributeError: 'NoneType' object has no attribute 'endswith'

MacOSX, btw

0 Likes

#9

That’s probably because you’re seeing a transient view. Do the menu shortcuts under Tools | Packages work for you? I’ll try to fix that. Thanks!

0 Likes

#10

Yes, all things works fine. Just traceback in console.

0 Likes

#11

I’ve fixed it now, I think. I didn’t get the same error, though.

0 Likes

#12

Ah ok. Trying the manual installation, thanks. :smile:

0 Likes

#13

Yeah, works perfect! Thanks.

0 Likes

#14

Updated!

Improved syntax defs

  • .sublime-build files detect escaped regexes in some fields
  • .sublime-keymap files detect escated regexes in some fields
  • .sublime-keymap files detect snippets in some fields

Escaped Regexes

A new syntax def to provide better scopes for escaped regexes in JSON files. Should distinguish between JSON escapes and actual regexp escapes.

0 Likes