Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 Enhancements for Outline view

closed
LeO
None
5
2005-01-12
2003-05-12
Mike Blackwell
No

check for the common parameter list format and display
info in the outline view.

sub foobar {
my ($foo, $bar) = @_;
...
}

would display in the outline as
fubar($foo,$bar)

It's not perfect, but would be helpful, and pretty
straightforward to implement.

One might even go so far as to look for 'return $x' and
display.

fubar($foo,$bar) : $x

though this could be interesting in cases where there
are multiple return statements, or none at all (using
the result of the last statement in the sub as the
return value).

Another idea - clicking on a Module (or a context menu)
would follow @INC looking for that module, and open it
in an editor. Handy for checking interface specs.

Along the same lines, another context menu entry for
Modules could be "Man Page";

Straying slightly from the subject line above, the
editor context menu might include an entry to do
'perldoc -f' with the highlighted text :)

Discussion

  • LeO
    LeO
    2004-11-02

    Logged In: YES
    user_id=703323

    About the enchancements in the Outline I have my doubts
    about how to realize:

    1) There is also possiblitly to write

    sub foobar ($$$) { ....

    => How to write it in the outline for both cases?

    2) I hardly guess that

    my ($foo, $bar) = @_;

    is the *only* possibility to asign the values. What about
    arrays resp. shift circulars?

    => what should be displayed at all?

    3) the return value is also quite tricky, especially if you
    have somehting like

    if defined $1 {
    return $1
    } else {
    return "nothing"
    }

    I cannot see a way how to display the values properly in the
    OutlineView.

     
  • LeO
    LeO
    2004-11-02

    • assigned_to: nobody --> leo_forge
     
  • shiraz
    shiraz
    2004-12-09

    Logged In: YES
    user_id=1161953

    Another idea- clicking on a Module (or a context menu)
    would follow @INC looking for that module, and open it
    in an editor. Handy for checking interface specs.

    I would love to see this above feature in some future release
    of the plugin.

     
  • LeO
    LeO
    2005-01-12

    • status: open --> closed
     
  • LeO
    LeO
    2005-01-12

    Logged In: YES
    user_id=703323

    After my last request, no valid response how to handle =>
    close this ticket. Also too many issues in one RFE!

    For the issue asked from shiraz => please open a separate RFE!