DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Searching .dita files using the "Find in Files" feature

  • Scibert

    Searching .dita files using the "Find in Files" feature

    Participants 3
    Replies 4
    Last Activity 10 years, 4 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?

    Reply

    Derek Read

    Reply to: Searching .dita files using the "Find in Files" feature

    The following file extensions are included in all “cross file” operations (including Find in Files) by default:

    .xml
    .sgml
    .sgm
    .dita
    .ditamap

    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.

    Reply

    Scibert

    Reply to: Searching .dita files using the "Find in Files" feature

    Hi Derek,

    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.

    Reply

    Derek Read

    Reply to: Searching .dita files using the "Find in Files" feature

    Looks like I can reproduce this here. I'll let development know so they can address this in a future release.

    Reply

    cecile

    Reply to: Searching .dita files using the "Find in Files" feature

    Hello,

    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.

    Cécile

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support