Skip to content

Unexpected expand behavior #5

@Majsvaffla

Description

@Majsvaffla

Hi! Thank you for the awesome xontrib! I gave it a star!

I've found that, coming from fish, abbrevs are expanded a bit different. In fish they are only expanded if they're at the start of the command line but in xonsh with xontrib-abbrevs they are expanded wherever they're located. Is there an option or something to change that behavior or could it somewhat easily be implemented? I would love to give it at try if pointed in the right direction.

An example where this behavior is problematic is an abbrev I have that ends with the same word as the abbrev itself 🙃 If I pick that command from history it will expand again and break the command.

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

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