commit 0d418f8f412927b20f59f715375505dc965f6098 parent ef5973455b4062134db81bb3b2d1dfd636a56bcb Author: Yohanes Bandung Bondowoso <hi@ybbond.id> Date: Wed, 5 May 2021 23:27:37 +0700 update Sublime Text and VSCode settings, delete MailMate Diffstat:
| M | Library/Application Support/Code/User/settings.json | | | 207 | +++++++++++++++++++++++++------------------------------------------------------ |
| D | Library/Application Support/MailMate/Resources/KeyBindings/gmail-extended.plist | | | 114 | ------------------------------------------------------------------------------- |
| D | Library/Application Support/MailMate/Resources/Layouts/Mailboxes/correspondence-arcs-widescreen.plist | | | 198 | ------------------------------------------------------------------------------- |
| M | Library/Application Support/Sublime Text/Packages/User/Default (OSX).sublime-keymap | | | 142 | ++++++++++++++++++++++++++++++------------------------------------------------- |
| M | Library/Application Support/Sublime Text/Packages/User/Preferences.sublime-settings | | | 26 | ++++++++++++++------------ |
5 files changed, 132 insertions(+), 555 deletions(-)
diff --git a/Library/Application Support/Code/User/settings.json b/Library/Application Support/Code/User/settings.json @@ -8,10 +8,10 @@ "javascript.validate.enable": false, "diffEditor.renderSideBySide": true, "editor.acceptSuggestionOnCommitCharacter": false, + "editor.fontSize": 16, "editor.dragAndDrop": false, // "editor.fontFamily": "Liga Cartograph Mono CF", "editor.fontLigatures": true, - "editor.fontSize": 14, "editor.lineNumbers": "relative", "editor.matchBrackets": "near", "editor.tabCompletion": "on", @@ -23,32 +23,21 @@ "source.fixAll.eslint": true }, "editor.suggestSelection": "first", - "bracket-pair-colorizer-2.colors": [ - "white" - ], - "bracket-pair-colorizer-2.highlightActiveScope": true, - "bracket-pair-colorizer-2.showBracketsInGutter": true, - "bracket-pair-colorizer-2.scopeLineCSS": [ - "borderStyle : solid", - "borderWidth : 1px", - "borderColor : white", - "opacity: 0.4" - ], "search.quickOpen.includeSymbols": true, "search.showLineNumbers": true, - "workbench.colorTheme": "Gruvbox Dark (Medium)", + "workbench.colorTheme": "Xcode 10 Default Light", "workbench.editor.enablePreviewFromQuickOpen": false, "workbench.list.automaticKeyboardNavigation": false, - "editor.tokenColorCustomizations": { - "textMateRules": [ - { - "scope": "punctuation.definition.tag.jsx", - "settings": { - "foreground": "#00fff2" - } - } - ] - }, + // "editor.tokenColorCustomizations": { + // "textMateRules": [ + // { + // "scope": "punctuation.definition.tag.jsx", + // "settings": { + // "foreground": "#00fff2" + // } + // } + // ] + // }, "vim.cursorStylePerMode.insert": "line", "vim.enableNeovim": true, "vim.highlightedyank.enable": true, @@ -56,17 +45,12 @@ "vim.hlsearch": true, "vim.incsearch": true, "vim.neovimPath": "/usr/local/bin/nvim", - "vim.searchHighlightColor": "rgba(150, 150, 255, 0.3)", + // "vim.searchHighlightColor": "rgba(150, 150, 255, 0.3)", "vim.visualstar": true, "vim.insertModeKeyBindings": [ { - "before": [ - "j", - "k" - ], - "after": [ - "<Esc>" - ] + "before": ["j", "k"], + "after": ["<Esc>"] } ], "vim.normalModeKeyBindingsNonRecursive": [ @@ -79,117 +63,60 @@ "after": ["g", "k"] }, { - "before": [ - "&" - ], - "after": [ - "#" - ] + "before": ["u"], + "after": [], + "commands": ["undo"] }, { - "before": [ - "]", - "c" - ], + "before": ["ctrl+r"], "after": [], - "commands": [ - { - "command": "workbench.action.editor.nextChange", - "args": [] - } - ] + "commands": ["redo"] }, { - "before": [ - "[", - "c" - ], - "after": [], - "commands": [ - { - "command": "workbench.action.editor.previousChange", - "args": [] - } - ] + "before": ["<leader>", "<space>"], + "commands": [":nohl"] }, { - "before": [ - "[", - "C" - ], - "after": [], - "commands": [ - { - "command": "workbench.action.compareEditor.previousChange", - "args": [] - }, - { - "command": "editor.action.dirtydiff.previous", - "args": [] - } - ] + "before": ["ctrl+w", "ctrl+g"], + "commands": ["editor.action.dirtydiff.next"] }, { - "before": [ - "]", - "C" - ], - "after": [], - "commands": [ - { - "command": "workbench.action.compareEditor.nextChange", - "args": [] - }, - { - "command": "editor.action.dirtydiff.next", - "args": [] - } - ] + "before": ["&"], + "after": ["#"] }, { - "before": [ - "u" - ], - "after": [], - "commands": [ - { - "command": "undo", - "args": [] - } - ] + "before": ["g", "b"], + "commands": ["workbench.action.nextEditorInGroup"] }, { - "before": [ - "<C-r>" - ], - "after": [], - "commands": [ - { - "command": "redo", - "args": [] - } - ] + "before": ["g", "B"], + "commands": ["workbench.action.previousEditorInGroup"] }, { - "before": [ - "<leader>", - "<space>" - ], - "commands": [ - ":nohl" - ] + "before": ["]", "c"], + "commands": ["workbench.action.editor.nextChange"] }, { - "before": [ - "Q" - ], - "after": [ - "<leader>", - "<leader>", - "<leader>", - "j" - ] - } + "before": ["[", "c"], + "commands": ["workbench.action.editor.previousChange"] + }, + { + "before": ["]", "C"], + "commands": ["editor.action.marker.next"] + }, + { + "before": ["[", "C"], + "commands": ["editor.action.marker.prev"] + }, + // { + // "before": ["Q"], + // "after": [ + // "<leader>", + // "<leader>", + // "<leader>", + // "j" + // ] + // } ], "vim.visualModeKeyBindingsNonRecursive": [ { @@ -204,32 +131,17 @@ ] } ], - "workbench.colorCustomizations": { - "statusBar.background": "#333333", - "statusBar.noFolderBackground": "#333333", - "statusBar.debuggingBackground": "#333333", - "editor.selectionBackground": "#4f4e4f", - "editor.selectionBorder": "#ffffffbb", - "editor.selectionHighlightBackground": "#4f4e4e", - "editor.selectionHighlightBorder": "#ffffffbb" - }, "typescript.updateImportsOnFileMove.enabled": "always", - "gitlens.views.repositories.location": "scm", - "gitlens.views.fileHistory.location": "scm", - "gitlens.views.lineHistory.location": "scm", - "gitlens.views.search.location": "scm", - "gitlens.views.compare.location": "scm", "editor.fontFamily": "IBM Plex Mono, Hermit, Victor Mono, Liga Cartograph Mono CF, Menlo, Monaco, 'Courier New', monospace", "editor.minimap.showSlider": "always", "editor.minimap.maxColumn": 100, - "editor.renderWhitespace": "selection", + "editor.renderWhitespace": "all", "editor.renderLineHighlight": "all", "editor.renderFinalNewline": false, "editor.cursorSurroundingLines": 5, "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", "editor.codeLens": false, - "window.zoomLevel": 0, - "window.titleBarStyle": "native", + "window.zoomLevel": -1, "[markdown]": { "editor.wordWrap": "on", "editor.quickSuggestions": true @@ -240,7 +152,16 @@ "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, + "[typescriptreact]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, "editor.copyWithSyntaxHighlighting": false, "files.simpleDialog.enable": true, - "workbench.sideBar.location": "right" + "workbench.sideBar.location": "right", + "vim.smartRelativeLine": true, + "vim.sneak": true, + "vim.sneakReplacesF": true, + "gitlens.views.lineHistory.enabled": true, + "workbench.editor.decorations.colors": true, + "workbench.editor.decorations.badges": true, } \ No newline at end of file diff --git a/Library/Application Support/MailMate/Resources/KeyBindings/gmail-extended.plist b/Library/Application Support/MailMate/Resources/KeyBindings/gmail-extended.plist @@ -1,114 +0,0 @@ -{ - - /* - * Gmail (extended) defaults for MailMate - * Extended key bindings down below - * - * Based on: http://mail.google.com/support/bin/answer.py?answer=6594 - */ - - /* - * | Keybindings | - * | Shortcut | Code | Description | - * | -------- | ---- | ----------- | - * | a | a | - | - * | ⌃ a | ^a | Control-a | - * | ⌥ a | ~a | Option-a | - * | ⇧ a | A | Shift-a | - * | ⌘ a | @a | Command-a | - */ - - "@\U000A" = "send:"; // ⌘+return - "@\U000D" = "send:"; // ⌘+enter - - "c" = "newMessage:"; - "/" = "searchAllMessages:"; - // "n" = "nextMessage:"; - // "p" = "previousMessage:"; - "j" = "nextThread:"; - "k" = "previousThread:"; - "o" = "openMessages:"; // Gmail: Also expands or collapses a message if you are in 'Conversation View.' - "e" = "archive:"; - "^m" = ( "toggleMuteState:", "archive:" ); // FIXME: Should be 'markAsMuted:' - "s" = "toggleFlag:"; - "!" = "moveToJunk:"; - "r" = "replySender:"; - "a" = "replyAll:"; - "f" = "forwardMessage:"; - "^s" = "saveDocument:"; - // l Label - "v" = "moveToMailbox:"; - "#" = "deleteMessage:"; - - // "I" = ( "setTag:", "\\Seen", "nextMessage:"); - "U" = ( "removeTag:", "\\Seen"); - - /* Only in MailMate */ - - // "N" = "moveDownAndModifySelection:"; - // "P" = "moveUpAndModifySelection:"; - "J" = "moveDownAndModifySelection:"; - "K" = "moveUpAndModifySelection:"; - "Z" = "redo:"; - - /* Combo-Keys */ - - "g" = { - "a" = ( "goToMailbox:", "ALL_MESSAGES" ); - "s" = ( "goToMailbox:", "FLAGGED" ); - // g then c Go to 'Contacts' Takes you to your Contacts list. - "d" = ( "goToMailbox:", "DRAFTS" ); - "l" = "goToMailbox:"; - "i" = ( "goToMailbox:", "INBOX" ); - "t" = ( "goToMailbox:", "SENT" ); - "g" = "selectFirstMessageRow:"; /* gg, like in Vim */ - }; - "G" = "selectLastMessageRow:"; /* G, like in Vim */ - - "*" = { - "a" = "selectAll:"; - "n" = "deselectAll:"; - "r" = ( "selectWithFilter:", "#flags.flag = '\\Seen'"); // Selects all mail you've read. - "u" = ( "selectWithFilter:", "#flags.flag !=[x] '\\Seen'"); // Selects all unread mail. - "s" = ( "selectWithFilter:", "#flags.flag = '\\Flagged'"); // Selects all starred mail. - "t" = ( "selectWithFilter:", "#flags.flag !=[x] '\\Flagged'"); // Selects all unstarred mail. - }; - - /* Added-Keys */ - - "p" = "selectPreviousMailboxRow:"; - "n" = "selectNextMailboxRow:"; - "P" = "selectPreviousMailbox:"; - "N" = "selectNextMailbox:"; - "^l" = "loadImagesOnce:"; - "^j" = "nextMessage:"; - "^k" = "previousMessage:"; - "^J" = "moveDownAndModifySelection:"; - "^K" = "moveUpAndModifySelection:"; - "I" = ( "setTag:", "\\Seen"); - -} - - /* - * - * Not included above: - * - * u Return to conversation list Refreshes your page and returns you to the inbox, or list of conversations. - * x Select conversation Automatically checks and selects a conversation so that you can archive, apply a label, or choose an action from the drop-down menu to apply to that conversation. - * + Mark as important Helps Gmail learn what's important to you by marking misclassified messages. (Specific to Priority Inbox) - * - Mark as unimportant Helps Gmail learn what's not important to you by marking misclassified messages. (Specific to Priority Inbox) - * - * [ Archive and previous Removes the current view's label from your conversation and moves to the previous one. - * ] Archive and next Removes the current view's label from your conversation and moves to the next one. - * y Remove from Current View* Automatically removes the message or conversation from your current view. - * From 'Inbox,' 'y' means Archive - * From 'Starred,' 'y' means Unstar - * From 'Trash,' 'y' means Move to inbox - * From any label, 'y' means Remove the label - * * 'y' has no effect if you're in 'Spam,' 'Sent,' or 'All Mail.' - * . Show more actions Displays the 'More Actions' drop-down menu. - * - * y then o Archive and next Archives your conversation and moves to the next one. - * - * - */ diff --git a/Library/Application Support/MailMate/Resources/Layouts/Mailboxes/correspondence-arcs-widescreen.plist b/Library/Application Support/MailMate/Resources/Layouts/Mailboxes/correspondence-arcs-widescreen.plist @@ -1,198 +0,0 @@ -{ - name = "Correspondence Arcs (Widescreen)"; - rootViewer = - { - viewerType = "MmSplitView"; - orientation = "horizontal"; - children = - ( - { - // Mailboxes sidebar - viewerType = "MmBoxView"; - orientation = "vertical"; - defaultSize = 200; - minWidth = 100; - autoresize = 0; - toggleMenuTitle = "Mailboxes"; - toggleKeyEquivalent = "^~@d"; - - dragRect = { width = 16.0; height = 16.0; location = "bottomRight"; }; - - children = - ( - { - identifier = "mailboxesOutline"; - viewerType = "MmMailboxesOutlineView"; - stickyMessages = 1; - }, - { - viewerType = "MmMailboxesStatusBar"; - }, - ); - }, - { - // Main window view - // Split the entire window vertically to separate sidebar from mailbox view - viewerType = "MmSplitView"; - orientation = "horizontal"; - // collapsibleSubview = 2; // Incomplete support -- no way to get it back (1 = first, 2 = last) - children = - ( - { - // Top of main view - identifier = "pathOutlineBox"; - viewerType = "MmBoxView"; - orientation = "vertical"; - defaultSize = 1000; - autoresize = 0; - children = - ( - { - identifier = "pathControl"; - viewerType = "MmPathControlView"; - sources = ( { sourceIdentifier = "mailboxesOutline"; } ); - }, - { - viewerType = "MmSeparatorView"; showWithViews = ( "pathControl" ); - }, - { - viewerType = "MmSplitView"; - minHeight = 50; - orientation = "vertical"; - children = - ( - { - // Message list - viewerType = "MmBoxView"; - orientation = "vertical"; - defaultSize = 800; - minWidth = 500; - autoresize = 0; - children = - ( - { - viewerType = "MmLabelView"; - // TODO: Make label state current mailbox - label = "Messages"; - }, - { viewerType = "MmSeparatorView"; }, - { - identifier = "mainOutline"; - viewerType = "MmMessagesOutlineView"; - /* columnSettings = "outlineColumns"; */ - sources = ( { sourceIdentifier = "pathControl"; } ); - }, - ); - }, - { - // Correspondence view - viewerType = "MmBoxView"; - orientation = "vertical"; - defaultSize = 300; - minWidth = 300; - autoresize = 0; - children = - ( - { - viewerType = "MmLabelView"; - label = "Correspondence"; - }, - { viewerType = "MmSeparatorView"; }, - { - identifier = "correspondenceOutline"; - viewerType = "MmMessagesOutlineView"; - minWidth = 100; - sources = ( { sourceIdentifier = "mainOutline"; } ); - selectionSources = ( { sourceIdentifier = "mainOutline"; } ); - // FIXME: The transformation does not work 'per' message, i.e., it tries to combine any 'from' with any 'to' in $mainOutline. - transformation = "$ALL_MESSAGES.filter((from.address = $mainOutline.from.address and #recipient.address = $mainOutline.#recipient.address) or (from.address = $mainOutline.#recipient.address and #recipient.address = $mainOutline.from.address))"; - defaultColumns = ( "subject", "relativeDate" ); - outlineColumn = "subject"; - }, - ); - toggleMenuTitle = "Correspondence View"; - toggleKeyEquivalent = "^~@c"; - }, - ); - }, - ); - }, - { - viewerType = "MmSplitView"; - minHeight = 50; - orientation = "horizontal"; - children = - ( - { - // Thread arcs view - viewerType = "MmThreadArcsView"; - sources = ( { sourceIdentifier = "mainOutline"; } ); - selectionSources = ( { sourceIdentifier = "mainOutline"; } ); - transformation = "$ALL_MESSAGES.filter(#thread-id =[c] $mainOutline.#thread-id)"; - minWidth = 10; - defaultSize = 10; - orientation = "vertical"; - toggleMenuTitle = "Thread Arc View"; - toggleKeyEquivalent = ""; - }, - ); - }, - { - // Bottom of main view - // Split the main window horizontally to separate messages from message list - viewerType = "MmSplitView"; - orientation = "vertical"; - children = - ( - { - // Email view - viewerType = "MmBoxView"; - orientation = "vertical"; - children = - ( - { - identifier = "headersView"; - viewerType = "MmHeadersView"; - sources = ( { sourceIdentifier = "correspondenceOutline"; } ); - inject = ( "headersFormatting.plist" ); - }, - { viewerType = "MmSeparatorView"; showWithViews = ( "headersView" ); }, - { - identifier = "tagsEditor"; - viewerType = "MmTagsEditor"; - sources = ( { sourceIdentifier = "correspondenceOutline"; } ); - }, - { viewerType = "MmSeparatorView"; showWithViews = ( "tagsEditor" ); }, - { - identifier = "blockingView"; - viewerType = "MmImageBlockingView"; - sources = ( { sourceIdentifier = "correspondenceOutline"; } ); - transformation = "$correspondenceOutline.filter(##blocked-count exists)"; - }, - { viewerType = "MmSeparatorView"; showWithViews = ( "blockingView" ); }, - { - identifier = "securityView"; - viewerType = "MmSecurityView"; - sources = ( { sourceIdentifier = "correspondenceOutline"; } ); - transformation = "$correspondenceOutline.filter(##security-problem exists)"; - }, - { viewerType = "MmSeparatorView"; showWithViews = ( "securityView" ); }, - { - identifier = "messageView"; - viewerType = "MmWebView"; - sources = ( { sourceIdentifier = "correspondenceOutline"; } ); - minWidth = 175; - minHeight = 50; - }, - ); - } - ); - - toggleMenuTitle = "Message View"; - toggleKeyEquivalent = "^~@h"; - }, - ); - }, - ); - }; -} diff --git a/Library/Application Support/Sublime Text/Packages/User/Default (OSX).sublime-keymap b/Library/Application Support/Sublime Text/Packages/User/Default (OSX).sublime-keymap @@ -1,12 +1,4 @@ [ - - // { - // "keys": ["ctrl+f"], - // "command": "right_delete", - // "args": {"mode": "mode_insert"}, - // "context": [{"key": "vi_insert_mode_aware"}] - // }, - { "keys": ["\\", "e"], "command": "toggle_side_bar", @@ -56,88 +48,62 @@ "command": "git_gutter_diff_popup" }, - // { - // "keys": ["g", "d"], - // "command": "lsp_symbol_definition", - // "context": [ - // {"key": "vi_command_mode_aware"}, - // { - // "key": "lsp.session_with_capability", - // "operator": "equal", - // "operand": "definitionProvider" - // }, - // { - // "key": "auto_complete_visible", - // "operator": "equal", - // "operand": false - // } - // ] - // }, - - // { - // "keys": ["g", "s"], - // "command": "lsp_document_symbols", - // "context": [ - // {"key": "vi_command_mode_aware"}, - // { - // "key": "lsp.session_with_capability", - // "operator": "equal", - // "operand": "documentSymbolProvider" - // } - // ] - // }, - - // { - // "keys": ["g", "h"], - // "command": "lsp_hover", - // "context": [ - // {"key": "vi_command_mode_aware"}, - // { - // "key": "lsp.session_with_capability", - // "operator": "equal", - // "operand": "hoverProvider" - // } - // ] - // }, + { + "keys": ["]", "C"], "command": "sublime_linter_goto_error", + "args": { "direction": "next", "wrap": true } + }, + { + "keys": ["[", "C"], "command": "sublime_linter_goto_error", + "args": { "direction": "previous", "wrap": true } + }, + { + "keys": ["ctrl+super+r"], + "command": "sublime_linter_line_report" + }, - // { - // "keys": ["g", "d"], - // "command": "lsp_symbol_definition", - // "context": [ - // {"key": "vi_command_mode_aware"}, - // { - // "key": "lsp.session_with_capability", - // "operator": "equal", - // "operand": "definitionProvider" - // }, - // // { - // // "key": "auto_complete_visible", - // // "operator": "equal", - // // "operand": false - // // } - // ] - // }, + // { "keys": ["]", "C"], "command": "next_result" }, + // { "keys": ["[", "C"], "command": "prev_result" }, - // { - // "keys": ["]", "shift+c"], - // "command": "sublime_linter_goto_error", - // "args": { - // "direction": "next", - // "wrap": true - // } - // }, - // { - // "keys": ["ctrl+super+r"], - // "command": "sublime_linter_line_report" - // }, + // { "keys": ["ctrl+super+d"], "command": "lsp_symbol_definition" }, + { + "command": "lsp_symbol_definition", + "args": { + "side_by_side": false + }, + "keys": [ + "ctrl+super+d" + ], + "context": [ + { + "key": "lsp.session_with_capability", + "operator": "equal", + "operand": "definitionProvider" + }, + { + "key": "auto_complete_visible", + "operator": "equal", + "operand": false + } + ] + }, - // { - // "keys": ["[", "shift+c"], - // "command": "sublime_linter_goto_error", - // "args": { - // "direction": "previous", - // "wrap": true - // } - // }, + { "keys": ["ctrl+super+h"], "command": "lsp_hover"}, + { + "keys": [ + "ctrl+super+a" + ], + "command": "lsp_code_actions", + "context": [ + { + "key": "lsp.session_with_capability", + "operator": "equal", + "operand": "codeActionProvider" + } + ] + }, + { + "keys": ["super+ctrl+o"], // or ["ctrl+alt+o"] for Windows/Linux + "command": "project_manager", "args": {"action": "new"} + } ] \ No newline at end of file diff --git a/Library/Application Support/Sublime Text/Packages/User/Preferences.sublime-settings b/Library/Application Support/Sublime Text/Packages/User/Preferences.sublime-settings @@ -1,23 +1,24 @@ { "always_show_minimap_viewport": true, "auto_complete_cycle": true, - "binary_file_patterns": - [ - ".svn/", - ".git/", - "node_modules/", - "bower_components/" - ], "bold_folder_labels": true, - "color_scheme": "auto", - "light_color_scheme": "Packages/Color Scheme - Default/Sixteen.sublime-color-scheme", - "dark_color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme", + "color_scheme": "Packages/Color Scheme - Default/Sixteen.sublime-color-scheme", + // "light_color_scheme": "Packages/Color Scheme - Default/Sixteen.sublime-color-scheme", + // "dark_color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme", + + // "binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip", + // "node_modules/", + // "esm/", + // "cjs/", + // "dev/" + // ], "create_window_at_startup": false, "default_line_ending": "unix", + "detect_indentation": false, "drag_text": false, - "draw_white_space": ["trailing", "selection", "mixed_tabs"], + "draw_white_space": ["trailing", "selection"], "font_face": "IBM Plex Mono", "font_size": 14, "highlight_line": true, @@ -38,7 +39,6 @@ "match_brackets_angle": true, "mini_diff": "auto", "relative_line_numbers": true, - "detect_indentation": false, "remember_workspace": false, "shift_tab_unindent": true, "show_indentation": false, @@ -58,4 +58,6 @@ "vintageous_use_ctrl_keys": true, "vintageous_use_super_keys": null, "close_windows_when_empty": true, + + // "enable_language_service_for_javascript": false, }