Skip to content

Command/action aliases #276

@brisvag

Description

@brisvag

In napari/napari#8661 (comment) we discussed the possibility of having some form of command/action aliases (or keywords?) to assign to an action to be used for searching purposes. While we could do that simply with a dictionary, I wonder if this is something useful to have in general? Something like:

class CommandRule:
	...
	aliases: set[str]

So we'd have something like:

Action(..., title='Color Bar', aliases={'Calibration Bar', 'Color Legend'})

Altenratively, is there a simpler way to do something like this so that this info lives on the action rather that in some other third mapping?

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