It is currently April 27th, 2024, 10:07 pm

Sublime Text 2 Rainmeter package

Plugins and Addons popular with the Community
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Sublime Text 2 Rainmeter package

Post by thatsIch »

Thanks for the response, but unfortunately it does not seem to work.

Code: Select all

{
        "scope": "source.rainmeter",

        "completions":
        [
            {"trigger": "!Refresh", "contents": "!Refresh Test"}
        ]
}
I used this, which is parsable, but I still get !Refresh "(Config)" as a suggestion. I restarted ST2 and the console doesnt tell any suspicious too

Code: Select all

startup, version: 2221 windows x64 channel: stable
executable: /H/Programme/Sublime Text 2/sublime_text.exe
working dir: /H/Programme/Sublime Text 2
packages path: /C/Users/Minh/AppData/Roaming/Sublime Text 2/Packages
settings path: /C/Users/Minh/AppData/Roaming/Sublime Text 2/Settings
PackageSetup not required
Py_GetProgramName(): sublime_text.exe
Py_GetExecPrefix(): H:\Programme\Sublime Text 2
Py_GetProgramFullPath(): H:\Programme\Sublime Text 2\sublime_text.exe
Py_GetPath(): H:\Programme\Sublime Text 2\python26.zip;H:\Programme\Sublime Text 2\DLLs;H:\Programme\Sublime Text 2\lib;H:\Programme\Sublime Text 2\lib\plat-win;H:\Programme\Sublime Text 2\lib\lib-tk;H:\Programme\Sublime Text 2
Py_GetPythonHome(): H:\Programme\Sublime Text 2
catalogue loaded
found 7 files for base name Default.sublime-keymap
found 1 files for base name Default.sublime-mousemap
found 6 files for base name Main.sublime-menu
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\CSS\css_completions.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\comment.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\copy_path.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\delete_word.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\detect_indentation.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\duplicate_line.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\echo.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\exec.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\fold.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\font.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\goto_line.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\indentation.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\kill_ring.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\mark.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\new_templates.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\open_file_settings.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\open_in_browser.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\paragraph.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\save_on_focus_lost.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\scroll.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\set_unsaved_view_name.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\side_bar.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\sort.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\swap_line.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\switch_file.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\transform.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\transpose.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Default\trim_trailing_white_space.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Diff\diff.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\FileDiffs\file_diffs.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\HTML\encode_html_entities.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\HTML\html_completions.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Increment\increment.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Lua\ParseLua.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Open-Include\open_include.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Package Control\Package Control.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\QuickFileMove\QuickFileMove.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Rainmeter\colorpicker.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Rainmeter\indentrainmeter.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Rainmeter\newskintools.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Rainmeter\openskinsfolder.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Rainmeter\rainmeter.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Rainmeter\rainopen.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\Rainmeter\refreshcommands.py
Reloading plugin C:\Users\Minh\AppData\Roaming\Sublime Text 2\Packages\ShowEncoding\ShowEncoding.py
plugin init time: 0.244489
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
pre session restore time: 0.457626
wrote startup cache, added files: 1 orphaned files: 0 total files: 110 cache hits: 109
startup time: 0.57398 (package setup was not run)
loaded 887 snippets
Package Control: Skipping automatic upgrade, last run at 2013-09-23 19:45:40, next run at 2013-09-23 20:45:40 or after
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Sublime Text 2 Rainmeter package

Post by MerlinTheRed »

I researched a little. It seems that you can only add new completions this way, not overwrite them. When you start typing "Refresh", the dropdown list should show two different completions, one of which is yours. If you want to disable the old one, you have to remove the line in the original file, which will be overwritten at least every time you get a package update, if not more often. This is a limitation in Sublime Text 2 that I can't do much about.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Sublime Text 2 Rainmeter package

Post by thatsIch »

MerlinTheRed wrote:I researched a little. It seems that you can only add new completions this way, not overwrite them. When you start typing "Refresh", the dropdown list should show two different completions, one of which is yours. If you want to disable the old one, you have to remove the line in the original file, which will be overwritten at least every time you get a package update, if not more often. This is a limitation in Sublime Text 2 that I can't do much about.
Thanks for the research, wonder why I have not seen it myself. Maybe this will change in ST3 :) Thanks for the effort again. The reason I wanted to change it, was to change the default config the template offers to "#CURRENTCONFIG#"

Another Suggestion though: can you modify what sections are selected? For example if you type in !Refresh you will get [!Refresh "(Config)"] where "(Config)" is pre-selected, but would it not make more sense if only the (Config) was selected (notice the missing ")?
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Sublime Text 2 Rainmeter package

Post by MerlinTheRed »

Just press Tab again if you want to keep the quotes. The quotes are preselected so it's easier to delete if you don't want to specify a config.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Sublime Text 2 Rainmeter package

Post by thatsIch »

Holy cow, you are a god! If I knew this >_>

(╯°□°)╯︵ ┻━┻)
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Sublime Text 2 Rainmeter package

Post by MerlinTheRed »

I finally got around to add the new options that have accumulated in the previous months. Still no support for ST3 though. Please let me know if anything is amiss.

Change Log here: https://github.com/merlinthered/sublime-rainmeter/commits/master

Download for manual installation: https://github.com/merlinthered/sublime-rainmeter/releases/tag/1.0.7
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Sublime Text 2 Rainmeter package

Post by thatsIch »

Seems fine to me, thank you :)
Likius
Posts: 2
Joined: May 8th, 2014, 9:21 am

Re: Sublime Text 2 Rainmeter package

Post by Likius »

Thank you for awesome plugin! It looks great!)
But I encountered an issue(
I set correct path for rainmeter executable, but on refresh it brings an error.
Problem can be related that in registry %PROGRAMFILES% path is set to E:\Programms, or because of some rainmeter data stored separatedly in C:\Users\Appdata.. and the program is in stalled on E drive.
Sublime version: 2.02
Help me fix it :)
You do not have the required permissions to view the files attached to this post.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Sublime Text 2 Rainmeter package

Post by MerlinTheRed »

This all looks fine to me. Can you open the console and see what it prints when you refresh the skin?
You can open the console by going to View > Show Console or pressing Ctrl + /.
You have to enable logging for the Rainmeter Package first. Set "rainmeter_enable_logging": true, in your Rainmeter settings file.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
Likius
Posts: 2
Joined: May 8th, 2014, 9:21 am

Re: Sublime Text 2 Rainmeter package

Post by Likius »

Everything works fine now after rebooting. Maybe the changes didn't take effect before windows restart.)
Anyway, thank you)