Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to rename imported files using a regex pattern #301

Open
Nek-12 opened this issue Nov 19, 2024 · 0 comments
Open

Allow to rename imported files using a regex pattern #301

Nek-12 opened this issue Nov 19, 2024 · 0 comments

Comments

@Nek-12
Copy link

Nek-12 commented Nov 19, 2024

This is a continuation of #47.

My idea is to allow the same kind of functionality that is currently present in the IDE by default to perform Search&Replace.

Check this workaround: We can replace every reference to a resource (which is named incorrectly in terms of Compose style guide) with a new exported vector using regexp:

Image

But as you can see, this doesn't work fully, as the regexp for changing the usage that considers all word boundaries / changing case etc would be very complex and long and would need to be changed for imports and private property accessors.

Instead, it would be best to have this feature in the plugin (and now the cli too?) so that the user can directly import icons and rename them as they please.

This would probably look similarly to the screenshot above with the addition of a case selector, at least in my mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant