Skip to content

Commit

Permalink
Merge pull request #186 from sidouglas/master
Browse files Browse the repository at this point in the history
Add IntelliJ IDEA support
  • Loading branch information
dejan authored Apr 12, 2024
2 parents 9304428 + 0e874a6 commit 7ecc156
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 6 additions & 5 deletions rails_panel/assets/javascripts/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ angular.module('RailsPanel', [])
filter('editorify', function() {
return function(filename, line) {
var mapping = {
mvim: "mvim://open?url=file://%s&line=%d&column=%d",
mate: "txmt://open?url=file://%s&line=%d&column=%d",
subl: "subl://open?url=file://%s&line=%d&column=%d",
sblm: "sblm:///%s",
emacs: "emacs://open?url=file://%s&line=%d&column=%d",
atom: "atm://open?url=file://%s&line=%d&column=%d",
emacs: "emacs://open?url=file://%s&line=%d&column=%d",
idea: "idea://open?file=%s&line=%d",
mate: "txmt://open?url=file://%s&line=%d&column=%d",
mine: "x-mine://open?file=%s&line=%d",
mvim: "mvim://open?url=file://%s&line=%d&column=%d",
sblm: "sblm:///%s",
subl: "subl://open?url=file://%s&line=%d&column=%d",
vscode: "vscode://file%s:%d"
}
var editor = localStorage.getItem("railspanel.editor");
Expand Down
4 changes: 4 additions & 0 deletions rails_panel/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ <h2>
(<a href="https://github.com/WizardOfOgz/atom-handler" target="_blank">requires atom-handler</a>)
</small>
</label>
<label class="radio">
<input type="radio" name="storage.editor" value="idea" ng-model="editor">
IntelliJ IDEA
</label>
<label class="radio">
<input type="radio" name="storage.editor" value="mine" ng-model="editor">
RubyMine
Expand Down

0 comments on commit 7ecc156

Please sign in to comment.