Skip to content

Instantly share code, notes, and snippets.

@tuxracer
Created May 12, 2022 03:16
Show Gist options
  • Select an option

  • Save tuxracer/34a93362b32c447b457e8f72b43aa93d to your computer and use it in GitHub Desktop.

Select an option

Save tuxracer/34a93362b32c447b457e8f72b43aa93d to your computer and use it in GitHub Desktop.

Revisions

  1. tuxracer created this gist May 12, 2022.
    11 changes: 11 additions & 0 deletions extensions.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    {
    "recommendations": [
    "rioj7.command-variable",
    "davidanson.vscode-markdownlint",
    "esbenp.prettier-vscode",
    "sleistner.vscode-fileutils",
    "teabyii.ayu",
    "yzhang.markdown-all-in-one",
    "wk-j.save-and-run"
    ]
    }
    6 changes: 6 additions & 0 deletions keybindings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    {
    "key": "cmd+n",
    "command": "workbench.action.tasks.runTask",
    "args": "New note",
    "when": "config.workspaceKeybindings.quickNewFile.enabled"
    }
    103 changes: 103 additions & 0 deletions settings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,103 @@
    {
    "workbench.colorTheme": "Ayu Light",
    "workbench.activityBar.visible": false,
    "workbench.iconTheme": null,
    "workbench.statusBar.visible": false,
    "workbench.tips.enabled": false,
    "workbench.view.alwaysShowHeaderActions": false,
    "editor.lineNumbers": "off",
    "editor.renderLineHighlight": "none",
    "gitlens.blame.highlight.enabled": true,
    "editor.fontFamily": "'Consolas NF', Consolas, monospace",
    "window.title": "${folderName} - ${activeEditorMedium}",
    "files.autoSave": "afterDelay",
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "files.insertFinalNewline": true,
    "files.trimTrailingWhitespace": true,
    "files.trimFinalNewlines": true,
    "explorer.confirmDragAndDrop": false,
    "search.quickOpen.includeSymbols": true,
    "explorer.confirmDelete": false,
    "workspaceKeybindings.quickNewFile.enabled": true,
    "workbench.editor.showIcons": true,
    "files.exclude": {
    ".markdownlint.json": true
    },
    "explorer.sortOrder": "modified",
    "git.autofetch": true,
    "git.autoStash": true,
    "git.confirmSync": false,
    "git.fetchOnPull": true,
    "git.rebaseWhenSync": true,
    "git.enableSmartCommit": true,
    "git.postCommitCommand": "push",
    "markdown.extension.preview.autoShowPreviewToSide": false,
    "triggerTaskOnSave.showNotifications": true,
    "saveAndRun": {
    "commands": [
    {
    "match": ".*",
    "cmd": "git add -A .; git commit -m \"update ${relativeFile}\" -m \"auto commit\"; git push",
    "useShortcut": false,
    "silent": true
    }
    ]
    },
    "gitlens.showWelcomeOnInstall": false,
    "gitlens.showWhatsNewAfterUpgrades": false,
    "gitlens.currentLine.enabled": false,
    "editor.minimap.enabled": false,
    "workbench.editor.limit.enabled": true,
    "workbench.editor.limit.value": 1,
    "workbench.editor.showTabs": false,
    "workbench.editor.enablePreview": false,
    "gitlens.menus": {
    "editor": {
    "blame": false,
    "clipboard": false,
    "compare": false,
    "history": false,
    "remote": false
    },
    "editorGroup": {
    "blame": false,
    "compare": false
    },
    "editorTab": {
    "clipboard": false,
    "compare": false,
    "history": false,
    "remote": false
    },
    "explorer": {
    "clipboard": false,
    "compare": false,
    "history": false,
    "remote": false
    },
    "scm": {
    "authors": false
    },
    "scmGroupInline": {
    "stash": false
    },
    "scmGroup": {
    "compare": false,
    "openClose": false,
    "stash": false
    },
    "scmItem": {
    "clipboard": false,
    "compare": false,
    "history": false,
    "remote": false,
    "stash": false
    }
    },
    "customizeUI.font.regular": "\"Segoe UI\"",
    "customizeUI.stylesheet": {
    ".monaco-workbench": "font-weight: 400;"
    // ".monaco-workbench .part.editor>.content .editor-group-container>.title": "display: none !important;"
    },
    "search.useIgnoreFiles": false
    }
    57 changes: 57 additions & 0 deletions tasks.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    {
    "version": "2.0.0",
    "tasks": [
    {
    "label": "New note",
    "command": "touch ${input:shortDate}.md; code ${input:shortDate}.md",

    // to create and open this new file use the following instead
    // "command": "touch `date +%Y%m%d-%H%M`-${input:fileName}.txt; code . `date +%Y%m%d-%H%M`-${input:fileName}.txt",

    "type": "shell",
    "problemMatcher": [],
    "presentation": {
    "echo": false,
    "reveal": "silent",
    "focus": false,
    "panel": "shared",
    "showReuseMessage": false,
    "clear": true
    },
    "promptOnClose": false
    },
    {
    "label": "autoCommit",
    "command": "git add -A .; git commit -m \"auto commit - ${input:shortDate}\"; git push; git pull origin main --rebase; git fetch --tags --force;",
    "type": "shell"
    }
    ],

    "inputs": [
    {
    "type": "promptString",
    "id": "fileName",
    "description": "Complete my file name.",
    "default": "note" // make your default text here
    },
    {
    "id": "shortDate",
    "type": "command",
    "command": "extension.commandvariable.dateTime",
    "args": {
    "locale": "en-US",
    "options": {
    "weekday": "long",
    "year": "numeric",
    "month": "2-digit",
    "day": "2-digit",
    "hour12": false,
    "hour": "2-digit",
    "minute": "2-digit",
    "second": "2-digit"
    },
    "template": "${year}${month}${day}${hour}${minute}${second}"
    }
    }
    ]
    }