Skip to content

Open Paths in Rainmeter Files

thatsIch edited this page Jan 25, 2017 · 1 revision

Open Paths

Ever wanted to open that include file and cursed because you had to navigate to it in the Widows Explorer before you can open it? Try placing your caret on the line and select "Open Selected Paths..." from the context menu, or hit ctrl+alt+o.

This command lets you open paths to text files in Sublime, folder paths in the Windows Explorer, other files in their default application and URLs in your browser. It will expand some Rainmeter built-in variables and Windows environment variables and try a number of cases, one after the other, to open what you have selected:

  1. If you have selected a portion of text, it will try to open exactly that portion
  2. If your selection is inside a quoted string, it will try to expand the selection to the enclosing quotes and open that portion
  3. If your selection is enclosed by spaces, it will try to open the text between those spaces
  4. If the line is a "key=value" line it will try to open everything after the "="
  5. If all else fails, it will try to open the whole line (after removing any leading semicolons)

You can select nothing and only place the caret somewhere into the line, in which case only 2.-5. are relevant. If you have selected multiple lines, they are all treated separately (letting you open multiple include files at once).

The following variables are expanded before trying to open anything:

  • #CURRENTPATH#
  • #CURRENTFILE#
  • #CURRENTCONFIG#
  • #ROOTCONFIGPATH#
  • #@#
  • #SKINSPATH#
  • #PROGRAMPATH#
  • #PROGRAMDRIVE#
  • #SETTINGSPATH#
  • #PLUGINSPATH#
  • #ADDONSPATH#
  • Windows environment variables (enclosed in "%")

If you want to include or exclude certain file extensions from being opened with Sublime instead of the system default, see the default settings file for instructions.

Clone this wiki locally