(directory: string)
| 80 | setStore("projects", scope, [{ worktree: directory, expanded: true }, ...current()]) |
| 81 | }, |
| 82 | close(directory: string) { |
| 83 | setStore( |
| 84 | "projects", |
| 85 | input.scope(), |
| 86 | current().filter((project) => project.worktree !== directory), |
| 87 | ) |
| 88 | }, |
| 89 | expand(directory: string) { |
| 90 | const index = current().findIndex((project) => project.worktree === directory) |
| 91 | if (index !== -1) setStore("projects", input.scope(), index, "expanded", true) |