Created
October 24, 2020 06:38
-
-
Save dobrovolsky/bcf8d29cb833602c2548b54cb7ce88d3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.formatOnSave":false, | |
"[markdown]": { | |
"editor.quickSuggestions": true, | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.wordBasedSuggestions": false | |
}, | |
"explorer.sortOrder": "modified", | |
"workbench.editor.enablePreview": false, | |
"vscodeMarkdownNotes.noteCompletionConvention": "noExtension", | |
"vscodeMarkdownNotes.newNoteTemplate":"# ${noteName}\n\n## References\n\n## Links\n\n## Notes\n\n", | |
"vscodeMarkdownNotes.newNoteDirectory": "WORKSPACE_ROOT", | |
"gutterpreview.imagePreviewMaxHeight": 200, | |
"vim.leader": " ", | |
"vim.normalModeKeyBindingsNonRecursive": [ | |
// Use basic naviation with russian keyboard | |
// h j k l w b e | |
{ | |
"before": ["р"], | |
"after": ["h"] | |
}, | |
{ | |
"before": ["о"], | |
"after": ["j"] | |
}, | |
{ | |
"before": ["л"], | |
"after": ["k"] | |
}, | |
{ | |
"before": ["д"], | |
"after": ["l"] | |
}, | |
{ | |
"before": ["ц"], | |
"after": ["w"] | |
}, | |
{ | |
"before": ["и"], | |
"after": ["b"] | |
}, | |
{ | |
"before": ["у"], | |
"after": ["e"] | |
}, | |
// F f t T | |
{ | |
"before": ["а"], | |
"after": ["f"] | |
}, | |
{ | |
"before": ["А"], | |
"after": ["F"] | |
}, | |
{ | |
"before": ["е"], | |
"after": ["t"] | |
}, | |
{ | |
"before": ["Е"], | |
"after": ["T"] | |
}, | |
// A a I i O o | |
{ | |
"before": ["Ф"], | |
"after": ["A"] | |
}, | |
{ | |
"before": ["ф"], | |
"after": ["a"] | |
}, | |
{ | |
"before": ["Ш"], | |
"after": ["I"] | |
}, | |
{ | |
"before": ["ш"], | |
"after": ["i"] | |
}, | |
{ | |
"before": ["Щ"], | |
"after": ["O"] | |
}, | |
{ | |
"before": ["щ"], | |
"after": ["o"] | |
}, | |
// x u dd pp r | |
{ | |
"before": ["ч"], | |
"after": ["x"] | |
}, | |
{ | |
"before": ["г"], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "undo" | |
} | |
] | |
}, | |
{ | |
"before": ["в", "в"], | |
"after": ["d", "d"] | |
}, | |
{ | |
"before": ["з", "з"], | |
"after": ["p", "p"] | |
}, | |
{ | |
"before": ["к"], | |
"after": ["r"] | |
}, | |
// ciw diw | |
{ | |
"before": ["с", "ш", "ц"], | |
"after": ["c", "i", "w"] | |
}, | |
{ | |
"before": ["в", "ш", "ц"], | |
"after": ["d", "i", "w"] | |
}, | |
// V v | |
{ | |
"before": ["м"], | |
"after": ["v"] | |
}, | |
{ | |
"before": ["М"], | |
"after": ["V"] | |
}, | |
///////////////////////// | |
// Commands | |
///////////////////////// | |
{ | |
// insert header for date | |
"before": [ | |
"<leader>", | |
"d" | |
], | |
"after": ["g", "g", "j", "O"], | |
"commands": [ | |
{ | |
"command": "editor.action.insertSnippet", | |
"args": { | |
"snippet": "\n## $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE\n\n" | |
} | |
} | |
] | |
}, | |
{ | |
// insert the current date as markdown header NEAR TOP OF FILE | |
"before": [ | |
"<leader>", | |
"в" | |
], | |
"after": ["g", "g", "j", "O"], | |
"commands": [ | |
{ | |
"command": "editor.action.insertSnippet", | |
"args": { | |
"snippet": "\n## $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE\n\n" | |
} | |
} | |
] | |
}, | |
{ | |
// insert the current date as markdown header NEAR TOP OF FILE | |
"before": [ | |
"<leader>", | |
"t" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "editor.action.insertSnippet", | |
"args": { | |
"snippet": "\n## References\n\n## Links\n\n## Notes\n\n" | |
} | |
} | |
] | |
}, | |
{ | |
// insert template for new note | |
"before": [ | |
"<leader>", | |
"е" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "editor.action.insertSnippet", | |
"args": { | |
"snippet": "\n## References\n\n## Links\n\n## Notes\n\n" | |
} | |
} | |
] | |
}, | |
{ | |
// create new note | |
"before": [ | |
"<leader>", | |
"n" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "vscodeMarkdownNotes.newNote", | |
} | |
] | |
}, | |
{ | |
// create new note | |
"before": [ | |
"<leader>", | |
"т" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "vscodeMarkdownNotes.newNote", | |
} | |
] | |
}, | |
{ | |
// commit and push local changes | |
"before": [ | |
"<leader>", | |
"p" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "workbench.action.tasks.runTask", | |
"args": "push" | |
} | |
] | |
}, | |
{ | |
// commit and push local changes | |
"before": [ | |
"<leader>", | |
"з" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "workbench.action.tasks.runTask", | |
"args": "push" | |
} | |
] | |
}, | |
{ | |
// unlock daily notes | |
"before": [ | |
"<leader>", | |
"u" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "workbench.action.tasks.runTask", | |
"args": "decrypt" | |
} | |
] | |
}, | |
{ | |
// unlock daily notes | |
"before": [ | |
"<leader>", | |
"г" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "workbench.action.tasks.runTask", | |
"args": "decrypt" | |
} | |
] | |
}, | |
{ | |
// lock daily notes | |
"before": [ | |
"<leader>", | |
"L" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "workbench.action.tasks.runTask", | |
"args": "encrypt" | |
} | |
] | |
}, | |
{ | |
// lock daily notes | |
"before": [ | |
"<leader>", | |
"Д" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "workbench.action.tasks.runTask", | |
"args": "encrypt" | |
} | |
] | |
}, | |
{ | |
// call quck fix (mostly for spelling errors) | |
"before": [ | |
"<leader>", | |
"f" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "editor.action.quickFix", | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
} | |
] | |
}, | |
{ | |
// call quck fix (mostly for spelling errors) | |
"before": [ | |
"<leader>", | |
"а" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "editor.action.quickFix", | |
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" | |
} | |
] | |
}, | |
{ | |
// fetch url title in markdown | |
"before": [ | |
"<leader>", | |
"l" | |
], | |
"after": ["V"], | |
"commands": [ | |
{ | |
"command": "markdown-link-expander.expand", | |
}, | |
{ | |
"command": "extension.vim_escape", | |
} | |
] | |
}, | |
{ | |
// fetch url title in markdown | |
"before": [ | |
"<leader>", | |
"д" | |
], | |
"after": ["V"], | |
"commands": [ | |
{ | |
"command": "markdown-link-expander.expand", | |
}, | |
{ | |
"command": "extension.vim_escape", | |
} | |
] | |
}, | |
{ | |
// open graph | |
"before": [ | |
"<leader>", | |
"g" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "markdown-links.showGraph", | |
}, | |
] | |
}, | |
{ | |
// open graph | |
"before": [ | |
"<leader>", | |
"п" | |
], | |
"after": [], | |
"commands": [ | |
{ | |
"command": "markdown-links.showGraph", | |
}, | |
] | |
}, | |
{ | |
// insert h3 and start typing | |
"before": [ | |
"<leader>", | |
"3" | |
], | |
"after": ["O"], | |
"commands": [ | |
{ | |
"command": "editor.action.insertSnippet", | |
"args": { | |
"snippet": "\n### " | |
} | |
} | |
] | |
}, | |
// related to local vimrc | |
{ | |
"before": ["leader", "w"], | |
"commands": [ | |
"workbench.action.files.save", | |
] | |
}, | |
{ | |
"before": ["leader", "q"], | |
"commands": [ | |
"workbench.action.files.save", | |
"workbench.action.closeActiveEditor", | |
] | |
}, | |
{ | |
"before":["<CR>"], | |
"commands": [ | |
":noh", | |
] | |
}, | |
], | |
"vim.visualModeKeyBindings": [ | |
// x dd y p | |
{ | |
"before": ["ч"], | |
"after": ["x"] | |
}, | |
{ | |
"before": ["в", "в"], | |
"after": ["d", "d"] | |
}, | |
{ | |
"before": ["н"], | |
"after": ["y"] | |
}, | |
{ | |
"before": ["з"], | |
"after": ["p"] | |
} | |
], | |
"todo-tree.regex.regex": "((//|#|<!--|;|/\\*|^)\\s*($TAGS))", | |
"cSpell.language": "en,uk,ru" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment