[gedit-plugins] Made shell background and replace also accessible from the module
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Made shell background and replace also accessible from the module
- Date: Sun, 14 Mar 2010 22:52:30 +0000 (UTC)
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><!</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: !! <command>
+def background(entry, argstr):
+ """Run shell command in the background: !& <command>
You can use <b><!</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: !& <command>
+def replace(entry, argstr):
+ """Run shell command and place output in document: !! <command>
You can use <b><!</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]