Giter VIP home page Giter VIP logo

thatsich / sublime-rainmeter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from merlinthered/sublime-rainmeter

51.0 51.0 3.0 1.81 MB

Rainmeter Package for Sublime Text 3

Home Page: https://thatsich.github.io/sublime-rainmeter/

License: MIT License

Python 98.34% AutoIt 0.69% PowerShell 0.62% Assembly 0.35%
desktop-app package-control rainmeter sublime-completions sublime-package sublime-snippets sublime-syntax sublime-text sublime-text-3 sublime-text-plugin windows

sublime-rainmeter's People

Contributors

kaelri avatar merlinthered avatar thatsich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sublime-rainmeter's Issues

Open Skin as Project

Utility command to quickly open a skin as project. Elevates the need to open a folder and then browse through it to open a particular skin

Code folding

Currently code folding relies on the tab character, which is super unreliable and not even meaningful in the Rainmeter domain. There are some attempts to implement code folding markers, but nothing there works as intended. The easiest solution would be, if ST3 would be provide an API for that.

Indention module broken

for some reason the auto indention does not work anymore?

(not that anybody actually uses the indention)

Rainmeter skin path isn't working

So I just installed it and now I am setting the path of Rainmeter skin but skin path isn't working
these are my user paths but these aren't seem to be working

{
	"rainmeter_path":"C:\\Program Files\\Rainmeter",
	"rainmeter_skins_path": "C:\\Users\\Royk Nis\\Documents\\Rainmeter\\Skins",
}

my open skin folder & other commands of rainmeter are grayed out as you can see in the below image
desktop 11 26 2016 - 10 36 27 02_moment

Rewrite Rainmeter.sublime-build to handle inc files

While being in inc files or Lua files this can lead to potential annoying workflows, because we have to switch back to the main ini file to build it.

This is way easier if we can detect the main source first.

Convert to standard format

Sometimes people use stuff like

FontColor = 128, 128, 128, 128

though the documented way given through the Rainmeter Team would be

FontColor=128,128,128,128

There should be a way to quickly format a whole file into the standard format.

Build on save

If you save, we can run build at once.

Run it via Toggle or something like that.

Use goto definition of keys to go to documentation

Maybe download and display real HTML or just link to homepage.

Most times the hints are not information enough and thus people need to read the real documentation. But especially learning from skins going there manually is very cumbersome.

Clicking on a GraphStart could directly either open https://docs.rainmeter.net/manual-beta/meters/histogram/#GraphStart in the browser or make a mirror on each start and handle the rendering manually in sublime text.

Support for typos in auto completion

I am currently thinking about introducing a mechanism used in major IDEs which allow users to type not correctly matched search patterns for the smart auto completion component.

Imagine searching for superTest and just pre will suffice because superTest. But what if we want to allow ptr which would not match because the r is before the t.

I thought about an algorithm which puts a penalty on the search for each time the algorithm has to move backwards to search for a match. In the example above the algorithm would return -1 because it had to move back for the r once. The entries would be sorted by the penalty added to the matching distance. The fine tuning is important how to integrate the penalty into the distance metric.

Make it runnable with travis

Appveyor is shit ๐Ÿ‘Ž

Currently all the time their ngnix proxy returns 500 by downloading sublime text. This sucks!

Display all current possible variables an their values

Sometimes I struggle to use the correct variable because there are so many and it is not always convenient to look up the Rainmeter manual just to know which one to choose.

If there is some way to display something like a table for the current project, it would make looking them up ideal. It somewhat acts like the examples in the Rainmeter manual.

Install skins from github

If somebody is distributing his skin via Github (later on maybe other providers) you should be able to install it directly via Sublime Text 3. A general use case can be:

  • You are developing a skin which requires a specific functionality
  • You see another skin which has this
  • This skin is provided via Github
  • You want to "introspec" his skin

I suggest something like:

Tools > Rainmeter > Add Skin via Github link...

which opens an input field and where you can enter copy paste the link into.

Pitfalls might be cases, where poeple copy paste the wrong link like the git link.

A consideration is, if git is present in the environment I could clone the repository which enables automatic checks for new updates.

Refresh open skins

Even when on other pages e.g. in Lua files, inc files, you want to refresh the main skins. It should be possible to detect all open files and check if they are in source.rainmeter scope.

So if a file contains the [Rainmeter] section, it is considered a main file and thus can be refreshed.

Rewrite README for better overview

Currently the overview is pretty bloated for newcomers. It should have a leaner entry point where the details can be outsourced.

Even though images are nice, having like half a dozen at once is not easy to percept.

Installation should also be simplified and the alternatives are only provided if required.

Technical details should be on a seperate entry because nobody using this is interessted in that.

Finalize Shape API

Since the release is out, I guess the new Shape Meter is final and thus can now be fully implemented. Not an easy one. I might need to rework with recursive syntax stacks here.

Shape syntax highlighting missing

"Shape= " lacks any syntax highlighting, for measures or variables. They stay white, and don't get changed to reflect their actual value.

Using the default appearance.

Refactoring measure/meter names

Given a measure or a meter name, the name of that can be used in other bangs or as dynamic variables to reference them. It should not be that difficult to rename all instances that are all named the same and referenced to rename them all at once.

Example:

[MyMeasure]
Measure=Calc

[MyRelativeMeasure]
Measure=Calc
Formula=MyMeasure + 2

[MyDynamicMeter]
Meter=String
X=[MyRelativeMeasure]
DynamicVariables=1

[MyMeter]
MeasureName=MyMeasure
Meter=String

Renaming [MyMeasure] should handle renaming in [MyMeter] the MeasureName, in [MyRelativeMeasure] the variable in the Formula and obviously the section name of [MyMeasure]

Location Stack

Imagine you working on one file, but you have to look up something on top and then scroll back to the previous location. Wouldn't it be nice to have something which tracks your locations and where you can return to?

Not sure how to implement it yet, but editors like Eclipse, Vi etc can do that by a shortcut command alt+โ† or โ†’

Show quick outline for navigation

Sometimes a single .ini can get very big, but you know what you are searching for, but you have no clue how it is written or named. Showing a quick outline can help navigate by showing their section names and their type.

This sounds somewhat useful, but personally I have never ever used such a feature in an IDE. Open for discussion.

Possibility to directly make files in the @resource folder from script measure

This is a suggestion, so i hope that this is the right place to suggest things ;)

an example of the behaviour i'm talking about:

[SomeScript]
Measure=Script
ScriptFile=#@#SomeScript.lua

I wonder if it would be possible to right click (or have some key combination) the path to SomeScript.lua and it would automatically generate a .lua file there and open that file or editing. This should ofc only work if the specified path is somewhere in the resource folder :) (though this decision is up to you i guess)

I hope this hasn't been suggested before :P

Anyways, keep up the good work. I love the sublime text package so far ๐Ÿ‘

Edit: forgot how to markdown...

Edit 2: found the title to be misleading...

Update snippets to meet the latest doc

The snippets were commited 5 years ago and skin options have changed these years.
I would like to see an update according to the latest doc.
In fact, I've collected a list of it at here.
If you decide to use it, make sure to run the process_docs.rb again.

Thanks.

Add scratch test environment

There are some cases where you just want to test something quickly like copy pasting a provided skin to debug it.

General programming languages have something like a REPL but for Rainmeter you have to create a skin in the skins folder and activate it. Basically by activating something like

Tools > Rainmeter > Create Scratch

it generates a random skin identified by something trivial with a minimal running template and cleans it up after you close the tab.

Auto-completion for # variables

For ages the autocompletion of built-in variables was a pain due to # not being part of the auto-completion tokens. A new smart auto-completion system should be able to handle that and detect it should auto-complete with # or without depending on the selected entry and written line.

BarOrientation color problem

Using the default color package: BarOrientation displays with Bar in pink (same color as [Meters/Measures], while Orientation is in the normal yellow, for stuff like X, Y, etc.

Using Sublime 3 and the most recent Rainmeter package.

Enhance first user experience

Currently the user just get a notification that Rainmeter could not be found, but it is better if some dialog or input would pop up where the user could enter the directory paths to the skin and rainmeter installation, if not found.

[Request] Add snytax highlighting to MSIAfterburner.dll Plugin

Hey ya'll, apologies if this is the wrong place to drop this (it's the only link offered through Sublime, so I thought it might still be relevant).

I wanted to put in a request for the addition of syntax highlighting for the MSIAfterburner.dll plugin. An example/usage:

[MeasureGPUTemp]
Measure=Plugin (this works fine)
Plugin=MSIAfterburner.dll
DataSource=GPU temperature

DataSource can call any of the following values, which include the spaces, and are case sensitive:

GPU voltage
Core clock
Shader clock
Memory clock
Framerate
GPU usage
GPU temperature
PCB temperature
Fan speed
Fan tachometer

Pretty much, any data source that the actual MSI Afterburner application can produce and track, the corresponding plugin in Rainmeter can call. Those listed above are the ones I was able to source, and I'm not sure if any of the other, more obscure options would be tracked.

Thanks for reading!

Evaluate if skins can be normal themes

Currently, the Rainmeter Skin enforces own themes probably for Color Coding. I wonder if it is possible to remove that enforcement and thus allow all possible skins out there. Custom color coding could be added dynamically which I already do on the color branch, just more basic.

A very popular skin is currently the Material Design Theme

https://packagecontrol.io/packages/Material Theme

linting for missing meter

If no meter is in the skin and reloading it, skins will be disabled. Hardly desireble. There should be a warning for missing meter.

New mouse click and mouse-over binding to navigate @include

In other IDEs you can generally hover over a class or a referenced entity and navigate directly to the source. In ST3 we already have something similar but not for @Include. Currently, you can only open the file via shortcut or context menu, but this should be more intuitive. What else can you do with an @Include.

Add own snippets

Even though there is a Sublime Text way to do that, the initial work can be scary. Lessening the initial workload could be beneficial

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.