Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/API-Reference/command/Commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,12 @@ Shows current file in OS file explorer
## NAVIGATE\_OPEN\_IN\_TERMINAL
Shows current file in OS Terminal

**Kind**: global variable
<a name="NAVIGATE_OPEN_IN_INTEGRATED_TERMINAL"></a>

## NAVIGATE\_OPEN\_IN\_INTEGRATED\_TERMINAL
Opens integrated terminal at the selected file/folder path

**Kind**: global variable
<a name="NAVIGATE_OPEN_IN_POWERSHELL"></a>

Expand Down
8 changes: 4 additions & 4 deletions src/document/DocumentCommandHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1757,10 +1757,10 @@ define(function (require, exports, module) {
}

function newPhoenixWindow(cliArgsArray = null, cwd=null) {
// Electron needs outerWidth/outerHeight (includes window chrome).
// Tauri needs innerWidth/innerHeight.
let width = window.__ELECTRON__ ? window.outerWidth : window.innerWidth;
let height = window.__ELECTRON__ ? window.outerHeight : window.innerHeight;
// Both Electron and Tauri need outerWidth/outerHeight (includes window chrome)
// so the new window matches the current window's total size.
let width = (window.__ELECTRON__ || window.__TAURI__) ? window.outerWidth : window.innerWidth;
let height = (window.__ELECTRON__ || window.__TAURI__) ? window.outerHeight : window.innerHeight;
Phoenix.app.openNewPhoenixEditorWindow(width, height, cliArgsArray, cwd);
}

Expand Down
Loading