From 9c764142dc6da5f47fd9ddb0b694304e55b376f9 Mon Sep 17 00:00:00 2001 From: drewprice Date: Thu, 23 Feb 2017 15:24:15 -0500 Subject: [PATCH] Add clear terminal item to contextmenu --- lib/learn-ide.coffee | 1 + menus/learn-ide.cson | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib/learn-ide.coffee b/lib/learn-ide.coffee index eda152e..a3e0709 100644 --- a/lib/learn-ide.coffee +++ b/lib/learn-ide.coffee @@ -102,6 +102,7 @@ module.exports = @subscriptions.add atom.commands.add '.terminal', 'core:copy': => @termView.copyText() 'core:paste': => @termView.pasteText() + 'learn-ide:clear-terminal': => @term.send(' ') atom.config.onDidChange "#{name}.terminalFontColor", ({newValue}) => @termView.updateFontColor(newValue) diff --git a/menus/learn-ide.cson b/menus/learn-ide.cson index 6da6bb6..2de24aa 100644 --- a/menus/learn-ide.cson +++ b/menus/learn-ide.cson @@ -14,6 +14,10 @@ 'label': 'Paste' 'command': 'core:paste' } + { + 'label': 'Clear terminal' + 'command': 'learn-ide:clear-terminal' + } { 'label': 'Hide Learn IDE Terminal' 'command': 'learn-ide:toggle-terminal'