POV-Ray : Newsgroups : povray.windows : Did you know... Server Time
22 Dec 2024 12:30:07 EST (-0500)
  Did you know... (Message 1 to 8 of 8)  
From: Jan Dvorak
Subject: Did you know...
Date: 19 Dec 2007 19:04:48
Message: <4769b1a0@news.povray.org>
that POVray editor had a netbeans-like auto-completion? When you press 
ctrl-space a list of keywords is displayed. It doesn't work for 
variables, however.


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Did you know...
Date: 19 Dec 2007 19:15:37
Message: <4769b429$1@news.povray.org>

> that POVray editor had a netbeans-like auto-completion? When you press 
> ctrl-space a list of keywords is displayed. It doesn't work for 
> variables, however.

Fortunately it's not as slow as netbeans to show the completion list.

By the way, you can use the 'tab' key too.


Post a reply to this message

From: Jan Dvorak
Subject: Re: Did you know...
Date: 19 Dec 2007 19:37:38
Message: <4769b952$1@news.povray.org>
Nicolas Alvarez napsal(a):

>> that POVray editor had a netbeans-like auto-completion? When you press 
>> ctrl-space a list of keywords is displayed. It doesn't work for 
>> variables, however.
> 
> Fortunately it's not as slow as netbeans to show the completion list.
> 
> By the way, you can use the 'tab' key too.
Netbeans isn't THAT slow. By the way, I like the "only show imported 
classes in the completion list" netbeans 6.0 feature.


Post a reply to this message

From: nemesis
Subject: Re: Did you know...
Date: 20 Dec 2007 09:50:01
Message: <web.476a8089e570d2d6c5f0db0@news.povray.org>
Jan Dvorak <jan### [at] centrumcz> wrote:
> Nicolas Alvarez napsal(a):

> >> that POVray editor had a netbeans-like auto-completion? When you press
> >> ctrl-space a list of keywords is displayed. It doesn't work for
> >> variables, however.
> >
> > Fortunately it's not as slow as netbeans to show the completion list.
> >
> > By the way, you can use the 'tab' key too.
> Netbeans isn't THAT slow.

no software is slow:  it's the machine that used to not be up to it.

BTW, completion in pov's editor is very limited.  I very much prefer vim's,
emacs'  and a few other's textual completion: user-defined variables, macros,
comments... you name it. it's also wicked fast!


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Did you know...
Date: 20 Dec 2007 10:21:21
Message: <476a8871@news.povray.org>

> BTW, completion in pov's editor is very limited.  I very much prefer vim's,
> emacs'  and a few other's textual completion: user-defined variables, macros,
> comments... you name it. it's also wicked fast!
> 

Does Vim's completion support POV-Ray? It doesn't seem to complete even 
keywords for me. :(


Post a reply to this message

From: nemesis
Subject: Re: Did you know...
Date: 20 Dec 2007 17:20:00
Message: <web.476aea3de570d2d7e2179e90@news.povray.org>
Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:

> > BTW, completion in pov's editor is very limited.  I very much prefer vim's,
> > emacs'  and a few other's textual completion: user-defined variables, macros,
> > comments... you name it. it's also wicked fast!
> >
>
> Does Vim's completion support POV-Ray? It doesn't seem to complete even
> keywords for me. :(

yes, it's simple textual completion.  While in edit mode, at the end of the word
you're trying to complete, push CTRL+N or CTRL+P to bring on the completions
found (in vim 7.0 they come in a menu of their own, in previous versions they
come one at a time).  Go pushing CTRL+N(ext) or CTRL+P(reviows) to cycle
through the entries...


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Did you know...
Date: 20 Dec 2007 21:51:56
Message: <476b2a4c$1@news.povray.org>

> Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
>> Does Vim's completion support POV-Ray? It doesn't seem to complete even
>> keywords for me. :(
> 
> yes, it's simple textual completion.  While in edit mode, at the end of the word
> you're trying to complete, push CTRL+N or CTRL+P to bring on the completions
> found (in vim 7.0 they come in a menu of their own, in previous versions they
> come one at a time).  Go pushing CTRL+N(ext) or CTRL+P(reviows) to cycle
> through the entries...
> 

I know how the "expand to a keyword somewhere on the file" works; but I 
wish they had a completion file that expanded keywords (probably with 
omni-completion: Ctrl-X Ctrl-O).


Post a reply to this message

From: nemesis
Subject: Re: Did you know...
Date: 20 Dec 2007 23:15:00
Message: <web.476b3d42e570d2d7e2179e90@news.povray.org>
Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
> I know how the "expand to a keyword somewhere on the file" works; but I
> wish they had a completion file that expanded keywords (probably with
> omni-completion: Ctrl-X Ctrl-O).

keywords are generally very short that I don't mind typing them at least for the
first time.  But you can always open the file you'll edit and your masterwork
file with every povray trick in it.  Presto! all words in that buffer will show
up in completions in the editing buffer as well! :)

vim and emacs are highly configurable with their scripting abilities.  You could
literally write out skeleton/templated code for your povray needs.  I just don't
have the will to restart another crufty .emacs file again... :P


Post a reply to this message

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