Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

1.4 KB
Raw Blame
{
  "id": "930fdb3b-11a8-46fe-9bac-577332e2640e-WOS",
  "snapshot": "vscode",
  "instruction": "Please help me create a shortcut \"ctrl+j\" to move cursor focus from terminal to editor in VS Code.",
  "source": "https://superuser.com/questions/1270103/how-to-switch-the-cursor-between-terminal-and-code-in-vscode",
  "_comments": "added sleep so window could activate properly after launch; if VS code is new, keybindings.json may not exist so may need to initialize this first if file not found/downloaded successfully (Preferences, keyboard shortcuts JSON)",
  "config": [
    {
      "type": "launch",
      "parameters": {
        "command": ["code"]
      }
    },
    {
      "type": "sleep",
      "parameters": {
        "seconds": 2
      }
    },
    {
      "type": "activate_window",
      "parameters": {
        "window_name": "Visual Studio Code"
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": ["vscode"],
  "evaluator": {
    "func": "check_json_keybindings",
    "expected": {
      "type": "rule",
      "rules": {
        "expected": {
          "key": "ctrl+j",
          "command": "workbench.action.focusActiveEditorGroup",
          "when": "terminalFocus"
        }
      }
    },
    "result": {
      "type": "vm_file",
      "path": "C:\\Users\\Docker\\AppData\\Roaming\\Code\\User\\keybindings.json",
      "dest": "keybindings.json"
    }
  }
}