Skip to content

Commit

Permalink
Opt-click include declarations working
Browse files Browse the repository at this point in the history
  • Loading branch information
joethephish committed May 29, 2016
1 parent a6b0354 commit b887b2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

## SOON

* Enable opt-click INCLUDE declarations

* Only write out ink files that have changed for compilation

* Save v.s. save all for project (currently it's inconsistent and broken - only saves one file and not necessarily the right one)
Expand Down
5 changes: 4 additions & 1 deletion app/renderer/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ EditorView.setEvents({
}
},
"jumpToInclude": (includePath) => {
alert("Jumping to INCLUDEs not yet supported! "+includePath);
var includeInkFile = InkProject.currentProject.inkFileWithRelativePath(includePath);
if( includeInkFile ) {
InkProject.currentProject.openInkFile(includeInkFile);
}
}
});

Expand Down

0 comments on commit b887b2d

Please sign in to comment.