chore: rename ‹editor› group of roles
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
8e8c31c1f1
commit
a11b009120
22 changed files with 7 additions and 5 deletions
roles/editor_vscode/files
12
roles/editor_vscode/files/code-url-handler.desktop
Normal file
12
roles/editor_vscode/files/code-url-handler.desktop
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Desktop Entry]
|
||||
Name=Visual Studio Code - URL Handler
|
||||
Comment=Code Editing. Redefined.
|
||||
GenericName=Text Editor
|
||||
Exec=/opt/VSCode-linux-x64/bin/code-insiders --no-sandbox --open-url %U
|
||||
Icon=/opt/VSCode-linux-x64/resources/app/resources/linux/code.png
|
||||
Type=Application
|
||||
NoDisplay=true
|
||||
StartupNotify=true
|
||||
Categories=Utility;TextEditor;Development;IDE;
|
||||
MimeType=x-scheme-handler/vscode-insiders;
|
||||
Keywords=vscode;
|
18
roles/editor_vscode/files/code.desktop
Normal file
18
roles/editor_vscode/files/code.desktop
Normal file
|
@ -0,0 +1,18 @@
|
|||
[Desktop Entry]
|
||||
Name=Visual Studio Code Insiders
|
||||
Comment=Code Editing. Refined.
|
||||
GenericName=Text Editor
|
||||
Exec=/opt/VSCode-linux-x64/bin/code-insiders --no-sandbox --unity-launch %F
|
||||
Icon=/opt/VSCode-linux-x64/resources/app/resources/linux/code.png
|
||||
Type=Application
|
||||
StartupNotify=false
|
||||
StartupWMClass=code - insiders
|
||||
Categories=Utility;TextEditor;Development;IDE;
|
||||
MimeType=text/plain;inode/directory;
|
||||
Actions=new-empty-window;
|
||||
Keywords=vscode;
|
||||
|
||||
[Desktop Action new-empty-window]
|
||||
Name=New Empty Window
|
||||
Exec=/opt/VSCode-linux-x64/bin/code-insiders --no-sandbox --new-window %F
|
||||
Icon=/opt/VSCode-linux-x64/resources/app/resources/linux/code.png
|
78
roles/editor_vscode/files/keybindings.json
Normal file
78
roles/editor_vscode/files/keybindings.json
Normal file
|
@ -0,0 +1,78 @@
|
|||
[
|
||||
{
|
||||
"key": "alt+f",
|
||||
"command": "workbench.action.toggleMaximizedPanel"
|
||||
},
|
||||
{
|
||||
"key": "f7",
|
||||
"command": "workbench.view.explorer"
|
||||
},
|
||||
{
|
||||
"key": "f7",
|
||||
"command": "workbench.action.toggleSidebarVisibility",
|
||||
"when": "explorerViewletVisible"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+e",
|
||||
"command": "-workbench.view.explorer"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+k",
|
||||
"command": "workbench.action.terminal.clear",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+pagedown",
|
||||
"command": "workbench.action.terminal.focusNext",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+pageup",
|
||||
"command": "workbench.action.terminal.focusPrevious",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k k",
|
||||
"command": "workbench.action.focusAboveGroup"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k ctrl+up",
|
||||
"command": "-workbench.action.focusAboveGroup"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k j",
|
||||
"command": "workbench.action.focusBelowGroup"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k ctrl+down",
|
||||
"command": "-workbench.action.focusBelowGroup"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k h",
|
||||
"command": "workbench.action.focusLeftGroup"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k ctrl+left",
|
||||
"command": "-workbench.action.focusLeftGroup"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k l",
|
||||
"command": "workbench.action.focusRightGroup"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k ctrl+right",
|
||||
"command": "-workbench.action.focusRightGroup"
|
||||
},
|
||||
{
|
||||
"key": "shift+alt+m",
|
||||
"command": "workbench.action.customizeLayout"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+k ctrl+z",
|
||||
"command": "workbench.action.toggleCenteredLayout"
|
||||
},
|
||||
{
|
||||
"key": "alt+b",
|
||||
"command": "workbench.action.toggleAuxiliaryBar"
|
||||
}
|
||||
]
|
158
roles/editor_vscode/files/settings.json
Normal file
158
roles/editor_vscode/files/settings.json
Normal file
|
@ -0,0 +1,158 @@
|
|||
{
|
||||
"editor.cursorBlinking": "phase",
|
||||
"editor.cursorStyle": "line",
|
||||
|
||||
"editor.fontLigatures": true,
|
||||
|
||||
// "editor.fontFamily": "Berkeley Mono Variable",
|
||||
// "editor.fontLigatures": "'ss01' off, 'ss02' on, 'ss03' off, 'ss04' off, 'ss05' off",
|
||||
|
||||
"editor.fontFamily": "Cascadia Code NF",
|
||||
"editor.fontWeight": 350,
|
||||
"editor.fontLigatures": "'ss01' off, 'zero' off", // italics for Cascadia Code
|
||||
|
||||
// "editor.fontFamily": "Comic Code Ligatures",
|
||||
// "editor.fontFamily": "Courier Prime",
|
||||
// "editor.fontFamily": "CozetteVector",
|
||||
// "editor.fontFamily": "Fira Code",
|
||||
// "editor.fontFamily": "Hack",
|
||||
// "editor.fontFamily": "IBM Plex Mono",
|
||||
// "editor.fontFamily": "Inconsolata",
|
||||
// "editor.fontFamily": "Input Mono",
|
||||
// "editor.fontFamily": "Input Mono Narrow",
|
||||
// "editor.fontFamily": "Input Mono Condensed",
|
||||
// "editor.fontFamily": "Input Mono Compressed",
|
||||
|
||||
// "editor.fontFamily": "Iosevka Term",
|
||||
// "editor.fontFamily": "Iosevka Term Extended",
|
||||
// "editor.fontFamily": "Iosevka Term Slab",
|
||||
// "editor.fontFamily": "Iosevka Term Slab Extended",
|
||||
// "editor.fontLigatures": "'ss15'",
|
||||
// Iosevka SSs
|
||||
// 01 - Andale Mono 02 - Anonymous Pro 03 - Consolas
|
||||
// 04 - Menlo 05 - Fira Mono 06 - Liberation Mono
|
||||
// 07 - Monaco 08 - Pragmasevka 09 - Source Code Pro
|
||||
// 10 - Envy Code R 11 - X Window 12 - Ubuntu Mono
|
||||
// 13 - Lucida 14 - JetBrains Mono 15 - IBM Plex Mono
|
||||
// 16 - PT Mono 17 - Recursive Mono 18 - Input Mono
|
||||
// 20 - Curly
|
||||
|
||||
// "editor.fontFamily": "Iosevka Comfy",
|
||||
// "editor.fontFamily": "Iosevka Comfy Motion",
|
||||
// "editor.fontFamily": "Iosevka Comfy Wide",
|
||||
// "editor.fontFamily": "Iosevka Mornfall",
|
||||
// "editor.fontFamily": "Pragmasevka",
|
||||
// "editor.fontFamily": "Zed Mono",
|
||||
|
||||
// "editor.fontFamily": "JetBrains Mono",
|
||||
// "editor.fontWeight": 350,
|
||||
// "editor.fontLigatures": "'ss02'",
|
||||
|
||||
// "editor.fontFamily": "JuliaMono",
|
||||
|
||||
// "editor.fontFamily": "Monaspace Neon",
|
||||
// "editor.fontFamily": "Monaspace Argon",
|
||||
// "editor.fontFamily": "Monaspace Xenon",
|
||||
// "editor.fontFamily": "Monaspace Radon",
|
||||
// "editor.fontFamily": "Monaspace Krypton",
|
||||
// "editor.fontLigatures": "'calt', 'liga', 'dlig'",
|
||||
|
||||
// "editor.fontFamily": "Monocraft Nerd Font",
|
||||
|
||||
// "editor.fontFamily": "MonoLisa Variable",
|
||||
// "editor.fontWeight": 350,
|
||||
// "editor.fontLigatures": "'ss02' off, 'ss03' off, 'ss04' on, 'ss17' on, 'ss18' off",
|
||||
// "editor.lineHeight": 0,
|
||||
// MonoLisa SSs
|
||||
// zero - slashed zero ‹ 0 ›
|
||||
// ss01 - normal asterisk ‹ * ›
|
||||
// ss02 - script variant
|
||||
// ss03, ss04 - alt g ‹ g ›
|
||||
// ss05 - alt sharp s ‹ ß ›
|
||||
// ss06, ss18 - alt @ ‹ @ ›
|
||||
// ss07 - alt {} ‹{ }›
|
||||
// ss08 - alt () ‹( )›
|
||||
// ss09, ss10 - alt >= <= liga ‹ >=›
|
||||
// ss11 - hexadecimal multiply sign ‹0xF›
|
||||
// ss12 - thin backslash ‹ \\›
|
||||
// ss13 - alt $ ‹ $ ›
|
||||
// ss14 - alt & ‹ & ›
|
||||
// ss15 - alt i ‹ i ›
|
||||
// ss16 - alt r ‹ r ›
|
||||
// ss17 - alt .= and ..= ‹..=›
|
||||
|
||||
// "editor.fontFamily": "PragmataPro",
|
||||
// "editor.fontFamily": "PragmataPro Mono",
|
||||
// "editor.fontFamily": "PragmataPro Liga",
|
||||
// "editor.fontFamily": "PragmataPro Mono Liga",
|
||||
// "editor.fontLigatures": "'ss14' on",
|
||||
// Pragmata SSs
|
||||
// ss03 - Fraktur
|
||||
// ss04 - Fraktur Bold
|
||||
// ss05 - Poker
|
||||
// ss06 - Script
|
||||
// ss07 - Script Bold
|
||||
// ss08 - Serif Bold
|
||||
// ss09 - Serif Italic
|
||||
// ss10 - Serif Bold Italic
|
||||
// ss11 - Braille
|
||||
// ss13 - git lines
|
||||
// ss12 - Discretionary ligatures
|
||||
// ss14 - pre2020 style
|
||||
|
||||
// "editor.fontFamily": "Rec Mono Linear",
|
||||
// "editor.fontFamily": "Roboto Mono",
|
||||
// "editor.fontFamily": "SF Mono",
|
||||
// "editor.fontFamily": "Source Code Pro",
|
||||
// "editor.fontFamily": "Sudo",
|
||||
|
||||
// "editor.fontFamily": "Victor Mono",
|
||||
// "editor.fontWeight": 450,
|
||||
|
||||
"editor.fontSize": 18,
|
||||
"editor.lineHeight": 21,
|
||||
// "editor.fontVariations": true,
|
||||
|
||||
"editor.inlayHints.fontSize": 12,
|
||||
|
||||
"terminal.integrated.fontSize": 15,
|
||||
"editor.lineNumbers": "relative",
|
||||
|
||||
// "editor.minimap.enabled": false,
|
||||
"editor.minimap.maxColumn": 80,
|
||||
"editor.renderWhitespace": "all",
|
||||
"editor.rulers": [80, 100],
|
||||
|
||||
// "git.autofetch": true,
|
||||
|
||||
"window.menuBarVisibility": "toggle",
|
||||
"window.titleBarStyle": "custom",
|
||||
|
||||
"workbench.settings.editor": "json",
|
||||
"workbench.editor.showTabs": "multiple",
|
||||
"editor.guides.indentation": true,
|
||||
"editor.guides.highlightActiveIndentation": true,
|
||||
"[typescript]": {
|
||||
"editor.defaultFormatter": "denoland.vscode-deno"
|
||||
},
|
||||
"presentation-mode.active": {
|
||||
"window.zoomLevel": 2.5
|
||||
},
|
||||
"dev.containers.dockerComposePath": "podman-compose",
|
||||
"dev.containers.dockerPath": "podman",
|
||||
"diffEditor.renderSideBySide": false,
|
||||
"notebook.lineNumbers": "on",
|
||||
"jupyter.askForKernelRestart": false,
|
||||
"terminal.integrated.stickyScroll.enabled": false,
|
||||
"window.zoomLevel": 0.5,
|
||||
"window.density.editorTabHeight": "compact",
|
||||
|
||||
"workbench.preferredLightColorTheme": "Night Owl Light",
|
||||
"workbench.preferredDarkColorTheme": "Dracula",
|
||||
"workbench.activityBar.location": "top",
|
||||
"window.customTitleBarVisibility": "auto",
|
||||
"workbench.colorTheme": "Dracula",
|
||||
"zig.path": "~/.zig/zig",
|
||||
"zig.zls.path": "/home/mfocko/.config/Code - Insiders/User/globalStorage/ziglang.vscode-zig/zls_install/zls",
|
||||
"zig.initialSetupDone": true
|
||||
}
|
31
roles/editor_vscode/files/update.sh
Normal file
31
roles/editor_vscode/files/update.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
|
||||
# for upstream
|
||||
URL='https://code.visualstudio.com/sha/download?build=insider&os=linux-x64'
|
||||
|
||||
# for local
|
||||
# URL='https://maxwell.mfocko.xyz/code-insiders.tar.gz'
|
||||
|
||||
# for local over VPN (also use --no-check-certificate)
|
||||
# URL='https://172.16.0.2/code-insiders.tar.gz'
|
||||
|
||||
echo ">>> Downloading";
|
||||
wget $URL -O /tmp/code.tar.gz
|
||||
|
||||
echo ">>> Removing and extracting";
|
||||
rm -rf /opt/VSCode-linux-x64
|
||||
tar xvaf /tmp/code.tar.gz -C /opt/
|
||||
|
||||
# Check for binaries
|
||||
if ! [ -x /usr/local/bin/code-insiders ]; then
|
||||
echo ">>> Linking binaries";
|
||||
ln -s /opt/VSCode-linux-x64/bin/code-insiders /usr/local/bin/
|
||||
ln -s /opt/VSCode-linux-x64/bin/code-insiders /usr/local/bin/code
|
||||
fi
|
||||
|
||||
# Check for *.desktop
|
||||
if ! ls /usr/share/applications | grep visual-studio-code; then
|
||||
echo ">>> Installing desktop files";
|
||||
PATH_TO_APPS=/home/mfocko/.local/share/visual-studio-code-insiders
|
||||
sudo cp $PATH_TO_APPS{,-url-handler}.desktop /usr/share/applications/;
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue