[gedit-plugins] Made shell background and replace also accessible from the module



commit 8e080fb79bc55f7c2660177eb00a309f9b5e1a22
Author: Jesse van den Kieboom <jesse icecrew nl>
Date:   Sun Mar 14 23:50:22 2010 +0100

    Made shell background and replace also accessible from the module

 plugins/commander/modules/shell.py |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/plugins/commander/modules/shell.py b/plugins/commander/modules/shell.py
index 0c42304..32d3d19 100644
--- a/plugins/commander/modules/shell.py
+++ b/plugins/commander/modules/shell.py
@@ -155,21 +155,21 @@ You can use <b>&lt;!</b> as a special input meaning the current selection or cur
 document."""
 	return _run_command(entry, False, False, argstr)
 
-def _run_replace(entry, argstr):
-	"""Run shell command and place output in document: !! &lt;command&gt;
+def background(entry, argstr):
+	"""Run shell command in the background: !&amp; &lt;command&gt;
 
 You can use <b>&lt;!</b> as a special input meaning the current selection or current
 document."""
-	return _run_command(entry, True, False, argstr)
+	return _run_command(entry, False, True, argstr)
 
-def _run_background(entry, argstr):
-	"""Run shell command in the background: !&amp; &lt;command&gt;
+def replace(entry, argstr):
+	"""Run shell command and place output in document: !! &lt;command&gt;
 
 You can use <b>&lt;!</b> as a special input meaning the current selection or current
 document."""
-	return _run_command(entry, False, True, argstr)
+	return _run_command(entry, True, False, argstr)
 
 locals()['!'] = __default__
-locals()['!!'] = _run_replace
-locals()['!&'] = _run_background
+locals()['!!'] = replace
+locals()['!&'] = background
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]