Skip to content

Loading…

Run entire test file with Cmd-T regardless of cursor position #9

Merged
merged 2 commits into from

2 participants

@pivotal-cloudplanner
  • To accomplish this, we recorded a macro that goes to the top of the file, runs, then moves your cursor back to wherever it was
Matt Parker ... and others added some commits
Matt Parker and Will Read Run entire test file with Cmd-T regardless of cursor position
* To accomplish this, we recorded a macro that goes to the top of the
  file, runs, then moves your cursor back to wherever it was
f662518
@pivotal-cloudplanner pivotal-cloudplanner Magic-F8 for run whole test file macro ed4316a
@moonmaster9000 moonmaster9000 merged commit 6ce847a into pivotal:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 15, 2013
  1. Run entire test file with Cmd-T regardless of cursor position

    Matt Parker and Will Read committed
    * To accomplish this, we recorded a macro that goes to the top of the
      file, runs, then moves your cursor back to wherever it was
Commits on Aug 2, 2013
  1. @pivotal-cloudplanner
This page is out of date. Refresh to see the latest.
Showing with 23 additions and 0 deletions.
  1. +9 −0 README.markdown
  2. +3 −0 keymaps/Pivotal.xml
  3. +11 −0 options/macros.xml
View
9 README.markdown
@@ -12,10 +12,19 @@ To install these keybindings into RubyMine copy the pivotal.xml file to this pat
~/Library/Preferences/RubyMineXX/keymaps/
~~~
+and then copy the options/macros.xml file to this path:
+
+~~~
+~/Library/Preferences/RubyMineXX/options/
+~~~
+
...or you can just run the following command:
+Warning: copying the macros down will simply replace your existing macros file. Merge by hand if that's a problem.
+
~~~
wget --no-check-certificate -O ~/Library/Preferences/RubyMineXX/keymaps/pivotal.xml http://github.com/pivotal/Pivotal-Preferences-RubyMine/raw/master/keymaps/Pivotal.xml
+wget --no-check-certificate -O ~/Library/Preferences/RubyMineXX/options/macros.xml http://github.com/pivotal/Pivotal-Preferences-RubyMine/raw/master/options/macros.xml
~~~
If RubyMine is running you will need to restart before the keybindings will be available.
View
3 keymaps/Pivotal.xml
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<keymap version="1" name="Pivotal" parent="Default for Mac OS X">
+ <action id="Macro.run whole test file">
+ <keyboard-shortcut first-keystroke="control meta alt F8" />
+ </action>
<action id="$Copy">
<keyboard-shortcut first-keystroke="meta C" />
<keyboard-shortcut first-keystroke="meta INSERT" />
View
11 options/macros.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+ <component name="ActionMacroManager">
+ <macro name="run whole test file">
+ <action id="EditorTextStart" />
+ <action id="RunClass" />
+ <action id="Back" />
+ </macro>
+ </component>
+</application>
+
Something went wrong with that request. Please try again.