Re: [gedit-list] Fwd: Hello everybody! - External tools and ruby
- From: Jesse van den Kieboom <jessevdk gnome org>
- To: nick da ninja <pangdudu googlemail com>
- Cc: gedit-list <gedit-list gnome org>
- Subject: Re: [gedit-list] Fwd: Hello everybody! - External tools and ruby
- Date: Thu, 25 Jun 2009 20:05:44 +0200
nick da ninja wrote:
So a ruby script could be:
#!/bin/ruby
# Some ruby code
thx, that is essentially what i did. but i used the $GEDIT_SELECTED_TEXT to
build a regexp to search for the matching code in the
$GEDIT_CURRENT_DOCUMENT. My problem is, that the $GEDIT_SELECTED_TEXT
variable has no newlines as i see it (which kind of makes sense if you pass
it to a shell script). However, it would be awesome, to either get the
current selected line numbers and not only the current line, or some sort of
text with escaped newlines.
The text does have newlines, e.g.:
p ENV['GEDIT_SELECTED_TEXT'].split("\n")
Jesse
,nick
------------------------------------------------------------------------
_______________________________________________
gedit-list mailing list
gedit-list gnome org
http://mail.gnome.org/mailman/listinfo/gedit-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]