diff --git a/scripts/install-deps.js b/scripts/install-deps.js index e142c14a..39b5591a 100755 --- a/scripts/install-deps.js +++ b/scripts/install-deps.js @@ -20,3 +20,14 @@ vars.builtinPlugins.forEach(plugin => { sh.exec(`${npx} yarn install`) sh.cd('..') }) + +if (['darwin', 'linux'].includes(process.platform)) { + sh.cd('node_modules') + for (let x of vars.builtinPlugins) { + sh.ln('-fs', '../' + x, x) + } + for (let x of vars.bundledModules) { + sh.ln('-fs', '../app/node_modules/' + x, x) + } + sh.cd('..') +} diff --git a/scripts/vars.js b/scripts/vars.js index 074fc306..a9906299 100755 --- a/scripts/vars.js +++ b/scripts/vars.js @@ -16,5 +16,9 @@ exports.builtinPlugins = [ 'terminus-plugin-manager', 'terminus-ssh', ] +exports.bundledModules = [ + '@angular', + '@ng-bootstrap', +] exports.nativeModules = ['node-pty-tmp', 'font-manager', 'xkeychain'] exports.electronVersion = pkgInfo.devDependencies.electron diff --git a/terminus-terminal/src/components/terminalTab.component.ts b/terminus-terminal/src/components/terminalTab.component.ts index 9af893c6..adc6633d 100644 --- a/terminus-terminal/src/components/terminalTab.component.ts +++ b/terminus-terminal/src/components/terminalTab.component.ts @@ -89,39 +89,39 @@ export class TerminalTabComponent extends BaseTabComponent { return } switch (hotkey) { - case 'copy': - this.hterm.copySelectionToClipboard() - break - case 'clear': - this.clear() - break - case 'zoom-in': - this.zoomIn() - break - case 'zoom-out': - this.zoomOut() - break - case 'reset-zoom': - this.resetZoom() - break - case 'home': - this.sendInput('\x1bOH') - break - case 'end': - this.sendInput('\x1bOF') - break - case 'previous-word': - this.sendInput('\x1bb') - break - case 'next-word': - this.sendInput('\x1bf') - break - case 'delete-previous-word': - this.sendInput('\x1b\x7f') - break - case 'delete-next-word': - this.sendInput('\x1bd') - break + case 'copy': + this.hterm.copySelectionToClipboard() + break + case 'clear': + this.clear() + break + case 'zoom-in': + this.zoomIn() + break + case 'zoom-out': + this.zoomOut() + break + case 'reset-zoom': + this.resetZoom() + break + case 'home': + this.sendInput('\x1bOH') + break + case 'end': + this.sendInput('\x1bOF') + break + case 'previous-word': + this.sendInput('\x1bb') + break + case 'next-word': + this.sendInput('\x1bf') + break + case 'delete-previous-word': + this.sendInput('\x1b\x7f') + break + case 'delete-next-word': + this.sendInput('\x1bd') + break } }) this.bellPlayer = document.createElement('audio') diff --git a/yarn.lock b/yarn.lock index 108d2930..587fc5a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1459,7 +1459,7 @@ electron-to-chromium@^1.2.7: version "1.3.31" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.31.tgz#00d832cba9fe2358652b0c48a8816c8e3a037e9f" -electron@^1.8.4: +electron@1.8.4: version "1.8.4" resolved "https://registry.yarnpkg.com/electron/-/electron-1.8.4.tgz#cca8d0e6889f238f55b414ad224f03e03b226a38" dependencies: