Skip to content

Support one-way aliases #155

@mitchellwrosen

Description

@mitchellwrosen

Hi there, I'd like to propose a feature similar to equivalence_classes, but one-way.

As a motivating example, suppose I want to make the . character equivalent to any special character, because it's easier to type than most:

equivalence_classes = { ".`~!@#$%^&*()-_=+[{]}\\|;:'\",<>/?" }

This works okay, but it does prevent me from ever jumping to (say) the comma character in this sequence:

","

because it's equivalent to an overlapping sequence of three dots:

...

If I could ask leap to treat . as any operator character, but not the other way around, then I could jump to the middle comma in the above example with s,"<label>, as usual.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions