Opened 10 months ago

# List items at given location of certain revision in repository (ListSourceFiles)

Reported by: Owned by: aschipfl anybody normal Request-a-Hack normal macro plugin wiki versioncontrol repository 1.2

### Description

The ListSourceFilesPlugin should provide a macro that includes in wiki pages or in tickets a list of files and directories located at a given repository directory path. As per default the HEAD revision should be used if no explicit revision is given (using @... or ?rev=..., or alternatively also an optional parameter rev of the macro, similar to IncludeSourcePartialPlugin).
The returned list should look quite the same as the one shown in the Browse source section, including all the fields, except any repository properties. An optional order argument should be available to define the sort field and order. Another one limit should perhaps limit the number of returned items.

### comment:1 Changed 10 months ago by anonymous

Maybe another optional argument could control whether only files, only directories or both are returned.

### comment:2 follow-up:  3 Changed 10 months ago by Ryan J Ollos

Where is ListSourceFilesPlugin hosted?

### comment:3 in reply to:  2 Changed 10 months ago by aschipfl

Where is ListSourceFilesPlugin hosted?

Nowhere (yet)…

### comment:4 follow-up:  5 Changed 10 months ago by Ryan J Ollos

I see. I read this as an enhancement request for an existing plugin.

### comment:5 in reply to:  4 Changed 10 months ago by aschipfl

I see. I read this as an enhancement request for an existing plugin.

You mean, an extension of IncludeSourcePartialPlugin (which displays lines of source/text files)?
Well, if so, then instead of an argument limit, the arguments start and end could be used also for displaying source directory content (also allowing negative values), for the sake of consistency.

### comment:6 Changed 10 months ago by aschipfl

A nice additional feature would be to have an argument type that defines whether to display only sub-directories (type=dir or type=directory), only files (type=files), or both (type=both, default).

### Modify Ticket

Change Properties
Action
as new The owner will remain anybody.