Skip to content

Commit

Permalink
Merge pull request #28 from onivim/bryphe/api/replace-file-option
Browse files Browse the repository at this point in the history
Add 'ExistingTab' option for openFile
  • Loading branch information
bryphe authored Feb 27, 2018
2 parents 52d15ce + 1271273 commit f594c04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oni-api",
"version": "0.0.36",
"version": "0.0.37",
"description": "Oni's API layer",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ export enum FileOpenMode {

// Open file in a new tab, in the active editor
NewTab,

// Open file in existing tab. Replaces the currently
// active file in the tab.
ExistingTab,
}

export interface FileOpenOptions {
Expand Down

0 comments on commit f594c04

Please sign in to comment.