|
184 | 184 | // vim-surround |
185 | 185 | "vim.surround": true, |
186 | 186 |
|
| 187 | + // vim settings binding key |
187 | 188 | "vim.normalModeKeyBindingsNonRecursive": [ |
188 | 189 | { "before": ["/"], "commands": ["fuzzySearch.activeTextEditor"] }, |
189 | 190 | { "before": ["\\"], "commands": ["whichkey.show"] }, |
|
207 | 208 |
|
208 | 209 | // move lines |
209 | 210 | { "before": ["<C-j>"], "commands": ["editor.action.moveLinesDownAction"] }, |
210 | | - { |
211 | | - "before": ["<C-Down>"], |
212 | | - "commands": ["editor.action.moveLinesDownAction"] |
213 | | - }, |
| 211 | + { "before": ["<C-Down>"], "commands": ["editor.action.moveLinesDownAction"] }, |
214 | 212 | { "before": ["<C-k>"], "commands": ["editor.action.moveLinesUpAction"] }, |
215 | 213 | { "before": ["<C-Up>"], "commands": ["editor.action.moveLinesUpAction"] }, |
216 | 214 | { "before": ["<C-d>"], "commands": ["editor.action.copyLinesDownAction"] }, |
|
241 | 239 | { "before": ["m", "L"], "commands": ["bookmarks.listFromAllFiles"] }, |
242 | 240 |
|
243 | 241 | // Buffers |
244 | | - { |
245 | | - "before": ["Q", "Q"], |
246 | | - "commands": ["workbench.action.closeActiveEditor"] |
247 | | - }, // Close buffer |
| 242 | + { "before": ["Q", "Q"], "commands": ["workbench.action.closeActiveEditor"] }, // Close buffer |
248 | 243 | { "before": ["<S-h>"], "commands": [":bprevious"] }, |
249 | 244 | { "before": ["<S-l>"], "commands": [":bnext"] }, |
250 | | - { |
251 | | - "before": ["<leader>", "b", "n"], |
252 | | - "commands": ["workbench.action.files.newUntitledFile"] |
253 | | - }, // New Buffer/UntitiledFile |
254 | | - { |
255 | | - "before": ["<leader>", "b", "q"], |
256 | | - "commands": ["workbench.action.closeActiveEditor"] |
257 | | - }, // Close buffer |
258 | | - { |
259 | | - "before": ["<leader>", "b", "u"], |
260 | | - "commands": ["workbench.action.reopenClosedEditor"] |
261 | | - }, // Re-open buffer |
262 | | - { |
263 | | - "before": ["<leader>", "b", "y"], |
264 | | - "commands": [ |
265 | | - "editor.action.selectAll", |
266 | | - "editor.action.clipboardCopyAction", |
267 | | - "cancelSelection" |
268 | | - ] |
269 | | - }, // copy all file (Ctr+A - Ctrl C ) |
270 | | - { |
271 | | - "before": ["<leader>", "b", "p"], |
272 | | - "commands": ["editor.action.selectAll", "editor.action.past"] |
273 | | - }, // selected all file and past |
274 | | - { |
275 | | - "before": ["<leader>", "b", "c"], |
276 | | - "commands": ["workbench.action.closeOtherEditors"] |
277 | | - }, // Close others buffer |
278 | | - { |
279 | | - "before": ["<leader>", "e"], |
280 | | - "commands": ["workbench.action.toggleSidebarVisibility"] |
281 | | - }, |
282 | | - // splits - mở cửa sổ editer trái phải |
| 245 | + { "before": ["<leader>", "b", "n"], "commands": ["workbench.action.files.newUntitledFile"] }, // New Buffer/UntitiledFile |
| 246 | + { "before": ["<leader>", "b", "q"], "commands": ["workbench.action.closeActiveEditor"] }, // Close buffer |
| 247 | + { "before": ["<leader>", "b", "u"], "commands": ["workbench.action.reopenClosedEditor"] }, // Re-open buffer |
| 248 | + { "before": ["<leader>", "b", "y"], "commands": [ "editor.action.selectAll", "editor.action.clipboardCopyAction", "cancelSelection" ] }, // copy all file (Ctr+A - Ctrl C ) |
| 249 | + { "before": ["<leader>", "b", "p"], "commands": ["editor.action.selectAll", "editor.action.past"] }, // selected all file and past |
| 250 | + { "before": ["<leader>", "b", "c"], "commands": ["workbench.action.closeOtherEditors"] }, // Close others buffer |
| 251 | + { "before": ["<leader>", "e"], "commands": ["workbench.action.toggleSidebarVisibility"] }, // splits - mở cửa sổ editer trái phải |
283 | 252 | { "before": ["<leader>", "v"], "commands": [":vsplit"] }, |
284 | 253 | { "before": ["<leader>", "s"], "commands": [":split"] }, |
285 | 254 |
|
286 | 255 | // Chuyển sang cửa sổ (editor) bên |
287 | | - { |
288 | | - "before": ["<leader>", "h"], |
289 | | - "commands": ["workbench.action.focusLeftGroup"] |
290 | | - }, |
291 | | - { |
292 | | - "before": ["<leader>", "j"], |
293 | | - "commands": ["workbench.action.focusBelowGroup"] |
294 | | - }, |
295 | | - { |
296 | | - "before": ["<leader>", "k"], |
297 | | - "commands": ["workbench.action.focusAboveGroup"] |
298 | | - }, |
299 | | - { |
300 | | - "before": ["<leader>", "l"], |
301 | | - "commands": ["workbench.action.focusRightGroup"] |
302 | | - }, |
| 256 | + { "before": ["<leader>", "h"], "commands": ["workbench.action.focusLeftGroup"] }, |
| 257 | + { "before": ["<leader>", "j"], "commands": ["workbench.action.focusBelowGroup"] }, |
| 258 | + { "before": ["<leader>", "k"], "commands": ["workbench.action.focusAboveGroup"] }, |
| 259 | + { "before": ["<leader>", "l"], "commands": ["workbench.action.focusRightGroup"] }, |
303 | 260 |
|
304 | 261 | // LEADER |
305 | 262 | { "before": ["<leader>", "r"], "commands": ["editor.action.rename"] }, |
306 | 263 | { "before": ["<leader>", "p"], "commands": ["workbench.action.quickOpen"] }, |
307 | | - { |
308 | | - "before": ["<leader>", "P"], |
309 | | - "commands": ["workbench.action.showCommands"] |
310 | | - }, |
| 264 | + { "before": ["<leader>", "P"], "commands": ["workbench.action.showCommands"] }, |
311 | 265 | { "before": ["<leader>", "f"], "commands": ["actions.find"] }, |
312 | | - { |
313 | | - "before": ["<leader>", "f", "a"], |
314 | | - "commands": ["workbench.action.findInFiles"] |
315 | | - }, |
| 266 | + { "before": ["<leader>", "f", "a"], "commands": ["workbench.action.findInFiles"] }, |
316 | 267 |
|
317 | 268 | // #harpoon |
318 | | - { |
319 | | - "before": ["<leader>", "h", "p"], |
320 | | - "commands": ["vscode-harpoon.editorQuickPick"] |
321 | | - }, |
322 | | - { |
323 | | - "before": ["<leader>", "h", "a"], |
324 | | - "commands": ["vscode-harpoon.addEditor"] |
325 | | - }, |
326 | | - { |
327 | | - "before": ["<leader>", "h", "e"], |
328 | | - "commands": ["vscode-harpoon.editEditors"] |
329 | | - }, |
330 | | - { |
331 | | - "before": ["<leader>", "h", "e"], |
332 | | - "commands": ["vscode-harpoon.editEditors"] |
333 | | - }, |
| 269 | + { "before": ["<leader>", "h", "p"], "commands": ["vscode-harpoon.editorQuickPick"] }, |
| 270 | + { "before": ["<leader>", "h", "a"], "commands": ["vscode-harpoon.addEditor"] }, |
| 271 | + { "before": ["<leader>", "h", "e"], "commands": ["vscode-harpoon.editEditors"] }, |
| 272 | + { "before": ["<leader>", "h", "e"], "commands": ["vscode-harpoon.editEditors"] }, |
334 | 273 |
|
335 | 274 | // |
336 | 275 | { "before": ["<leader>", "y"], "commands": ["vim.showRegisters"] }, |
|
370 | 309 | // -------------------------------------- |
371 | 310 | // VSCode Animations: |
372 | 311 | // -------------------------------------- |
373 | | - "animations.Command-Palette": "Slide", // Hiệu ứng animation cho Command Palette - "None", "Scale", "Slide", "Fade" |
374 | | - "animations.Tabs": "Scale", // Hiệu ứng animation cho tab - "None", "Scale", "Slide", "Flip" |
375 | | - "animations.Scrolling": "None", // Hiệu ứng animation khi cuộn - "None", "Scale", "Slide", "Fade" |
376 | | - "animations.Active": "Indent", // Hiệu ứng animation cho item đang hoạt động - "None", "Scale", "Indent" |
377 | | - "animations.CursorAnimation": true, // Hiệu ứng làm mờ khi mất focus |
| 312 | + "animations.Command-Palette": "Slide", // Hiệu ứng animation cho Command Palette - "None", "Scale", "Slide", "Fade" |
| 313 | + "animations.Tabs": "Scale", // Hiệu ứng animation cho tab - "None", "Scale", "Slide", "Flip" |
| 314 | + "animations.Scrolling": "None", // Hiệu ứng animation khi cuộn - "None", "Scale", "Slide", "Fade" |
| 315 | + "animations.Active": "Indent", // Hiệu ứng animation cho item đang hoạt động - "None", "Scale", "Indent" |
| 316 | + "animations.CursorAnimation": true, // Hiệu ứng làm mờ khi mất focus |
378 | 317 | "animations.CursorAnimationOptions": { |
379 | 318 | "Color": "#333", |
380 | 319 | "CursorStyle": "line", |
|
393 | 332 | "file:///Users/_david/vscode-custom/vscode-styles.css", |
394 | 333 | "file:///Users/_david/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.7/dist/updateHandler.js" |
395 | 334 | ], |
| 335 | + // "vscode_custom_css.imports": [ |
| 336 | + // "file:///C:/Users/DanielVo/Documents/vscode-settings/vscode-script.js", |
| 337 | + // "file:///C:/Users/DanielVo/Documents/vscode-settings/vscode-styles.css", |
| 338 | + // "file:///C:/Users/DanielVo/.vscode/extensions/brandonkirbyson.vscode-animations-2.0.7/dist/updateHandler.js" |
| 339 | + // ], |
396 | 340 |
|
397 | 341 | // -------------------------------------- |
398 | 342 | // WHICH KEY |
|
1037 | 981 | "name": "[D]eveloper [+]", |
1038 | 982 | "type": "bindings", |
1039 | 983 | "bindings": [ |
1040 | | - { |
1041 | | - "key": "r", |
1042 | | - "name": "[r]eload Window", |
1043 | | - "type": "command", |
1044 | | - "command": "workbench.action.reloadWindow" |
1045 | | - } |
| 984 | + { "key": "r", "name": "[r]eload Window", "type": "command", "command": "workbench.action.reloadWindow" } |
1046 | 985 | ] |
1047 | 986 | }, |
1048 | 987 | { |
|
1055 | 994 | "name": "Extension [c]ustom CSS and JS Loaded [+]", |
1056 | 995 | "type": "bindings", |
1057 | 996 | "bindings": [ |
1058 | | - { |
1059 | | - "key": "r", |
1060 | | - "name": "[r]eload/update", |
1061 | | - "type": "command", |
1062 | | - "command": "extension.updateCustomCSS" |
1063 | | - } |
| 997 | + { "key": "r", "name": "[r]eload/update", "type": "command", "command": "extension.updateCustomCSS" } |
1064 | 998 | ] |
1065 | 999 | }, |
1066 | 1000 | { |
|
1119 | 1053 | } |
1120 | 1054 | ] |
1121 | 1055 | } |
1122 | | - // { |
1123 | | - // "command": "multiCommand.pushTo", |
1124 | | - // "sequence": [ |
1125 | | - // "workbench.action.terminal.focus", |
1126 | | - // "workbench.action.terminal.new", |
1127 | | - // { |
1128 | | - // "command": "workbench.action.terminal.sendSequence", |
1129 | | - // "args": { |
1130 | | - // "text": "git push origin ${input:branch}\u000D" |
1131 | | - // } |
1132 | | - // } |
1133 | | - // ] |
1134 | | - // } |
1135 | 1056 | ], |
1136 | | - // "multiCommand.inputs": { |
1137 | | - // "branch": { |
1138 | | - // "type": "promptString", |
1139 | | - // "description": "Nhập tên branch để push" |
1140 | | - // } |
1141 | | - // }, |
1142 | | - |
| 1057 | + |
1143 | 1058 | // To improve performance |
1144 | 1059 | "extensions.experimental.affinity": { |
1145 | 1060 | "vscodevim.vim": 1 |
|
0 commit comments