D.G. | 1 Oct 09:41
Picon

Re: PATCH: use pipe() instead of a temp file


It is excellent that the work you are doing will make the output panel
more robust.  I am using a workaround to allow myself to get input/
output with an external terminal and I send the stderr from the
program to SciTE so I get the yellow (x) next to lines when you click
on errors feature.  I'm replying to you about this because I was
wondering if my workaround would be affected by your patch. Don't mind
the extra comments please as they are for anybody else who might come
across this.

Right now I do the following for a language such as ruby:

I change the go command in Options->Edit properties->Open
ruby.properties and near the bottom I change the line:
---------
if PLAT_GTK
	command.go.*.rb=ruby $(FileNameExt)
---------

to:
=-=-=-=-=-=-=--=
if PLAT_GTK
command.go.*.rb=xterm -hold -e /usr/bin/sciteredirection_for_ruby.sh $
(FileNameExt)
-=-=-=-=-=-=-=-=

I then run the following shell script saved(and chmod 755) to /usr/bin/
sciteredirection_for_ruby.sh:

=+=+=+=+=+=+=+=+=+=+
(Continue reading)

Sergey Didenko | 1 Oct 13:01
Picon

block selection bug: can't go Down through a wrapped line (SciTE 2.01)


Hi,

is it a known bug in SciTE 2.01 that block selection can NOT go down
through a wrapped line ( Shift + Alt + Down) but goes Up ok ( also
through a wrapped line)?

If not, I'll post it to the bug tracker.

Regards, Sergey.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Oliver Kiddle | 1 Oct 13:19
Picon

Re: PATCH: use pipe() instead of a temp file


"D.G." wrote:
> It is excellent that the work you are doing will make the output panel
> more robust.  I am using a workaround to allow myself to get input/
> output with an external terminal and I send the stderr from the
> program to SciTE so I get the yellow (x) next to lines when you click
> on errors feature.  I'm replying to you about this because I was
> wondering if my workaround would be affected by your patch. Don't mind
> the extra comments please as they are for anybody else who might come
> across this.

My patch wouldn't affect your workaround. /proc/$PPID/fd/2 would still
be there, it'll just be a pipe instead of a named pipe.

That's a nice trick of yours.
You can actually get rid of your external shell script. The following
works for perl:

  command.go.*.pl=xterm -hold -e sh -c "exec perl $(FileNameExt) 2>/
proc/$$/fd/
2"

The intermediate sh in there is needed for the redirection because
xterm doesn't do that. Anyone know if a perl/ruby option can be used
to open the file and avoid the extra shell? Note that $$ is expanded
by the earlier shell (the parent of xterm) so the use of double quotes
(as opposed to single) is important. Using exec is an optimisation
that
avoids a fork. Some shells such as zsh will do that automatically. You
can't exec the xterm and use $PPID, mainly because xterm is setuid
(Continue reading)

Neil Hodgson | 1 Oct 13:28
Picon

Re: block selection bug: can't go Down through a wrapped line (SciTE 2.01)


Sergey Didenko:

> is it a known bug in SciTE 2.01 that block selection can NOT go down
> through a wrapped line ( Shift + Alt + Down) but goes Up ok ( also
> through a wrapped line)?

   Rectangular selection does not work well with wrapped text.

> If not, I'll post it to the bug tracker.

   OK.

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Arslan | 8 Oct 10:26
Picon

Highlight all occurrences of selected text


There is a feature in Notepad++ which I quite miss from my move
Windows->Linux, this is the ability to select a piece of text in a
document and then the editor automatically highlights all occurrences
of the string. Is there any kind of similar functionality in SciTE?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Philippe Lhoste | 8 Oct 11:21
Picon

Re: Highlight all occurrences of selected text


On 08/10/2009 10:26, Arslan wrote:
> There is a feature in Notepad++ which I quite miss from my move
> Windows->Linux, this is the ability to select a piece of text in a
> document and then the editor automatically highlights all occurrences
> of the string. Is there any kind of similar functionality in SciTE?

A close approximation is the Mark All button in the Find dialog. It puts bookmarks on each 
line containing the searched string, so a simple F2 goes to each occurrence.

I must admit I start to get used to the feature (highlight strings, show highlights near 
scroll bar, navigate between highlights) in Eclipse.
Shouldn't be too hard to implement, just need somebody to do the job...

--

-- 
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

mozers | 8 Oct 12:47
Picon

Re: Annoying detection of missing file


Saturday, September 26, 2009, 1:34:26 PM, Neil wrote:

>    OK, I have reverted the change in CVS.

Andy Shevchenko's patch eliminated real annoying bug SciTE.
Philippe Lhoste's remark is also true.
But why did you remove the hotfix and brought back the old bug? 
Enough to correct a little the line 632 from SciTEIO.cxx

if ((newModTime! = 0) && (newModTime! = CurrentBuffer ()-> fileModTime)) {

I - not a programmer. But my patch works well.

--

-- 
mozers
<http://scite.net.ru>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Neil Hodgson | 9 Oct 05:01
Picon

Re: Annoying detection of missing file


mozers:

> Andy Shevchenko's patch eliminated real annoying bug SciTE.
> Philippe Lhoste's remark is also true.
> But why did you remove the hotfix and brought back the old bug?

   Because it bricked SciTE.

> Enough to correct a little the line 632 from SciTEIO.cxx
>
> if ((newModTime! = 0) && (newModTime! = CurrentBuffer ()-> fileModTime)) {
>
> I - not a programmer. But my patch works well.

   Worked OK for me so committed.

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Arslan | 9 Oct 09:59
Picon

Re: Highlight all occurrences of selected text


I can take a look if you like. I will download the code and take a
look at it this weekend.

On Oct 8, 10:21 am, Philippe Lhoste <Phi...@GMX.net> wrote:
> On 08/10/2009 10:26, Arslan wrote:
>
> > There is a feature in Notepad++ which I quite miss from my move
> > Windows->Linux, this is the ability to select a piece of text in a
> > document and then the editor automatically highlights all occurrences
> > of the string. Is there any kind of similar functionality in SciTE?
>
> A close approximation is the Mark All button in the Find dialog. It puts bookmarks on each
> line containing the searched string, so a simple F2 goes to each occurrence.
>
> I must admit I start to get used to the feature (highlight strings, show highlights near
> scroll bar, navigate between highlights) in Eclipse.
> Shouldn't be too hard to implement, just need somebody to do the job...
>
> --
> Philippe Lhoste
> --  (near) Paris -- France
> --  http://Phi.Lho.free.fr
> --  --  --  --  --  --  --  --  --  --  --  --  --  --
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---
(Continue reading)

mozers | 9 Oct 19:58
Picon

Re: Annoying detection of missing file

Friday, October 9, 2009, 7:01:50 AM, Neil wrote:

>> if ((newModTime! = 0) && (newModTime! = CurrentBuffer ()-> fileModTime)) {
>    Worked OK for me so committed.

OK. But there is another problem.
SciTE does not notice if the file is removed, moved or renamed by other program.
That was before. My patch does not change this behavior. 
Attached patch fixes a problem (Author - neo4max)

--

-- 
mozers
<http://scite.net.ru>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment (src.patch): application/octet-stream, 2601 bytes

Gmane