feat(maestro): live directory autocomplete in spawn form (NAP-329)
ci / rust (push) Failing after 5m3s
ci / rust (push) Failing after 5m3s
Adds api.listDir + a reusable dirAutocomplete widget (live dropdown, Tab/Enter completion, /-drill-in, per-(daemon,dir) cache) wired onto the cwd and worktree base-repo fields, with matching dropdown styling.
This commit is contained in:
@@ -1052,6 +1052,52 @@ textarea {
|
||||
border-radius: var(--r-2);
|
||||
}
|
||||
|
||||
/* ---------- directory autocomplete (NAP-329) ---------- */
|
||||
|
||||
.dir-ac {
|
||||
position: fixed;
|
||||
z-index: var(--z-toast); /* above the modal it completes within */
|
||||
margin: 0;
|
||||
padding: var(--sp-1);
|
||||
list-style: none;
|
||||
max-height: 280px;
|
||||
overflow-y: auto;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--r-2);
|
||||
box-shadow: var(--shadow-2);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--border-strong) transparent;
|
||||
}
|
||||
|
||||
.dir-ac-item {
|
||||
padding: 6px var(--sp-2);
|
||||
border-radius: var(--r-1);
|
||||
color: var(--ink);
|
||||
font-family: var(--font-mono);
|
||||
font-size: var(--fs-14);
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.dir-ac-item:hover {
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
.dir-ac-item.is-active {
|
||||
background: var(--accent-tint);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.dir-ac-more {
|
||||
padding: 6px var(--sp-2);
|
||||
color: var(--faint);
|
||||
font-size: var(--fs-12);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* ---------- not-found ---------- */
|
||||
|
||||
.not-found {
|
||||
|
||||
Reference in New Issue
Block a user