Skip to content

Commit 7ecc156

Browse files
authored
Merge pull request #186 from sidouglas/master
Add IntelliJ IDEA support
2 parents 9304428 + 0e874a6 commit 7ecc156

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

rails_panel/assets/javascripts/filters.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ angular.module('RailsPanel', [])
99
filter('editorify', function() {
1010
return function(filename, line) {
1111
var mapping = {
12-
mvim: "mvim://open?url=file://%s&line=%d&column=%d",
13-
mate: "txmt://open?url=file://%s&line=%d&column=%d",
14-
subl: "subl://open?url=file://%s&line=%d&column=%d",
15-
sblm: "sblm:///%s",
16-
emacs: "emacs://open?url=file://%s&line=%d&column=%d",
1712
atom: "atm://open?url=file://%s&line=%d&column=%d",
13+
emacs: "emacs://open?url=file://%s&line=%d&column=%d",
14+
idea: "idea://open?file=%s&line=%d",
15+
mate: "txmt://open?url=file://%s&line=%d&column=%d",
1816
mine: "x-mine://open?file=%s&line=%d",
17+
mvim: "mvim://open?url=file://%s&line=%d&column=%d",
18+
sblm: "sblm:///%s",
19+
subl: "subl://open?url=file://%s&line=%d&column=%d",
1920
vscode: "vscode://file%s:%d"
2021
}
2122
var editor = localStorage.getItem("railspanel.editor");

rails_panel/options.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ <h2>
5151
(<a href="https://github.com/WizardOfOgz/atom-handler" target="_blank">requires atom-handler</a>)
5252
</small>
5353
</label>
54+
<label class="radio">
55+
<input type="radio" name="storage.editor" value="idea" ng-model="editor">
56+
IntelliJ IDEA
57+
</label>
5458
<label class="radio">
5559
<input type="radio" name="storage.editor" value="mine" ng-model="editor">
5660
RubyMine

0 commit comments

Comments
 (0)