feat: TUI SFTP Browser Tab - Task 18

- SFTPBrowserTab with remote directory browsing
- Open via Ctrl+F from host list
- Navigate dirs, filter with /, refresh with r
- Dir/icon display with file sizes
- Sort dirs first, then by name
This commit is contained in:
swanadiva
2026-06-23 15:08:22 +07:00
parent 3dc482e353
commit 94ec00c303
6 changed files with 468 additions and 0 deletions
+8
View File
@@ -75,6 +75,14 @@ func (t *HostListTab) Update(msg tea.Msg) (Tab, tea.Cmd) {
}
}
case "ctrl+f":
if len(t.hosts) > 0 {
host := t.hosts[t.selectedIndex]
return t, func() tea.Msg {
return openSFTPMsg{host: host}
}
}
case "q", "ctrl+c":
return t, func() tea.Msg {
return quitMsg{}