Makopo / sublime-text-lsl

Syntax definitions for LSL(Linden Scripting Language) in Second Life and OSSL(OpenSimulator Scripting Language) in OpenSimulator.
31 stars 4 forks source link

add LSL icon for sidebar view for Sublime Build 3062+ #30

Closed ghost closed 8 years ago

ghost commented 10 years ago

Add Icon (LSL).tmPreferences with:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>scope</key><string>source.lsl</string>
        <key>settings</key>
        <dict>
            <key>icon</key><string>file_type_lsl</string>
        </dict>
    </dict>
    </plist>

for file .../LSL/icons/file_type_lsl.png.

Not sure about the license of the file from ...\SecondLifeViewer\skins\default\textures\icons\Inv_Script.png, though.

No way to use the API as of Build 3062, yet.

References:


If you consider implementing this, I'd recommend this structure:

LSL/
  ├── menu/
  │     └── Main.sublime-menu
  ├── messages/
  │     ├── ...txt
  │     └── ...txt
  ├── preferences/
  │     ├── ...tmPreferences
  │     ├── ...allman
  │     ├── ...kandr
  │     └── ...tmPreferences 
  ├── settings/
  │     ├── lsl.sublime-settings
  │     └── ossl.sublime-settings
  ├── snippets/
  │     ├── commons/
  │     │       ├── ...sublime-snippet 
  │     │       └── ...sublime-snippet
  │     ├── events/
  │     │       ├── ...sublime-snippet 
  │     │       └── ...sublime-snippet 
  │     ├── LSLConstants.sublime-completions
  │     ├── LSLFunctions.sublime-completions
  │     ├── OSSLConstants.sublime-completions
  │     └── OSSLFunctions.sublime-completions
  ├── support/
  │     ├── build/
  │     │       ├── linux/
  │     │       ├── osx/
  │     │       ├── windows/
  │     │       └── LSL.sublime-build
  ├── syntaxes/
  │     ├── lsl.tmLanguage
  │     └── ossl.tmLanguage
  ├── themes/
  │     ├── icons/
  │     │       └── file_type_lsl.png
  │     └── lsl.hidden-tmTheme
  ├── .gitignore
  ├── .no-sublime-package
  ├── README.md
  ├── changestyle.py
  ├── editorscheme.py
  ├── init.py
  └── messages.json

Should work fine if you update references in the python files accordingly as you did in fecee1a80b.

Makopo commented 10 years ago

I'll consider implementing the icon after API is implemented.

And as for the structure, I prefer flat structure so let me go as is. Users generally don't look in this structure;)

ghost commented 10 years ago

another reference on how to do this: https://github.com/pryley/soda-theme

Makopo commented 8 years ago

Unfortunately, the icon png should be in the theme directory, which the users set as "theme" in ST3 settings, e.g. Seti_UI, Soda etc... I don't want to hack other's plugin folders, so let me just document how to do that.