I was wondering if there was a way to unlock all locked objects in the document/layer and I started thinking about the find/replace in edit.
Guess what? Yes there is! This works in v1.4 - no clue if it will work in other versions.
Edit>Find/Replace Search In: Properties selected General: Include Hidden and Include Locked selected Scope: All or layer selected (depending on what you want to find) Properties: Attribute Name selected Object Types: All types (or you can be more selective)
In the find field enter "sodipodi:insensitive" without the quotes.
Click find
Now switch to Layers and Objects dialog
Select the first object that is highlighted and unlock it. It will unlock all the found locked objects.
Edit>Find/Replace Search In: Properties selected General: Include Hidden and Include Locked selected Scope: All or layer selected (depending on what you want to find) Properties: Style selected Object Types: All types (or you can be more selective)
In the find field enter "display:none" without the quotes.
Click find
Now switch to Layers and Objects dialog
Select the first object that is highlighted and make it visible it. It will make all the found objects visible.
==================================================== Find all Symbol objects?
Edit>Find/Replace Search In: Properties selected General: Include Hidden and Include Locked selected Scope: All or layer selected (depending on what you want to find) Properties: Attribute Name selected Object Types: All types (or you can be more selective)
In the find field enter "xlink:href" without the quotes.
Click find
Unfortunately - if a layer itself is locked or hidden - these methods won't work.
If anyone wants these features - I suggest giving it a thumbs up at gitlab issues. Otherwise (I have learned recently), that it basically gets ignored. If enough "votes" a developer "might" look at it.
Right under Version Info there are "thumbs up and down" icons.
Unlocking all locked objects?
I was wondering if there was a way to unlock all locked objects in the document/layer and I started thinking about the find/replace in edit.
Guess what? Yes there is! This works in v1.4 - no clue if it will work in other versions.
Edit>Find/Replace
Search In: Properties selected
General: Include Hidden and Include Locked selected
Scope: All or layer selected (depending on what you want to find)
Properties: Attribute Name selected
Object Types: All types (or you can be more selective)
In the find field enter "sodipodi:insensitive" without the quotes.
Click find
Now switch to Layers and Objects dialog
Select the first object that is highlighted and unlock it. It will unlock all the found locked objects.
====================================================
Hidden Objects?
Edit>Find/Replace
Search In: Properties selected
General: Include Hidden and Include Locked selected
Scope: All or layer selected (depending on what you want to find)
Properties: Style selected
Object Types: All types (or you can be more selective)
In the find field enter "display:none" without the quotes.
Click find
Now switch to Layers and Objects dialog
Select the first object that is highlighted and make it visible it. It will make all the found objects visible.
====================================================
Find all Symbol objects?
Edit>Find/Replace
Search In: Properties selected
General: Include Hidden and Include Locked selected
Scope: All or layer selected (depending on what you want to find)
Properties: Attribute Name selected
Object Types: All types (or you can be more selective)
In the find field enter "xlink:href" without the quotes.
Click find
Unfortunately - if a layer itself is locked or hidden - these methods won't work.
Nice!
(Moved to Tips section for easier discovery.)
Be nice to have a filter in the Layer and Objects dialog to find hidden and/or locked objects.
I have hidden objects before and spent decades looking for it again in the layers dialog.
I guess I need to add another feature request.
https://gitlab.com/inkscape/inbox/-/issues/11451
And while the developers are adding that they can add this feature to locked layers:
https://gitlab.com/inkscape/inbox/-/issues/10911
If anyone wants these features - I suggest giving it a thumbs up at gitlab issues. Otherwise (I have learned recently), that it basically gets ignored. If enough "votes" a developer "might" look at it.
Right under Version Info there are "thumbs up and down" icons.
My selection plus extension has a page for xpath strings if you need complex selections.
For a locked layer
//svg:g[contains(@sodipodi:insensitive,'true')]
Not a fix, but if you are good at xpath may be useful.
I wrote an extension for my self a couple of years ago.
It was called InkNuke, I never finished it properly.
The idea was, it could remove / add or replace attributes across objects.
So for example it could remove a fill ( not set it to none, but 'pop' the attribute or style property )
Or swap one attribute or style property for another.
Or change or add attributes / properties ( and their values across objects - not just fill and stroke etc )
Maybe I should add it to selection plus.