()
| 294 | } |
| 295 | |
| 296 | func setupTextInput() textinput.Model { |
| 297 | ti := textinput.New() |
| 298 | ti.Prompt = "Enter directory: " |
| 299 | ti.Placeholder = "/" |
| 300 | ti.SetValue("") |
| 301 | ti.Blink() |
| 302 | ti.Focus() |
| 303 | ti.CharLimit = 156 |
| 304 | ti.Width = 50 |
| 305 | |
| 306 | return ti |
| 307 | } |
| 308 | |
| 309 | func duplicatePath(path string) bool { |
| 310 | _, isPresent := duplicatePaths[path] |