mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2026-01-13 13:56:00 +01:00
Compare commits
5 commits
a3e1723787
...
0626cf69ea
| Author | SHA1 | Date | |
|---|---|---|---|
| 0626cf69ea | |||
| 5dfd6cebaa | |||
| e8958f3292 | |||
| 74643985ba | |||
| 0e234fe6df |
4 changed files with 59 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,8 +16,7 @@
|
|||
"scope": "javascript,typescript",
|
||||
"prefix": "log",
|
||||
"body": [
|
||||
"console.log('$1');",
|
||||
"$2"
|
||||
"console.log(\"$1\");",
|
||||
],
|
||||
"description": "Log output to console"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue