how do I export the wincmd.ini setting to an xml format?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
brian
Junior Member
Junior Member
Posts: 67
Joined: 2003-09-25, 01:14 UTC
Contact:

how do I export the wincmd.ini setting to an xml format?

Post by *brian »

I wanna use double commander (copying is the sincerest form of flattery i guess) on Linux with the same settings as TC on Windows
I want to export the toolbar and the keyboard commands, mostly.

This is what the xml looks like

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<doublecmd DCVersion="0.5.5 alpha" ConfigVersion="5">
  <Configuration Save="True">
    <UseConfigInProgramDir>False</UseConfigInProgramDir>
  </Configuration>
  <Colors>
    <FileFilters>
      <Filter>
        <Name>Pascal sources</Name>
        <FileMasks>*.pas;*.pp</FileMasks>
        <Color>32768</Color>
        <Attributes/>
      </Filter>
      <Filter>
        <Name>Pascal binaries</Name>
        <FileMasks>*.ppu;*.o;*.dcu</FileMasks>
        <Color>16711680</Color>
        <Attributes/>
      </Filter>
    </FileFilters>
  </Colors>
  <Plugins>
    <DsxPlugins/>
    <WcxPlugins>
      <WcxPlugin Enabled="True">
        <ArchiveExt>zip</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\zip\zip.wcx</Path>
        <Flags>607</Flags>
      </WcxPlugin>
      <WcxPlugin Enabled="True">
        <ArchiveExt>lzma</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\lzma\lzma.wcx</Path>
        <Flags>1</Flags>
      </WcxPlugin>                  
      <WcxPlugin Enabled="True">
        <ArchiveExt>tar</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\zip\zip.wcx</Path>
        <Flags>95</Flags>
      </WcxPlugin>
      <WcxPlugin Enabled="True">
        <ArchiveExt>bz2</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\zip\zip.wcx</Path>
        <Flags>91</Flags>
      </WcxPlugin>
      <WcxPlugin Enabled="True">
        <ArchiveExt>tbz</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\zip\zip.wcx</Path>
        <Flags>95</Flags>
      </WcxPlugin>
      <WcxPlugin Enabled="True">
        <ArchiveExt>gz</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\zip\zip.wcx</Path>
        <Flags>91</Flags>
      </WcxPlugin>
      <WcxPlugin Enabled="True">
        <ArchiveExt>tgz</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\zip\zip.wcx</Path>
        <Flags>95</Flags>
      </WcxPlugin>      
      <WcxPlugin Enabled="True">
        <ArchiveExt>cpio</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\cpio\cpio.wcx</Path>
        <Flags>0</Flags>
      </WcxPlugin>
      <WcxPlugin Enabled="True">
        <ArchiveExt>deb</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\deb\deb.wcx</Path>
        <Flags>4</Flags>
      </WcxPlugin>
      <WcxPlugin Enabled="True">
        <ArchiveExt>rpm</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\rpm\rpm.wcx</Path>
        <Flags>4</Flags>
      </WcxPlugin>      
      <WcxPlugin Enabled="True">
        <ArchiveExt>rar</ArchiveExt>
        <Path>%commander_path%\plugins\wcx\unrar\unrar.wcx</Path>
        <Flags>68</Flags>
      </WcxPlugin>
    </WcxPlugins>
    <WdxPlugins>
      <WdxPlugin>
        <Name>rpm_wdx</Name>
        <Path>%commander_path%\plugins\wdx\rpm_wdx\rpm_wdx.wdx</Path>
        <DetectString>EXT="RPM"</DetectString>
      </WdxPlugin>
      <WdxPlugin>
        <Name>deb_wdx</Name>
        <Path>%commander_path%\plugins\wdx\deb_wdx\deb_wdx.wdx</Path>
        <DetectString>EXT="DEB"</DetectString>
      </WdxPlugin>
    </WdxPlugins>
    <WfxPlugins>
      <WfxPlugin Enabled="True">
        <Name>FTP</Name>
        <Path>%commander_path%\plugins\wfx\ftp\ftp.wfx</Path>
      </WfxPlugin>
    </WfxPlugins>
    <WlxPlugins/>
  </Plugins>
</doublecmd>
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think there are a lot of options that DC doesn't support, or some other ones have another names... So it isn't easy.

You can convert parameters into XML style using regex replace ([^ ]+)=(.*)$ with <\1>\2</\1>. Then you will need to convert sections, regex won't help here because of huge number of lines per section. And you will need to rename particular parameters anyway.
Last edited by MVV on 2013-12-09, 13:03 UTC, edited 1 time in total.
User avatar
brian
Junior Member
Junior Member
Posts: 67
Joined: 2003-09-25, 01:14 UTC
Contact:

Post by *brian »

oh noes. tnx ...............
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7025
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

That is not worth the effort, to much differences.
I use both programs and would never try.
Its not so complicated to setup an Double Commander environment from scratch.
Post Reply