[gedit-list] External-tools plugin requires trailing newline to replace selection
- From: Hugh <hugh salsacardiff com>
- To: gedit-list gnome org
- Subject: [gedit-list] External-tools plugin requires trailing newline to replace selection
- Date: Fri, 31 May 2013 20:43:33 +0100
Sometimes (often) when using a script in the External-tools plugin I
want to replace the selection without an extra trailing newline, bit I
don't think its possible.
For instance, I think the following script should leave the selected
text as it finds it, but instead, the selection is deleted.
-----------------------------------
#!/bin/sh
# [Gedit Tool]
# Input=nothing
# Output=replace-selection
# Name=Test
# Applicability=all
# Save-files=nothing
printf "%s" "$GEDIT_SELECTED_TEXT"
-----------------------------------
If a newline is added to the printf (printf "%s\n"), the selection is
replaced, but the unwanted newline is added.
Does this qualify as a bug? (Gedit 3.6.1 on Debian)
Regards
Hugh
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]