Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Perl omnicompletion available for Vim 7

by john_oshea (Priest)
on Jun 21, 2007 at 09:52 UTC ( #622518=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl omnicompletion available for Vim 7
in thread Perl omnicompletion available for Vim 7

The release notes mention that it parses any existing POD as best it can, which tallies with my (limited) experience of it thus far.

Things I've noticed:

  • my $foo = DateTime::^X^O
    gives me a truncated-enough-to-be-of-no-use pop-up menu of all the DateTime::* modules I have installed. I think it's listing them all, but the names are cut off enough that I can't tell what they are. In fairness, this might be something else to do with my reasonably-heavily-customized Vim setup though.
  • my $parser = DateTime::Format::Pg->new(); $parser->^X^O
    only shows 'clone' as an available method and doesn't show any of the available 'parse_*' or 'format_*' methods in DateTime::Format::Pg
  • my $now = DateTime->now; $now->^X^O
    shows 28 of the available matches. DateTime has, at first glance, quite a few more than that, but I've not yet looked any further into how it's finding the ones it is.

And yes, I'm doing a fair amount of playing with DateTime at the moment... ;-)


Comment on Re^2: Perl omnicompletion available for Vim 7
Select or Download Code
Re^3: Perl omnicompletion available for Vim 7
by blazar (Canon) on Jun 21, 2007 at 11:37 UTC
    The release notes mention that it parses any existing POD as best it can, which tallies with my (limited) experience of it thus far.

    Well, it is well known that "nothing but perl can parse Perl" (but PPI tries hard to compensate), and POD is not that easy either: perhaps due to the fact that there's no really standardized way for listing methods or public functions, that I know of. Which brings me back to some discussions I must have heard in Perl 6 development circles amongst @Larrys about the desire/need to provide hooks for easy intercommunication between the interpreter proper and development tools like IDEs and smart editors, but unfortunately I can't find any link at the moment. Anyway, that's good news, let's hope to see the beast alive!

    And yes, I'm doing a fair amount of playing with DateTime at the moment... ;-)

    Really? I would have never said...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://622518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-07-13 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (250 votes), past polls