Opened 5 years ago

Closed 3 years ago

#400 closed enhancement (not relevant)

profile view should allow user to create "sections"

Reported by: jquelin Owned by:
Priority: major Milestone:
Component: editor Version: 0.36
Keywords: Cc:

Description

in really big modules, we end up with a lot of subs / methods.

usually, one adds some comments such as:

# -- user input methods
sub gnah { ... }
sub frobnize { ... }
[...]

# -- gui events
sub on_foo { ... }
sub on_bar { ... }
[...]

to separate the various logical parts of the big module.

it would be nice for outline view to automatically detect those and propose a hierarchical view:

- Module::Name
  + Pragmata
  + Modules
  - Methods
    + user input
    - gui events
      . on_bar
      . on_foo

with the methods within a logical part sorted.

of course, the separation comment should match the principal comment styles existing in the wild:

# -- part 1
[...]
################################
# part2
[...]
################################

=head1 part 3
[...]
#-------------------------------
#
# part4

Change History (3)

comment:1 Changed 5 years ago by jquelin

if it could recognize some hierarchy, it would be nice too. don't know what would be the blessed syntax, but sthg like:

# -- * part 1
[...]
# -- ** part 1.1
[...]
# -- ** part 1.2
[...]
# -- * part 2
[...]
# -- ** part 2.1

but that's refinement, and i'm not sure it is useful if padre also implements ticket #401

comment:2 Changed 5 years ago by rhebus

  • Type changed from defect to enhancement

comment:3 Changed 3 years ago by bowtie

  • Resolution set to not relevant
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.