DITA and XMetaL Discussion
Scibert June 5, 2012 at 5:01 am
Searching .dita files using the "Find in Files" featureJune 5, 2012 at 5:01 amParticipants 3Replies 4Last Activity 10 years, 8 months ago
The “Find in Files” feature of XMetaL 7.0 only seems to find .xml files when searching folders. Is there a way to have it also search other file types such as .dita files?Derek Read June 5, 2012 at 11:46 pm
Reply to: Searching .dita files using the "Find in Files" featureJune 5, 2012 at 11:46 pm
The following file extensions are included in all “cross file” operations (including Find in Files) by default:
The settings for this can be safely altered in a (well hidden*) dialog:
1. Enable the Macros toolbar.
2. Run the macro named “XMetaL Configuration: About Services”
3. In the dialog that appears select “Multiple-File Operation Service”.
4. On the right side of the same dialog click the button labelled “Extended Info”.
5. In the dialog that appears add or remove file extensions, separating each with a semicolon.
*The reason for hiding this is that the “cross files” feature is new and it was assumed during the design that few people would need to add or remove values from this list. We didn't want to make it impossible to change the values though, so they are exposed here. We don't expect to get a lot of feedback from people saying they need to add other file types, but if we do we might consider moving this setting to a more accessible location.
Note that this whole “XMetaL Services” feature is undocumented because there is good chance we will be changing the way it functions (and we don't want people to start using a feature and then break backward compatibility — this probably applies more to people/partners that might choose to build their own “service”). Ultimately, we might repackage most features in the product as “services” that you can install/uninstall/enable/disable. Currently we have “application level” and “document level” customizations, such as the Journalist and DocBook demos, the CMS integrations, and the DITA authoring functionality, as well as customizations that many clients (and partners) build for their own use, but they are not always easy to separate from the core product. A services model might allow end users to more easily unclutter their UI by removing things they don't use, it might provide a nicer way for developers/partners/us to package and deploy features (customizations). Sort of the same way “plug-ins” for FireFox and other web browsers function. This is not nearly complete, but I thought I would try to preempt any questions about the feature. As it stands today it is best to not mess around with it. Wait until it is fully documented as being something end users or developers (or partners) should be touching.Scibert June 6, 2012 at 4:55 pm
Reply to: Searching .dita files using the "Find in Files" featureJune 6, 2012 at 4:55 pm
Thank you for this reply; it was very helpful.
I found that after a fresh installation of XMetaL 7.0, the “Find in Files” feature only searches .xml, .sgm., and .sgml files when looking into folders. To let it also search .dita and .ditamap files, the following steps must be executed at least once:
1. Display the Macros toolbar.
2. Run the macro named “XMetaL Configuration: About Services”.
3. In the dialog that appears, select Multiple-File Operation Service.
4. On the right side of the same dialog, click Extended Info.
5. Click OK.
6. Click Done.
7. Restart XMetaL 7.0.
Now XMetaL will also search .dita and .ditamap files when looking into folders.Derek Read June 6, 2012 at 7:42 pm
Reply to: Searching .dita files using the "Find in Files" featureJune 6, 2012 at 7:42 pm
Looks like I can reproduce this here. I'll let development know so they can address this in a future release.cecile June 28, 2012 at 4:39 pm
Reply to: Searching .dita files using the "Find in Files" featureJune 28, 2012 at 4:39 pm
User of the XMetal Author Enterprise 6.0, I have installed XMetal Author Enterprise 7.0 this week.
I tested the “Find in files…” function to find a string in several *.ditamap files which I am sure is present, as I copied it directly from one of the ditamap files.
Search failed (no match). Then I found the tip from Scibert and executed the instructions… twice, unfortunately with no success.
Is there anything else I should activate to get the ditamap files searched with the “Find in files…” function?
Note: I am running XMetal Author on Windows 7 Professional.
Thanks for your help.
- You must be logged in to reply to this topic.