From 327d99f4de6b271f7a7bb6ef30e085a79a74584e Mon Sep 17 00:00:00 2001 From: Ben Dixon Date: Mon, 4 Jan 2021 09:52:38 +0800 Subject: [PATCH] adds: ordering fixes, spelling csvode extension --- .gitignore | 3 +- ansible_osx.yml | 32 +++++++---- templates/vscode-keybindings.json.j2 | 85 ++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 13 deletions(-) create mode 100644 templates/vscode-keybindings.json.j2 diff --git a/.gitignore b/.gitignore index 2d50efe..039356c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -*.retry \ No newline at end of file +*.retry +.DS_Store \ No newline at end of file diff --git a/ansible_osx.yml b/ansible_osx.yml index 8dee239..ff9f137 100644 --- a/ansible_osx.yml +++ b/ansible_osx.yml @@ -111,11 +111,6 @@ - name: "Link ImageMagick6 as main version (for rmagick gem)" shell: brew link -f imagemagick@6 - - git: - repo: https://github.com/asdf-vm/asdf.git - dest: "/Users/{{ lookup('env', 'USER') }}/.asdf" - version: v0.7.1 - - name: Get the path to ZSH become: false local_action: command which zsh @@ -143,13 +138,6 @@ owner: "{{ lookup('env', 'USER') }}" force: yes - - name: "Create a default asdf configuration" - template: - src: templates/.asdfrc.j2 - dest: /Users/{{ lookup('env', 'USER') }}/.asdfrc - owner: "{{ lookup('env', 'USER') }}" - force: yes - - name: Create a default VSCode configuration template: src: templates/vscode-settings.json.j2 @@ -157,6 +145,13 @@ owner: "{{ lookup('env', 'USER') }}" force: no + - name: Create a default VSCode keuybinding configuration + template: + src: templates/vscode-keybindings.json.j2 + dest: /Users/{{ lookup('env', 'USER') }}/Library/Application Support/Code/User/keybindings.json + owner: "{{ lookup('env', 'USER') }}" + force: no + - name: Install VSCode extensions shell: code --install-extension {{ item }} with_items: @@ -179,6 +174,19 @@ - wholroyd.jinja - wingrunr21.vscode-ruby - xabikos.javascriptsnippets + - streetsidesoftware.code-spell-checker + + - git: + repo: https://github.com/asdf-vm/asdf.git + dest: "/Users/{{ lookup('env', 'USER') }}/.asdf" + version: v0.7.1 + + - name: "Create a default asdf configuration" + template: + src: templates/.asdfrc.j2 + dest: /Users/{{ lookup('env', 'USER') }}/.asdfrc + owner: "{{ lookup('env', 'USER') }}" + force: yes - name: "Install asdf plugins" shell: | diff --git a/templates/vscode-keybindings.json.j2 b/templates/vscode-keybindings.json.j2 new file mode 100644 index 0000000..03e6c85 --- /dev/null +++ b/templates/vscode-keybindings.json.j2 @@ -0,0 +1,85 @@ +// Place your key bindings in this file to override the defaultsauto[] +[ + { + "key": "ctrl+a ctrl+5", + "command": "workbench.action.splitEditor" + }, + { + "key": "cmd+\\", + "command": "-workbench.action.splitEditor" + }, + { + "key": "ctrl+a o", + "command": "workbench.action.navigateEditorGroups" + }, + { + "key": "ctrl+a ctrl+'", + "command": "workbench.action.splitEditorDown" + }, + { + "key": "ctrl+a k", + "command": "workbench.action.focusAboveGroup" + }, + { + "key": "cmd+k cmd+up", + "command": "-workbench.action.focusAboveGroup" + }, + { + "key": "ctrl+a j", + "command": "workbench.action.focusBelowGroup" + }, + { + "key": "cmd+k cmd+down", + "command": "-workbench.action.focusBelowGroup" + }, + { + "key": "ctrl+a l", + "command": "workbench.action.focusRightGroup" + }, + { + "key": "cmd+k cmd+right", + "command": "-workbench.action.focusRightGroup" + }, + { + "key": "ctrl+a h", + "command": "workbench.action.focusLeftGroup" + }, + { + "key": "cmd+k cmd+left", + "command": "-workbench.action.focusLeftGroup" + }, + { + "key": "cmd+r", + "command": "workbench.action.openRecent" + }, + { + "key": "ctrl+a ctrl+l", + "command": "workbench.action.moveEditorToRightGroup" + }, + { + "key": "cmd+k shift+cmd+right", + "command": "-workbench.action.moveEditorRightInGroup" + }, + { + "key": "cmd+backspace", + "command": "-debug.removeBreakpoint", + "when": "breakpointsFocused && !breakpointSelected" + }, + { + "key": "ctrl+a ctrl+h", + "command": "workbench.action.moveEditorToLeftGroup" + }, + { + "key": "ctrl+a z", + "command": "workbench.action.toggleEditorWidths" + }, + { + "key": "ctrl+shift+w", + "command": "workbench.action.quickSwitchWindow" + }, + { + "key": "cmd+r", + "command": "-workbench.action.reloadWindow", + "when": "isDevelopment" + } +] \ No newline at end of file