Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #65 from professor/adds_gogland
Browse files Browse the repository at this point in the history
add Gogland ide prefs
  • Loading branch information
moonmaster9000 committed Jun 6, 2017
2 parents 5fa951a + 4a54c0f commit 1a595c5
Show file tree
Hide file tree
Showing 11 changed files with 75 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Then, run the following commands:
git clone https://github.com/pivotal/pivotal_ide_prefs
cd pivotal_ide_prefs
cli/bin/ide_prefs install --ide=intellij
# ide flag can be any of [rubymine,intellij,intellijcommunity,webstorm,androidstudio,appcode,clion,pycharm]
# ide flag can be any of [rubymine,intellij,intellijcommunity,webstorm,androidstudio,appcode,clion,gogland,pycharm]
```

This will install the preferences into your IDE of choice; it will default to installing preferences into the latest version of the IDE installed on your machine; if no IDE is installed on your machine, then it will install into the "default" version configured in pivotal_ide_prefs. If you want to find the default version for your IDE, look in `cli/lib/cli/ide/<IDE>_user_pref_dir.rb`.
Expand All @@ -55,7 +55,7 @@ Then open a terminal and run the following commands:

```sh
cd /path/to/your/pivotal_ide_prefs/cli
bin/ide_prefs uninstall --ide=[rubymine,intellij,intellijcommunity,androidstudio,appcode,clion,pycharm]
bin/ide_prefs uninstall --ide=[rubymine,intellij,intellijcommunity,androidstudio,appcode,clion,gogland,pycharm]
```

## Contributing New Preferences
Expand Down
4 changes: 2 additions & 2 deletions cli/bin/ide_prefs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

opts.on(
"--ide=IDE",
["webstorm", "intellij", "intellijcommunity", "rubymine", "appcode", "androidstudio", "clion", "pycharm"],
"webstorm, intellij, intellijcommunity, rubymine, appcode, androidstudio", "clion", "pycharm"
["webstorm", "intellij", "intellijcommunity", "rubymine", "appcode", "androidstudio", "clion", "pycharm", "gogland"],
"webstorm, intellij, intellijcommunity, rubymine, appcode, androidstudio", "clion", "pycharm", "gogland"
) do |ide|
repo_config_options[:user_prefs_repo_location] = Module.const_get("Cli::Ide::#{ide.capitalize}UserPrefDir").new.path
repo_config_options[:ide_name] = ide
Expand Down
15 changes: 15 additions & 0 deletions cli/lib/cli/ide/gogland_user_pref_dir.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require "cli/ide/jet_brains_ide_user_pref_dir"

module Cli
module Ide
class GoglandUserPrefDir < JetBrainsIdeUserPrefDir
def ide_pref_dir_name_without_version
"Gogland"
end

def default_ide_pref_dir_version
"1.0"
end
end
end
end
1 change: 1 addition & 0 deletions pref_sources/Gogland/keymaps/Pivotal Common.xml
1 change: 1 addition & 0 deletions pref_sources/Gogland/keymaps/Pivotal Gogland.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<keymap version="1" name="Pivotal Gogland" parent="Pivotal Common" />
7 changes: 7 additions & 0 deletions pref_sources/Gogland/options/code.style.schemes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<application>
<component name="CodeStyleSchemeSettings">
<option name="CURRENT_SCHEME_NAME" value="Pivotal" />
</component>
</application>

5 changes: 5 additions & 0 deletions pref_sources/Gogland/options/colors.scheme.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<application>
<component name="EditorColorsManagerImpl">
<global_color_scheme name="Darcula" />
</component>
</application>
10 changes: 10 additions & 0 deletions pref_sources/Gogland/options/editor.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<application>
<component name="EditorSettings">
<option name="IS_ENSURE_NEWLINE_AT_EOF" value="true" />
<option name="IS_DND_ENABLED" value="false" />
</component>
<component name="SqlEditorOptions">
<option name="concatenateStringsOnEnter" value="true" />
<option name="qualificationType" value="On collisions" />
</component>
</application>
9 changes: 9 additions & 0 deletions pref_sources/Gogland/options/ide.general.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<application>
<component name="GeneralSettings">
<option name="confirmExit" value="false" />
<option name="showTipsOnStartup" value="false" />
</component>
<component name="Registry">
<entry key="ide.firstStartup" value="false" />
</component>
</application>
7 changes: 7 additions & 0 deletions pref_sources/Gogland/options/keymap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<application>
<component name="KeymapManager">
<active_keymap name="Pivotal Gogland" />
</component>
</application>

16 changes: 16 additions & 0 deletions pref_sources/Gogland/templates/ginkgo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<templateSet group="ginkgo">
<template name="Cont" value="Context(&quot;$1$&quot;, func() {&#10; $END$&#10;})" description="Ginkgo Context" toReformat="true" toShortenFQNames="true">
<variable name="1" expression="" defaultValue="" alwaysStopAt="true" />
</template>
<template name="It" value="It(&quot;$1$&quot;, func() {&#10; $END$&#10;})" description="Ginkgo it definition" toReformat="true" toShortenFQNames="true">
<variable name="1" expression="" defaultValue="" alwaysStopAt="true" />
</template>
<template name="Desc" value="Describe(&quot;$1$&quot;, func() {&#10; $END$&#10;})" description="Ginkgo Describe" toReformat="true" toShortenFQNames="true">
<variable name="1" expression="" defaultValue="" alwaysStopAt="true" />
</template>
<template name="Bef" value="BeforeEach(func() {&#10; $END$&#10;})" description="Ginkgo BeforeEach" toReformat="true" toShortenFQNames="true" />
<template name="Aft" value="AfterEach(func() {&#10; $END$&#10;})" description="Ginkgo AfterEach" toReformat="true" toShortenFQNames="true" />
<template name="f" value="func($START$) {&#10; $END$&#10;}" description="anonymous function" toReformat="true" toShortenFQNames="true">
<variable name="START" expression="" defaultValue="" alwaysStopAt="true" />
</template>
</templateSet>

0 comments on commit 1a595c5

Please sign in to comment.