 
     vim.SetWin(DC_Name, "DClass", "doublecmd.exe")
     vim.Mode("normal", DC_Name)
-
-    vim.Map("h", "<left>", DC_Name)
-    vim.Map("j", "<down>", DC_Name)
-    vim.Map("k", "<up>", DC_Name)
-    vim.Map("l", "<enter>", DC_Name)
-    vim.Map("gg", "<home>", DC_Name)
-    vim.Map("G", "<end>", DC_Name)
-    vim.Map("o", "<DC_ContextMenu>", DC_Name)
-    vim.Map("<la-r>", "<DC_Rename>", DC_Name)
-    vim.Map("<f1>", "<DC_Test>", DC_Name)
-    vim.Map("<f2>", "<DC_RenameFull>", DC_Name)
-    vim.Map("<f5>", "<DC_Restart>", DC_Name)
-    vim.Map("<c-f>", "<pgdn>", DC_Name)
-    vim.Map("<c-b>", "<pgup>", DC_Name)
-    vim.Map("zz", "<DC_Toggle_50_100>", DC_Name)
-    vim.Map("zi", "<DC_Show_100_0>", DC_Name)
-    vim.Map("zo", "<DC_Show_0_100>", DC_Name)
-    vim.Map("zv", "<DC_HorizontalFilePanels>", DC_Name)
-    vim.Map("<S-K>", "<DC_PreviousParallelDir>", DC_Name)
-    vim.Map("<S-J>", "<DC_NextParallelDir>", DC_Name)
-    vim.Map("<c-k>", "<DC_UpSelect>", DC_Name)
-    vim.Map("<c-j>", "<DC_DownSelect>", DC_Name)
-    vim.Map("i", "<DC_CreateNewFile>", DC_Name)
-    vim.Map("sn", "<DC_SortByName>", DC_Name)
-    vim.Map("se", "<DC_SortByExt>", DC_Name)
-    vim.Map("ss", "<DC_SortBySize>", DC_Name)
-    vim.Map("sd", "<DC_SortByDate>", DC_Name)
-    vim.Map("sa", "<DC_SortByAttr>", DC_Name)
-    vim.Map("sr", "<DC_ReverseOrder>", DC_Name)
-    vim.Map("s1", "<DC_SortByName>", DC_Name)
-    vim.Map("s2", "<DC_SortByExt>", DC_Name)
-    vim.Map("s3", "<DC_SortBySize>", DC_Name)
-    vim.Map("s4", "<DC_SortByDate>", DC_Name)
-    vim.Map(".", "<DC_OpenExplorer>", DC_Name)
-    vim.Map("""", "<DC_MarkFile>", DC_Name)
-    vim.Map("_", "<DC_UnMarkFile>", DC_Name)
-    vim.Map("Vm", "<DC_ShowMainMenu>", DC_Name)
-    vim.Map("Vb", "<DC_ShowButtonMenu>", DC_Name)
-    vim.Map("Vv", "<DC_OperationsViewer>", DC_Name)
-    vim.Map("Va", "<DC_BriefView>", DC_Name)
-    vim.Map("V1", "<DC_ColumnsView1>", DC_Name)
-    vim.Map("V2", "<DC_ColumnsView2>", DC_Name)
 
     vim.BeforeActionDo("DC_ForceInsertMode", DC_Name)
 return


        return
    }
    ; DC_Run("cm_ChangeDirToParent")
*/

    Send, {left}
    Sleep, 10
    Send, {up}
    Sleep, 10
    Send, {right}

/*
    if (InStr(OldPwd, "wfx") == 1) {
        ; 网络文件系统比较慢，等待下
        Sleep, 50
    }

    Clipboard := ClipSaved
    ClipSaved := ""
*/
return

<DC_NextParallelDir>:
; TODO
    Send, {left}
    Sleep, 10
    Send, {down}
    Sleep, 10
    Send, {right}
return

<DC_DownSelect>:

<DC_ColumnsView2>:
    DC_ColumnsView("test")
return

<DC_ThumbnailsView>:
    DC_Run("cm_ThumbnailsView")
    Gosub, <DC_ThumbnailsSwitchKey>
return

<DC_ThumbnailsSwitchKey>:
    InThumbsView := !InThumbsView

    if (InThumbsView) {
        vim.Map("l", "<right>", DC_Name)
    } else {
        vim.Map("l", "<enter>", DC_Name)
    }
return

<DC_ToggleShowInfo>:
    vim.GetWin(DC_Name).SetInfo(!vim.GetWin(DC_Name).info)
return

<DC_CopyFileContent>:
    Clipboard := ""
    DC_Run("cm_CopyFullNamesToClip")
    ClipWait, 2

    Fileread, Contents, % Clipboard
    Clipboard := Contents
return

<DC_CopyFilenamesOnly>:
    Clipboard := ""
    DC_Run("cm_CopyFullNamesToClip")
    ClipWait, 2

    SplitPath, Clipboard, OutFileName, , , OutFilenameNoExt

	if (InStr(FileExist(Clipboard), "D")) {
        Clipboard := OutFileName
    } else if (InStr(Clipboard, ".")) {
        Clipboard := OutFilenameNoExt
    }
return
