From 7cc5abac030356f46672a9dabc58c0d04298d08c Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 14 Dec 2016 02:59:08 +0400 Subject: [PATCH] allow cmd-shift-l on terminal --- package.json | 2 +- plugins/c9.ide.keys/commands.js | 1 + plugins/c9.ide.terminal/terminal.js | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 40a651bb..075df5e3 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "c9.ide.ace.split": "#0ae0151c78", "c9.ide.ace.statusbar": "#14a992e377", "c9.ide.ace.stripws": "#042a9936e3", - "c9.ide.behaviors": "#1e5edce067", + "c9.ide.behaviors": "#9a875b026e", "c9.ide.closeconfirmation": "#cee4674141", "c9.ide.configuration": "#a936df26bb", "c9.ide.dialog.wizard": "#7667ec79a8", diff --git a/plugins/c9.ide.keys/commands.js b/plugins/c9.ide.keys/commands.js index de94ce01..819870db 100644 --- a/plugins/c9.ide.keys/commands.js +++ b/plugins/c9.ide.keys/commands.js @@ -377,6 +377,7 @@ define(function(require, exports, module) { commands.tab8, commands.tab9, commands.tab0, + commands.revealtab, commands.reopenLastTab, commands.gotopaneleft, commands.gotopaneright, diff --git a/plugins/c9.ide.terminal/terminal.js b/plugins/c9.ide.terminal/terminal.js index d6c3c164..74537599 100644 --- a/plugins/c9.ide.terminal/terminal.js +++ b/plugins/c9.ide.terminal/terminal.js @@ -1313,6 +1313,12 @@ define(function(require, exports, module) { * @param {String} message the message to write to the terminal. */ write: write, + + getPathAsync: function(callback) { + currentSession.getStatus({}, function(err, result) { + callback(err, result && util.normalizePath(result.path)); + }); + }, // toggleMouse : toggleMouse, // toggleStatus : toggleStatus,