-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Bulk editor doesn't support complex data #27
Comments
Interesting idea! |
@annenveritas |
@Max-RM Here, I only want to edit the property tag in B and C1 compounds of Z1\X, in B, D2 and E3 compounds of Z1\Y and in B2 compound of Z2. The same tag is present in several other compounds, and in some it has the same value - those instances I would like to avoid changing. Currently, the only way of approaching the selected tags in SNBT is converting to SNBT the node that parents all of the selected tags - that is, the very root node in the considered case. And from there, I don't see any trivial way of automatically targeting just the sections of the SNBT-text that I would like to edit. If I would be manually replacing those in text, wouldn't it be even more laborous and inconvenient than doing so in the Studio? |
well, in this case, to avoid editing unwanted groups of characters, you need to write a separate program with a regular expression for editing text, although it will be a long time. I also sometimes need to edit some data without touching others. so I use this import re n = int(input()) res = re.sub1(r'(?<=map_uuid:)\d+(?=L}},)', lambda x: f'{int(x.group()) + n}', s) with open('out.txt', 'w') as f: such a program written in python can edit the text by selecting only the necessary text values enclosed between "map_uuid" and " L}}", thereby not changing other values. |
I think this will correct the situation in the future |
@Max-RM Bulk-editing it in the tree view through the already implemented tag editor windows, as I have initially described it in this issue, seems to me much more convenient and simple. |
Slightly related question, how happy are you with the process of selecting multiple tags? The only real ways to do it right now are manually, or with ctrl-f select all. Is any part of the process annoying? I thought about doing like a "select by NBT path" thing... |
Personally, I don't think I have encountered any problems with the way selecting is currently implemented. Though now that you're mentioning it, I think something like a "Go to path" with an auto-complete (and maybe a default path being the root-closest one of those currently in the view) that would move the view to the entered tag (without changing the selection - allowing the user to manually choose between just navigating around, selecting the tag or adding it to some set of previously selected ones), could be quite handy in case of large "flat" compounds/lists that have hundreds of immediate children ordered non-alphabetically. |
When there are several compounds with data that's related to some same thing, to account for any changes to that thing you'd have to manually edit every single compound. So maybe it would be nice to have a special case of the bulk editor for this: a tree view window with just the equal tags from the selected compounds. Here's what it could look like:
The text was updated successfully, but these errors were encountered: