Couple questions

I'm using RubyMine 1.1.1 on OS X

Many keyboard shortcuts don't work for me. I am using the "Textmate" keymap.  In an rspec file, for example, I expect "command-r" to run the whole file and "command-shift-r" to run the specific spec I'm currently in, but neither seem to work for me. Two questions:
A. Am I missing something?
B. Is there a "Cheatsheet" of keyboard shortcuts somewhere?


Is there a way to rename a file?

Is there anyway to re-order tabs at the top of the editor?

When I run the full "rake spec" suite, is there a way, in the visual runner, to run only a single spec (one that failed) again in a new tab in the run drawer? I have accidently had multiple tabs in the "run" drawer, but I can't seem to do it when I want to.

Is there a shortcut to reveal the current file in the file browser?

I want to create a live template so that when I type "%-tab" it inserts "<% %>" and when I insert "%=-tab" it inserts "<%= %>". However, it doesn't seem that you can use % in the shortcut. Is there a way around that?

Is there a way to scope the abbreviations to a context? "if" in ruby should be different than "if" in rhtml. But I can't seem to do that.


Thanks!

1 comment
Comment actions Permalink

Hi,

Many keyboard shortcuts don't work for me. I am using the "Textmate" keymap.  In an rspec file, for example, I expect "command-r" to run the whole file and "command-shift-r" to run the specific spec I'm currently in, but neither seem to work for me. Two questions:
A. Am I missing something?
B. Is there a "Cheatsheet" of keyboard shortcuts somewhere?


We have pdf cheatsheets only for our default keymaps.  RubyMine usually show shortcuts near action name in main menu or using tool tip for buttons.
Picture 26.png
Picture 27.png

Command+R  executes current active run configuration
Picture 29.png
and ^+Shift+F10 - current file under cursor. Your are right we forgot to remap "Run Context Configuration" action to Command+Shift+R and the same problem with debug shortcut.
I've filed an isseu http://www.jetbrains.net/jira/browse/RUBY-4484. If you now about other bugs in our TextMate keymap please write them in comments for the issue.
Picture 28.png
As a workaround go to File | Settings | Keymap, save bundled TextMate keymap with another name. Now you can remap any shortcut.
Picture 30.png


Is there a way to rename a file?

Yes, Refactor | Rename or Shift+F6

Is there anyway to re-order tabs at the top of the editor?

Yes, File | Settings | Editor | Editor Tabs, select "Show tabs in single line", now you can re-order them using mouse.
Also I recommend you to try "TabSwitch" plugin or use our View | Recent Files action

When I run the full "rake spec" suite, is there a way, in the visual runner, to run only a single spec (one that failed) again in a new tab in the run drawer? I have accidently had multiple tabs in the "run" drawer, but I can't seem to do it when I want to.


Yes, using context menu, see screenshot
Picture 31.png


Is there a shortcut to reveal the current file in the file browser?



No. But RubyMine allows to open file from editor in Finder using mouse
Picture 37.png

Or you can copy full path of a file.
Picture 35.png


I want to create a live template so that when I type "%-tab" it inserts "<% %>" and when I insert "%=-tab" it inserts "<%= %>". However, it doesn't seem that you can use % in the shortcut. Is there a way around that?


Unfortunately it isn't possible yet. For <%= %> you can use Command+Shift+. or type "<" and press ^+space (in Erb)


Is there a way to scope the abbreviations to a context? "if" in ruby should be different than "if" in rhtml. But I can't seem to do that.


Yes, see "Context" box in live template details.
Picture 34.png

0

Please sign in to leave a comment.