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

feat: extract component from AFX - simple #341

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

PRGfx
Copy link
Contributor

@PRGfx PRGfx commented Nov 3, 2024

Follow-up to #330.

After some trouble with extracting "partial" afx content as per selection and handling of props found on the extracted content, this is a more simple approach:
a single element under the cursor will be moved "as is" (with all content) to a new prototype at the start of the file (from where it may be moved with #323).
The user will be prompted for a name for the new prototype and warned if the given name is already defined.

Maybe there are some achievable goals in not moving attributes like @if, @path, @position etc. or moving multiple selected tags. If they are correctly extracted from the source-code, the needed adjustments should be resonable.

So far I didn't get a test working for the refactoring.

resolves #46

@PRGfx PRGfx marked this pull request as ready for review November 10, 2024 20:54
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

Successfully merging this pull request may close these issues.

Feature request: Extract AFX into separate component
1 participant