Compare commits

..

5 commits

4 changed files with 59 additions and 4 deletions

View file

@ -17,6 +17,19 @@ l () {
local target="${1:-$(pwd)}"
if [ -f $target ] ; then
# Target is not a text file
if [ -L $target ] || grep -q -P "[^\x00-\x7F]" $target; then
ls -lah $target
# Target is not a symlink, so it must be binary
if [ ! -L $target ]; then
echo ""
echo -e "\033[96mBinary file. Run 'll $target' to preview anyways.\e[0m"
fi
return
fi
less $target
return
fi

View file

@ -65,5 +65,45 @@
{
"key": "alt+q",
"command": "workbench.action.toggleMaximizedPanel"
},
{
"key": "alt+z",
"command": "workbench.action.debug.restart",
"when": "inDebugMode"
},
{
"key": "ctrl+shift+f5",
"command": "-workbench.action.debug.restart",
"when": "inDebugMode"
},
{
"key": "alt+z",
"command": "workbench.action.debug.start",
"when": "debuggersAvailable && debugState == 'inactive'"
},
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "debuggersAvailable && debugState == 'inactive'"
},
{
"key": "alt+x",
"command": "workbench.action.debug.stop",
"when": "inDebugMode && !focusedSessionIsAttach"
},
{
"key": "shift+f5",
"command": "-workbench.action.debug.stop",
"when": "inDebugMode && !focusedSessionIsAttach"
},
{
"key": "alt+c",
"command": "workbench.action.debug.continue",
"when": "debugState == 'stopped'"
},
{
"key": "f5",
"command": "-workbench.action.debug.continue",
"when": "debugState == 'stopped'"
}
]

View file

@ -33,5 +33,8 @@
"diffEditor.ignoreTrimWhitespace": false,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"autoDocstring.startOnNewLine": true
"autoDocstring.startOnNewLine": true,
"chat.disableAIFeatures": true,
"editor.snippetSuggestions": "top",
"emmet.showSuggestionsAsSnippets": true
}

View file

@ -16,8 +16,7 @@
"scope": "javascript,typescript",
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
"console.log(\"$1\");",
],
"description": "Log output to console"
}