feat(vscodium): new keybindings

This commit is contained in:
Sergio Laín 2024-01-30 13:01:38 +01:00
parent 8497ab4c5f
commit 0d6848df0a
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 106 additions and 3 deletions

View file

@ -299,5 +299,25 @@
"key": "tab",
"command": "-editor.action.inlineSuggest.commit",
"when": "inlineSuggestionHasIndentationLessThanTabSize && inlineSuggestionVisible && !editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible"
},
{
"key": "] d",
"command": "editor.action.marker.next",
"when": "editorFocus"
},
{
"key": "alt+f8",
"command": "-editor.action.marker.next",
"when": "editorFocus"
},
{
"key": "[ d",
"command": "editor.action.marker.prev",
"when": "editorFocus"
},
{
"key": "shift+alt+f8",
"command": "-editor.action.marker.prev",
"when": "editorFocus"
}
]

View file

@ -233,6 +233,9 @@
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"gopls": {
"ui.semanticTokens": true
},
// File explorer
// Terminal
"terminal.integrated.cursorBlinking": true,
@ -815,7 +818,89 @@
"command": "workbench.action.editor.changeLanguageMode"
}
]
},
{
"key": "s",
"name": " Search",
"type": "bindings",
"bindings": [
{
"key": "b",
"name": "Buffers/Editors",
"type": "command",
"command": "workbench.action.showAllEditors"
},
{
"key": "e",
"name": "Extensions",
"type": "command",
"command": "workbench.view.extensions"
},
{
"key": "c",
"name": "Commands",
"type": "command",
"command": "workbench.action.showCommands"
},
{
"key": "s",
"name": "Goto Symbol",
"type": "command",
"command": "workbench.action.gotoSymbol"
},
{
"key": "S",
"name": "Goto Symbol (Workspace)",
"type": "command",
"command": "workbench.action.showAllSymbols"
},
{
"key": "k",
"name": "Keymaps",
"type": "command",
"command": "workbench.action.openGlobalKeybindings"
}
]
},
{
"key": "u",
"name": " ui",
"type": "bindings",
"bindings": [
{
"key": "b",
"name": "Toggle sidebar",
"type": "command",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "p",
"name": "Toggle panel",
"type": "command",
"command": "workbench.action.togglePanel"
},
{
"key": "c",
"name": "Colorscheme",
"type": "command",
"command": "workbench.action.selectTheme"
},
{
"key": "m",
"name": "Toggle maximized panel",
"type": "command",
"command": "workbench.action.toggleMaximizedPanel"
},
{
"key": "a",
"name": "Toggle activitybar",
"type": "command",
"command": "workbench.action.toggleActivityBarVisibility"
}
]
}
],
"workbench.statusBar.visible": false
// Generated automatically
"workbench.statusBar.visible": false,
"workbench.activityBar.location": "hidden"
}

View file

@ -58,8 +58,6 @@ vim.api.nvim_create_autocmd("User", {
map("n", "<leader>xx", vscode_action("workbench.actions.view.problems"))
-- open file explorer
map("n", "<leader>e", vscode_action("workbench.view.explorer"))
-- toggle side bar
map("n", "<leader>ue", vscode_action("workbench.action.toggleSidebarVisibility"))
-- terminal
map("n", [[<c-\>]], vscode_action("workbench.action.terminal.toggleTerminal"))
map("n", "<leader>fts", vscode_action("workbench.action.terminal.newWithCwd"))