diff options
| author | Fuwn <[email protected]> | 2026-01-30 11:15:03 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-30 11:15:03 +0000 |
| commit | 17907eaa447a8061cc1425f0c892c0c077701d13 (patch) | |
| tree | eabbfce08f75fd6269cf91f9547ecbd4c30dda7c /internal/app/model.go | |
| parent | fix: improve orphaned session handling (diff) | |
| download | faustus-17907eaa447a8061cc1425f0c892c0c077701d13.tar.xz faustus-17907eaa447a8061cc1425f0c892c0c077701d13.zip | |
feat: Add folder reassignment for relocated projects
Diffstat (limited to 'internal/app/model.go')
| -rw-r--r-- | internal/app/model.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/app/model.go b/internal/app/model.go index 90cfecf..0bfdba0 100644 --- a/internal/app/model.go +++ b/internal/app/model.go @@ -24,6 +24,7 @@ const ( ModeDeepSearch ModeRename ModeConfirm + ModeReassign ) type ConfirmAction int @@ -64,6 +65,8 @@ type Model struct { previewSearchQuery string previewSearchMatches []int previewSearchIndex int + reassignInput textinput.Model + reassignAll bool } func NewModel(sessions []claude.Session) Model { @@ -85,12 +88,19 @@ func NewModel(sessions []claude.Session) Model { deepSearchInput.CharLimit = 100 deepSearchInput.Width = 50 + reassignInput := textinput.New() + + reassignInput.Placeholder = "Enter new project path" + reassignInput.CharLimit = 500 + reassignInput.Width = 80 + model := Model{ sessions: sessions, keys: ui.DefaultKeyMap(), searchInput: searchInput, renameInput: renameInput, deepSearchInput: deepSearchInput, + reassignInput: reassignInput, showPreview: false, } |