chore(cursor): update files

This commit is contained in:
2025-02-10 01:52:23 +00:00
parent 726de4a6d7
commit 70fe417553
2 changed files with 429 additions and 423 deletions

View File

@@ -1,294 +1,293 @@
// Place your key bindings in this file to override the defaults
[ [
// //
// Command Palette // Command Palette
// //
{ {
"key": "ctrl+x m", "key": "ctrl+x m",
"command": "workbench.action.showCommands" "command": "workbench.action.showCommands"
}, },
{ {
"key": "ctrl+x ctrl+m", "key": "ctrl+x ctrl+m",
"command": "workbench.action.showCommands" "command": "workbench.action.showCommands"
}, },
{ {
"key": "ctrl+x enter", "key": "ctrl+x enter",
"command": "workbench.action.showCommands" "command": "workbench.action.showCommands"
}, },
{ {
"key": "alt+x", "key": "alt+x",
"command": "workbench.action.showCommands" "command": "workbench.action.showCommands"
}, },
// //
// Save // Save
// //
{ {
"key": "ctrl+x ctrl+s", "key": "ctrl+x ctrl+s",
"command": "workbench.action.files.save" "command": "workbench.action.files.save"
}, },
// //
// File Open // File Open
// //
{ {
"key": "ctrl+x ctrl+;", "key": "ctrl+x ctrl+f",
"command": "workbench.action.quickOpen" "command": "file-browser.open",
}, "when": "editorTextFocus"
{ },
"key": "ctrl+x ctrl+f", {
"command": "file-browser.open", "key": "ctrl+x ctrl+;",
"when": "editorTextFocus" "command": "workbench.action.quickOpen"
}, },
// //
// Fullscreen // Fullscreen
// //
{ {
"key": "ctrl+cmd+enter", "key": "ctrl+cmd+enter",
"command": "workbench.action.toggleFullScreen", "command": "workbench.action.toggleFullScreen",
"when": "!isIOS" "when": "!isIOS"
}, },
{ {
"key": "cmd+enter", "key": "cmd+enter",
"command": "workbench.action.toggleFullScreen", "command": "workbench.action.toggleFullScreen",
"when": "!isIOS" "when": "!isIOS"
}, },
{ {
"key": "ctrl+cmd+f", "key": "ctrl+cmd+f",
"command": "-workbench.action.toggleFullScreen", "command": "-workbench.action.toggleFullScreen",
"when": "!isIOS" "when": "!isIOS"
}, },
// //
// Navigation // Navigation
// //
{ {
"key": "ctrl+x ctrl+o", "key": "ctrl+x ctrl+o",
"command": "workbench.action.focusNextGroup", "command": "workbench.action.focusNextGroup",
"when": "!terminalFocus" "when": "!terminalFocus"
}, },
{ {
"key": "ctrl+x ctrl+i", "key": "ctrl+x ctrl+i",
"command": "workbench.action.focusPreviousGroup", "command": "workbench.action.focusPreviousGroup",
"when": "!terminalFocus" "when": "!terminalFocus"
}, },
// Pane navigation // Pane navigation
{ {
"key": "alt+i", "key": "alt+i",
"command": "workbench.action.navigateUp", "command": "workbench.action.navigateUp",
}, },
// Workaround for alt+i not working in VSCode. // Workaround for alt+i not working in VSCode.
{ {
"key": "cmd+alt+up", "key": "cmd+alt+up",
"command": "workbench.action.navigateUp", "command": "workbench.action.navigateUp",
}, },
{ {
"key": "alt+l", "key": "alt+l",
"command": "workbench.action.navigateRight", "command": "workbench.action.navigateRight",
}, },
{ {
"key": "alt+j", "key": "alt+j",
"command": "workbench.action.navigateLeft", "command": "workbench.action.navigateLeft",
}, },
{ {
"key": "alt+k", "key": "alt+k",
"command": "workbench.action.navigateDown", "command": "workbench.action.navigateDown",
}, },
// //
// Undo/Redo // Undo/Redo
// //
{ {
"key": "alt+-", "key": "alt+-",
"command": "undo", "command": "undo",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
{ {
"key": "shift+alt+-", "key": "shift+alt+-",
"command": "redo", "command": "redo",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
// //
// Text Navigation // Text Navigation
// //
{ {
"key": "alt+f", "key": "alt+f",
"command": "cursorWordPartRight", "command": "cursorWordPartRight",
"when": "editorTextFocus" "when": "editorTextFocus"
}, },
{ {
"key": "alt+b", "key": "alt+b",
"command": "cursorWordPartLeft", "command": "cursorWordPartLeft",
"when": "editorTextFocus" "when": "editorTextFocus"
}, },
{ {
"key": "ctrl+t", "key": "ctrl+t",
"command": "workbench.action.gotoSymbol", "command": "workbench.action.gotoSymbol",
"when": "editorTextFocus" "when": "editorTextFocus"
}, },
{ {
"key": "ctrl+c ctrl+j", "key": "ctrl+c ctrl+j",
"command": "editor.action.revealDefinition" "command": "editor.action.revealDefinition"
}, },
{ {
"key": "alt+g b", "key": "alt+g b",
"command": "workbench.action.navigateBack" "command": "workbench.action.navigateBack"
}, },
{ {
"key": "alt+shift+/", "key": "alt+shift+/",
"command": "editor.action.referenceSearch.trigger", "command": "editor.action.referenceSearch.trigger",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor" "when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
}, },
// //
// Text Manipulation // Text Manipulation
// //
{ {
"key": "alt+d", "key": "alt+d",
"command": "deleteWordPartRight", "command": "deleteWordPartRight",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
{ {
"key": "alt+backspace", "key": "alt+backspace",
"command": "deleteWordPartLeft", "command": "deleteWordPartLeft",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
{ {
"key": "ctrl+c ctrl+/", "key": "ctrl+c ctrl+/",
"command": "editor.action.commentLine", "command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
{ {
"key": "alt+p", "key": "alt+p",
"command": "notebook.cell.moveUp", "command": "notebook.cell.moveUp",
"when": "notebookEditorFocused && !inputFocus" "when": "notebookEditorFocused && !inputFocus"
}, },
{ {
"key": "alt+n", "key": "alt+n",
"command": "notebook.cell.moveDown", "command": "notebook.cell.moveDown",
"when": "notebookEditorFocused && !inputFocus" "when": "notebookEditorFocused && !inputFocus"
}, },
{ {
"key": "ctrl+c ctrl+f", "key": "ctrl+c ctrl+f",
"command": "editor.action.formatDocument", "command": "editor.action.formatDocument",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
// Workaround for alt+n not working in VSCode. // Workaround for alt+n not working in VSCode.
{ {
"key": "alt+cmd+down", "key": "alt+cmd+down",
"command": "notebook.cell.moveDown", "command": "notebook.cell.moveDown",
"when": "notebookEditorFocused && !inputFocus" "when": "notebookEditorFocused && !inputFocus"
}, },
{ {
"key": "alt+p", "key": "alt+p",
"command": "editor.action.moveLinesUpAction", "command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
{ {
"key": "alt+n", "key": "alt+n",
"command": "editor.action.moveLinesDownAction", "command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
// Workaround for alt+n not working in VSCode. // Workaround for alt+n not working in VSCode.
{ {
"key": "alt+cmd+down", "key": "alt+cmd+down",
"command": "editor.action.moveLinesDownAction", "command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly" "when": "editorTextFocus && !editorReadonly"
}, },
{ {
"key": "ctrl+x ctrl+d", "key": "ctrl+x ctrl+d",
"command": "editor.action.duplicateSelection", "command": "editor.action.duplicateSelection",
}, },
{ {
"key": "ctrl+c ctrl+.", "key": "ctrl+c ctrl+.",
"command": "editor.action.rename", "command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
}, },
// //
// Completion // Completion
// //
{ {
"key": "alt+shift+f", "key": "alt+shift+f",
"command": "editor.action.inlineSuggest.acceptNextWord" "command": "editor.action.inlineSuggest.acceptNextWord"
}, },
// //
// edamagit // edamagit
// //
{ {
"key": "ctrl+x g", "key": "ctrl+x g",
"command": "magit.status" "command": "magit.status"
}, },
{ {
"key": "alt+x g", "key": "alt+x g",
"command": "-magit.status" "command": "-magit.status"
}, },
// //
// Project Manager // Project Manager
// //
{ {
"key": "ctrl+z ctrl+s", "key": "ctrl+z ctrl+s",
"command": "projectManager.listProjects" "command": "projectManager.listProjects"
}, },
{ {
"key": "alt+cmd+p", "key": "alt+cmd+p",
"command": "-projectManager.listProjects" "command": "-projectManager.listProjects"
}, },
// //
// dired // dired
// //
{ {
"key": "ctrl+x ctrl+j", "key": "ctrl+x ctrl+j",
"command": "extension.dired.open", "command": "extension.dired.open",
"when": "editorTextFocus && !inDebugRepl" "when": "editorTextFocus && !inDebugRepl"
}, },
{ {
"key": "ctrl+x f", "key": "ctrl+x f",
"command": "-extension.dired.open", "command": "-extension.dired.open",
"when": "editorTextFocus && !inDebugRepl" "when": "editorTextFocus && !inDebugRepl"
}, },
{ {
"key": "c", "key": "c",
"command": "extension.dired.createDir", "command": "extension.dired.createDir",
"when": "dired.open && !findWidgetVisible && !inQuickOpen" "when": "dired.open && !findWidgetVisible && !inQuickOpen"
}, },
{ {
"key": "shift+=", "key": "shift+=",
"command": "-extension.dired.createDir", "command": "-extension.dired.createDir",
"when": "dired.open && !findWidgetVisible && !inQuickOpen" "when": "dired.open && !findWidgetVisible && !inQuickOpen"
}, },
{ {
"key": "ctrl+l", "key": "ctrl+l",
"command": "extension.dired.goUpDir", "command": "extension.dired.goUpDir",
"when": "dired.open && !findWidgetVisible && !inQuickOpen" "when": "dired.open && !findWidgetVisible && !inQuickOpen"
}, },
{ {
"key": "shift+b", "key": "shift+b",
"command": "-extension.dired.goUpDir", "command": "-extension.dired.goUpDir",
"when": "dired.open && !findWidgetVisible && !inQuickOpen" "when": "dired.open && !findWidgetVisible && !inQuickOpen"
}, },
// //
// swiper // swiper
// //
{ {
"key": "alt+r", "key": "alt+r",
"command": "swiper.swiper-word-at-cursor", "command": "swiper.swiper-word-at-cursor",
}, },
// //
// Multi-Cusor // Multi-Cusor
// //
{ {
"key": "alt+m", "key": "alt+m",
"command": "editor.action.insertCursorAbove", "command": "editor.action.insertCursorAbove",
"when": "editorTextFocus" "when": "editorTextFocus"
}, },
{ {
"key": "alt+cmd+up", "key": "alt+cmd+up",
"command": "-editor.action.insertCursorAbove", "command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus" "when": "editorTextFocus"
}, },
{ {
"key": "alt+/", "key": "alt+/",
"command": "editor.action.insertCursorBelow", "command": "editor.action.insertCursorBelow",
"when": "editorTextFocus" "when": "editorTextFocus"
}, },
{ {
"key": "alt+cmd+down", "key": "alt+cmd+down",
"command": "-editor.action.insertCursorBelow", "command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus" "when": "editorTextFocus"
}, },
] ]

View File

@@ -1,134 +1,141 @@
{ {
// //
// Theme // Theme
// //
"workbench.colorTheme": "One Dark Pro", "workbench.colorTheme": "One Dark Pro",
// //
// Editor // Editor
// //
"editor.fontFamily": "'Menlo Nerd Font Mono', 'Menlo Nerd Font', Menlo, Monaco, 'Courier New', monospace", "editor.fontFamily": "'Menlo Nerd Font Mono', 'Menlo Nerd Font', Menlo, Monaco, 'Courier New', monospace",
"editor.renderWhitespace": "trailing", "editor.renderWhitespace": "trailing",
"editor.formatOnSave": true,
"editor.formatOnPaste": false,
"editor.rulers": [
80,
100,
120
],
"editor.semanticHighlighting.enabled": true,
//
// Files
//
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
//
// Cursor
//
"cursor.aipreview.enabled": true,
"cursor.cpp.enablePartialAccepts": true,
"cursor.diffs.useCharacterLevelDiffs": true,
"cursor.terminal.usePreviewBox": true,
"cursor.general.enableShadowWorkspace": true,
//
// Window
//
"window.nativeFullScreen": false,
"window.commandCenter": true,
//
// Terminal
//
"terminal.integrated.persistentSessionScrollback": 1000,
"terminal.integrated.scrollback": 10000,
//
// Awesome Emacs Keybindings
//
"emacs-mcx.emacsLikeTab": true,
"emacs-mcx.killRingMax": 120,
"emacs-mcx.markRingMax": 32,
//
// File Browser
//
"file-browser.hideDotfiles": false,
"file-browser.labelIgnoredFiles": true,
//
// Project Manager
//
"projectManager.git.baseFolders": [
"~/Projects",
"~/.dotfiles",
"~/.config"
],
"projectManager.git.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
".haxelib",
"tmp",
"vendor",
"straight",
"elpaca"
],
"projectManager.any.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
"tmp",
"vendor",
"straight",
"elpaca"
],
"projectManager.hg.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
".haxelib",
"straight",
"elpaca"
],
"projectManager.svn.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
"straight",
"elpaca"
],
"projectManager.vscode.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
"straight",
"elpaca"
],
//
// Go
//
"go.formatTool": "gofumpt",
"go.inlayHints.constantValues": true,
"go.lintTool": "golangci-lint",
"go-lines.lineLength": 120,
//
// JSON
//
"[json]": {
"editor.insertSpaces": true,
"editor.tabSize": 2
},
//
// Ruby
//
"[ruby]": {
"editor.defaultFormatter": "Shopify.ruby-lsp",
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.formatOnPaste": false, "editor.formatOnType": true,
"editor.rulers": [ "editor.insertSpaces": true,
80, "editor.tabSize": 2,
100, },
120 //
], // YAML (by RedHat)
"editor.semanticHighlighting.enabled": true, //
// "redhat.telemetry.enabled": false,
// Files //
// // Settings Sync
"files.trimTrailingWhitespace": true, //
"files.insertFinalNewline": true, "sync.gist": "f69653abef0a95b41ab928e868551d87",
"files.trimFinalNewlines": true, "sync.autoUpload": false,
//
// Cursor
//
"cursor.aipreview.enabled": true,
"cursor.cpp.enablePartialAccepts": true,
"cursor.diffs.useCharacterLevelDiffs": true,
"cursor.terminal.usePreviewBox": true,
"cursor.general.enableShadowWorkspace": true,
//
// Window
//
"window.nativeFullScreen": false,
"window.commandCenter": true,
//
// Terminal
//
"terminal.integrated.persistentSessionScrollback": 1000,
"terminal.integrated.scrollback": 10000,
//
// Awesome Emacs Keybindings
//
"emacs-mcx.emacsLikeTab": true,
"emacs-mcx.killRingMax": 120,
"emacs-mcx.markRingMax": 32,
//
// File Browser
//
"file-browser.hideDotfiles": false,
"file-browser.labelIgnoredFiles": true,
//
// Project Manager
//
"projectManager.git.baseFolders": [
"~/Projects",
"~/.dotfiles",
"~/.config"
],
"projectManager.git.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
".haxelib",
"tmp",
"vendor",
"straight",
"elpaca"
],
"projectManager.any.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
"tmp",
"vendor",
"straight",
"elpaca"
],
"projectManager.hg.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
".haxelib",
"straight",
"elpaca"
],
"projectManager.svn.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
"straight",
"elpaca"
],
"projectManager.vscode.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
"straight",
"elpaca"
],
//
// Go
//
"go.formatTool": "gofumpt",
"go.inlayHints.constantValues": true,
"go.lintTool": "golangci-lint",
"go-lines.lineLength": 120,
//
// Ruby
//
"[ruby]": {
"editor.defaultFormatter": "Shopify.ruby-lsp",
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.insertSpaces": true,
"editor.tabSize": 2,
},
//
// YAML (by RedHat)
//
"redhat.telemetry.enabled": false,
//
// Settings Sync
//
"sync.gist": "f69653abef0a95b41ab928e868551d87",
"sync.autoUpload": true,
} }