Skip to content

Allow regex-based include/exclude filters on colums as well? #35

@bavovanachte

Description

@bavovanachte

First off, thanks for this plugin. It's very helpful for the current issues I'm facing in documenting some matrices in sphinx.

I've had to adapt your plugin in order for it to be useable for me though. In my use case, I have the same labels in the header row (column 0) as in the row 0, something like this:

image

Now, I'd like to be able to filter this table, for example by showing only "condition1" and "condition2", so the filter needs to be applied both to the rows as to the columns, based on a regex (the included_cols option is not useable as the indices are not known beforehand)

I have a quick-and-dirty solution for this ready that works fine for my use case, but I'm wondering it this is something that you would accept to include as a feature in the main project as well. If so, I can make a proposal for what the configuration could look like

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions