Add windows-terminal role for Windows
This commit is contained in:
31
roles/windows-terminal/tasks/actions.yaml
Normal file
31
roles/windows-terminal/tasks/actions.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
- name: get list of existing actions
|
||||
set_fact:
|
||||
actions: '{{settings.actions}}'
|
||||
action_keys: '{{settings.actions | json_query("[].keys")}}'
|
||||
|
||||
- name: add next tab action key mapping
|
||||
when: '"alt+shift+]" not in action_keys'
|
||||
set_fact:
|
||||
actions: >-
|
||||
{{
|
||||
actions + [{
|
||||
"command": {"action": "nextTab", "tabSwitcherMode": "disabled"},
|
||||
"keys": "alt+shift+]"
|
||||
}]
|
||||
}}
|
||||
|
||||
- name: add previous tab action key mapping
|
||||
when: '"alt+shift+[" not in action_keys'
|
||||
set_fact:
|
||||
actions: >-
|
||||
{{
|
||||
actions + [{
|
||||
"command": {"action": "prevTab", "tabSwitcherMode": "disabled"},
|
||||
"keys": "alt+shift+["
|
||||
}]
|
||||
}}
|
||||
|
||||
- name: set actions in settings
|
||||
set_fact:
|
||||
settings: '{{settings | combine({"actions": actions})}}'
|
||||
Reference in New Issue
Block a user