diff --git a/src/main.go b/src/main.go index 918b609a..3821282c 100644 --- a/src/main.go +++ b/src/main.go @@ -319,61 +319,64 @@ func Unzip(src, dest string) error { return nil } -const configJsonString string = `{ - "theme": "gruvbox", - "terminal": "", - "terminalWorkDirFlag": "", - - "_COMMIT_bottom_panel": "This is currently of no use", - "bottomPanelList": ["processes", "metadata", "clipboard"], - - "_COMMIT_HOTKEY": "", - - "_COMMIT_global_hotkey": "Here is global, all global key cant conflicts with other hotkeys", - "reload": ["ctrl+r", ""], - "quit": ["esc", "q"], - - "listUp": ["up", "k"], - "listDown": ["down", "j"], - - "pinnedDirectory": ["ctrl+p", ""], - - "closeFilePanel": ["ctrl+w", ""], - "createNewFilePanel": ["ctrl+n", ""], - - "nextFilePanel": ["tab", ""], - "previousFilePanel": ["shift+left", ""], - "focusOnProcessBar": ["p", ""], - "focusOnSideBar": ["b", ""], - "focusOnMetaData": ["m", ""], - - "changePanelMode": ["v", ""], - - "filePanelFolderCreate": ["f", ""], - "filePanelFileCreate": ["c", ""], - "filePanelItemRename": ["r", ""], - "pasteItem": ["ctrl+v", ""], - "toggleDotFile": ["ctrl+h", ""], - - "_COMMIT_special_hotkey": "These hotkeys do not conflict with any other keys (including global hotkey)", - "cancel": ["ctrl+c", "esc"], - "confirm": ["enter", ""], - - "_COMMIT_normal_mode_hotkey": "Here is normal mode hotkey you can conflicts with other mode (cant conflicts with global hotkey)", - "deleteItem": ["ctrl+d", ""], - "selectItem": ["enter", "l"], - "parentFolder": ["h", "backspace"], - "copySingleItem": ["ctrl+c", ""], - "cutSingleItem": ["ctrl+x", ""], - - "_COMMIT_select_mode_hotkey": "Here is select mode hotkey you can conflicts with other mode (cant conflicts with global hotkey)", - "filePanelSelectModeItemSingleSelect": ["enter", "l"], - "filePanelSelectModeItemSelectDown": ["shift+down", "J"], - "filePanelSelectModeItemSelectUp": ["shift+up", "K"], - "filePanelSelectModeItemDelete": ["ctrl+d", "delete"], - "filePanelSelectModeItemCopy": ["ctrl+c", ""], - "filePanelSelectModeItemCut": ["ctrl+x", ""], - "filePanelSelectAllItem": ["ctrl+a", ""], - - "_COMMIT_process_bar_hotkey": "Here is process bar panel hotkey you can conflicts with other mode (cant conflicts global hotkey)" - }` +const configJsonString string =`{ + "theme": "gruvbox", + "terminal": "", + "terminalWorkDirFlag": "", + + "_COMMIT_bottom_panel": "This is currently of no use", + "bottomPanelList": ["processes", "metadata", "clipboard"], + + "_COMMIT_HOTKEY": "", + + "_COMMIT_global_hotkey": "Here is global, all global key cant conflicts with other hotkeys", + "reload": ["ctrl+r", ""], + "quit": ["esc", "q"], + + "listUp": ["up", "k"], + "listDown": ["down", "j"], + + "pinnedDirectory": ["ctrl+p", ""], + + "closeFilePanel": ["ctrl+w", ""], + "createNewFilePanel": ["ctrl+n", ""], + + "nextFilePanel": ["tab", ""], + "previousFilePanel": ["shift+left", ""], + "focusOnProcessBar": ["p", ""], + "focusOnSideBar": ["b", ""], + "focusOnMetaData": ["m", ""], + + "changePanelMode": ["v", ""], + + "filePanelFolderCreate": ["f", ""], + "filePanelFileCreate": ["c", ""], + "filePanelItemRename": ["r", ""], + "pasteItem": ["ctrl+v", ""], + "extractFile": ["ctrl+t"], + "compressFile": ["ctrl+y"], + + "toggleDotFile": ["ctrl+h", ""], + + "_COMMIT_special_hotkey": "These hotkeys do not conflict with any other keys (including global hotkey)", + "cancel": ["ctrl+c", "esc"], + "confirm": ["enter", ""], + + "_COMMIT_normal_mode_hotkey": "Here is normal mode hotkey you can conflicts with other mode (cant conflicts with global hotkey)", + "deleteItem": ["ctrl+d", ""], + "selectItem": ["enter", "l"], + "parentDirectory": ["h", "backspace"], + "copySingleItem": ["ctrl+c", ""], + "cutSingleItem": ["ctrl+x", ""], + + "_COMMIT_select_mode_hotkey": "Here is select mode hotkey you can conflicts with other mode (cant conflicts with global hotkey)", + "filePanelSelectModeItemSingleSelect": ["enter", "l"], + "filePanelSelectModeItemSelectDown": ["shift+down", "J"], + "filePanelSelectModeItemSelectUp": ["shift+up", "K"], + "filePanelSelectModeItemDelete": ["ctrl+d", "delete"], + "filePanelSelectModeItemCopy": ["ctrl+c", ""], + "filePanelSelectModeItemCut": ["ctrl+x", ""], + "filePanelSelectAllItem": ["ctrl+a", ""], + + "_COMMIT_process_bar_hotkey": "Here is process bar panel hotkey you can conflicts with other mode (cant conflicts global hotkey)" +}`