fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.28k stars 117 forks source link

[Feature request] "nircmd path" option #89

Closed Kristinita closed 7 years ago

Kristinita commented 7 years ago

Request

Add "nircmd path" option for Sublime Text package, so users can custom path to a file nircmd.exe.

Justification

I download nircmd use Chocolatey. This is useful for several reasons.

  1. Quick download: I need only print cinst nircmd -y in terminal.
  2. If I reinstall Windows, I can quick reinstall all my programs.
  3. I can quick update all my Chocolatey programs only use command cup all -y.

But my Chocolatey path for nircmd is E:\Chocolatey\lib\nircmd\tools, not C:\Windows.

Extended behavior

In Sublime Text PreferencesPackage SettingsGhost TextSettings - User → I can add "nircmd_path": "E:\Chocolatey\lib\nircmd\tools" option.

Thanks.

fregante commented 7 years ago

GT does not look for files specifically in C:\Windows but it just expects Windows to know where to find nircmd. Usually this is done via the global PATH, which is essentially a list of directories the shell looks into to find executables.

For Chocolatey, have a look at this: https://github.com/chocolatey/choco/wiki/FeaturesShim or https://www.java.com/en/download/help/path.xml