POV-Ray : Newsgroups : povray.general : selecting several thousand lines in pov file Server Time
4 Aug 2024 04:16:40 EDT (-0400)
  selecting several thousand lines in pov file (Message 21 to 30 of 35)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 5 Messages >>>
From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 08:57:18
Message: <3f685a2e@news.povray.org>
ABX, Thorsten,
OK, OK, I get your point. I was just wishing that there would be a *really
simple* way to do it, such as "select text between lines 2000 and 10000".
Maybe it would be something for future development?
Steve

"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3f685571$1@news.povray.org...
> In article <3f6853a2@news.povray.org> , "Steve Shelby"
<ssh### [at] rexnetnet>
> wrote:
>
> > I tried what you suggested, and it deletes everything else in the pov
file
> > except for lines 8605 through 17361. Not exactly what I had in mind.
>
> But now you can select *everything* and copy it.  Then undo your actions
and
> you get what you want.
>
> Really, I don't see why you are so inflexible with this, after all, the
> "problem" you have is exactly the same in every other GUI text editor.
And
> you got tons of suggestions how to do what you want easily.  If you can
> describe how you think this should work without you doing anything, then
by
> all means, I think we all would like to know!  If not, then just use one
of
> the many methods suggested and live happily ever after :-)
>
>     Thorsten
>
> ____________________________________________________
> Thorsten Froehlich, Duisburg, Germany
> e-mail: tho### [at] trfde
>
> Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: ABX
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 09:15:18
Message: <01ngmvkqolklgd7l9base9ceeqc1q2cdjg@4ax.com>
On Wed, 17 Sep 2003 07:56:44 -0500, "Steve Shelby" <ssh### [at] rexnetnet> wrote:
> ABX, Thorsten,
> OK, OK, I get your point. I was just wishing that there would be a *really
> simple*

I'm sure you are refering to complexity of substracting line numbers. Just
replace order of cuting parts and then no math is necessary ;-)

> Maybe it would be something for future development?

Seriously, how long do you use POV-Ray? How many times you needed it earlier?
I work with text editors for more than 10 hours a day for years and I do not
remember if I needed it at all. But as you see there is many workarounds I
could apply for my needs my favorite if I wish...

ABX


Post a reply to this message

From: Hugo Asm
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 12:35:01
Message: <3f688d35$1@news.povray.org>
> Go to the first line of the mesh file. Place a bookmark (Ctrl-F2). Go
> to the opening brace of the mesh and find the matching closing brace
> (Ctrl-] I think). Place a bookmark there on the line below the closing
> brace. Go to the first bookmark (Shift-F2), then click and hold the
> mouse button at the beginning of the line. Now go to the second
> bookmark (F2) without releasing the mouse button. Voila.
>
> Just tried it BTW. It works :)

It doesn't work for me... But it would be nice if it worked. Sometimes I
have the same problem as described by Steve Shelby.

Regards,
Hugo


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 14:11:05
Message: <3f68a3b9$1@news.povray.org>
I found it! Not being one to accept defeat easily, I did a Google search for
"selecting text" and found this: Put the curser at the beginning of the
first line. Holding down the shift key, use the scroll bar to move down to
the last line to select. Then simply click below the last line, while still
holding down the shift key, and, voila! The desired number of lines is
selected. I tried it, and it works. It takes about five seconds. This is the
*easy* solution I was looking for.;~^}>
Steve

"Steve Shelby" <ssh### [at] rexnetnet> wrote in message
news:3f670e1a$1@news.povray.org...
> Hi,
> Is there an easier way to do this? I have about 9,000 lines, one of
several
> mesh2 objects, in a pov file, that I want to select in order to copy and
> paste to another pov file, which also contains several mesh2 objects. The
> only would I know to do this is to start selecting and scroll, and scroll,
> and scroll.......and scroll until an eternity later I finally have the
whole
> thing selected. It seems like one ought to be able to tell Povray to
"select
> from line 8605 to line 17361" and it would be done, but I can't find any
way
> to do that, nor can I find anything in the documentation about it. Am I
> stuck doing it the hard way?
> Steve Shelby
>
>


Post a reply to this message

From: ABX
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 14:19:27
Message: <n69hmv4euqoaat16jsrl643t88v5d2d5a5@4ax.com>
On Wed, 17 Sep 2003 13:11:03 -0500, "Steve Shelby" <ssh### [at] rexnetnet> wrote:
> I found it! Not being one to accept defeat easily, I did a Google search for
> "selecting text" and found this: Put the curser at the beginning of the
> first line. Holding down the shift key, use the scroll bar to move down to
> the last line to select. Then simply click below the last line, while still
> holding down the shift key, and, voila! The desired number of lines is
> selected. I tried it, and it works. It takes about five seconds. This is the
> *easy* solution I was looking for.;~^}>

Huh ? In what way this is simpler than the method Steve Martin proposed to you
in first answer of this thread ? In his method you did exactly the same except
pressing Shift once during final click instead of holding it down for whole
five seconds.

ABX


Post a reply to this message

From: Warp
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 14:36:13
Message: <3f68a99d@news.povray.org>
Steve Shelby <ssh### [at] rexnetnet> wrote:
> Warp,
> It is not possible to highlight text and use the scrollbar at the same time.
> Steve

  Read the original instructions:

  1. Click on the starting place, where you want to start to select.
  2. Go to the ending place, ie the last line you want to select (you
     can use the scrollbar to go there).
  3. Shift-click on this ending place.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 17 Sep 2003 18:09:24
Message: <3f68db94$1@news.povray.org>
ABX,
You're right. I must have read Steve Martin's Post too quickly to understand
it correctly. Please accept my Appologies, everyone (especially Steve
Martin), for being so obtuse.
Steve

"ABX" <abx### [at] abxartpl> wrote in message
news:n69hmv4euqoaat16jsrl643t88v5d2d5a5@4ax.com...
> On Wed, 17 Sep 2003 13:11:03 -0500, "Steve Shelby" <ssh### [at] rexnetnet>
wrote:
> > I found it! Not being one to accept defeat easily, I did a Google search
for
> > "selecting text" and found this: Put the curser at the beginning of the
> > first line. Holding down the shift key, use the scroll bar to move down
to
> > the last line to select. Then simply click below the last line, while
still
> > holding down the shift key, and, voila! The desired number of lines is
> > selected. I tried it, and it works. It takes about five seconds. This is
the
> > *easy* solution I was looking for.;~^}>
>
> Huh ? In what way this is simpler than the method Steve Martin proposed to
you
> in first answer of this thread ? In his method you did exactly the same
except
> pressing Shift once during final click instead of holding it down for
whole
> five seconds.
>
> ABX


Post a reply to this message

From: Hugo Asm
Subject: Re: selecting several thousand lines in pov file
Date: 18 Sep 2003 04:31:46
Message: <3f696d72@news.povray.org>
That solution isn't what I'm looking for. When I have very big files (mesh2)
I can't rely on the scrollbar to find the line I want. It's not accurate
enough. Finding (and selecting) the first line is easy - usually I use
'search' for an opening brace. But finding the next closing brace is not
easy. It's "hidden" somewhere in the mess (mesh) and therefore, I end up
using the arrow keys for several minutes to select the right set of lines..

No complaining though.. but you brought up the subject.

Regards,
Hugo


Post a reply to this message

From: Steve Shelby
Subject: Re: selecting several thousand lines in pov file
Date: 18 Sep 2003 08:51:39
Message: <3f69aa5b$1@news.povray.org>
Hugo,
Try this: Click in front of the first bracket, then go to Search and click
Match Brace, or simply click ctrl+], and it will go to the last bracket of
the mesh. At the bottom of the window there is a box that tells you the line
number, e.g., L:17361. Remember that number. Now go back to the beginning of
the file and click in front of the first line. Now, when you click on the
scrollbar, notice that a box will appear at the middle right of the screen
with the line number in it. As you pull the scrollbar down, the number goes
up. You should be able to get within a hundred or so of where you want to
be, and then you can use the up or down arrow if you need to. I just tried
it and found that it's not hard to get the end of the mesh right within view
by looking at the scrolling page number while using the scrollbar. With a
little practice it becomes a very easy task.
Steve

"Hugo Asm" <hua### [at] post3teledk> wrote in message
news:3f696d72@news.povray.org...
> That solution isn't what I'm looking for. When I have very big files
(mesh2)
> I can't rely on the scrollbar to find the line I want. It's not accurate
> enough. Finding (and selecting) the first line is easy - usually I use
> 'search' for an opening brace. But finding the next closing brace is not
> easy. It's "hidden" somewhere in the mess (mesh) and therefore, I end up
> using the arrow keys for several minutes to select the right set of
lines..
>
> No complaining though.. but you brought up the subject.
>
> Regards,
> Hugo
>
>


Post a reply to this message

From: Remco de Korte
Subject: Re: selecting several thousand lines in pov file
Date: 18 Sep 2003 18:24:07
Message: <3F6A3022.57C52746@onwijs.com>
This will probably not answer the question OR have been mentioned
several times before but having read this thread today I realized I have
to do this quite often. I never thought about it until today. Here's
what I do: move the cursor to the start of the selection. Hold Shift
down and move the cursor down. This can be done by simply scrolling with
the down key, scrolling faster with the PgDn key or jumping to the end
of the file with Ctrl-PgDn. When you're at the end of the selection
release the Shift and presto. I guess the relevant point here is that
you don't use the mouse (prevents RSI too).

Perhaps we need a tutorial on scrolling or should this just be part of
the POVRay documentation?

Cheers!

Remco


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 5 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.