diff --git a/feed/feed.go b/feed/feed.go index 0117877..10622d4 100644 --- a/feed/feed.go +++ b/feed/feed.go @@ -30,6 +30,7 @@ const ( Muting InvalidFeed Notification + Saved Tag Thread TimelineFederated @@ -663,7 +664,7 @@ func NewFavorites(ac *api.AccountClient) *Feed { func NewBookmarks(ac *api.AccountClient) *Feed { feed := &Feed{ accountClient: ac, - feedType: Favorites, + feedType: Saved, items: make([]api.Item, 0), apiData: &api.RequestData{}, Update: make(chan DesktopNotificationType, 1), diff --git a/main.go b/main.go index 02eef63..dafb997 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ import ( "github.com/rivo/tview" ) -const version = "1.0.3" +const version = "1.0.4" func main() { util.MakeDirs() diff --git a/ui/cmdbar.go b/ui/cmdbar.go index 862f0c3..20bfaa9 100644 --- a/ui/cmdbar.go +++ b/ui/cmdbar.go @@ -73,7 +73,8 @@ func (c *CmdBar) DoneFunc(key tcell.Key) { c.tutView.tut.App.Stop() case ":compose": c.tutView.InitPost(nil) - c.Back() + c.ClearInput() + c.View.Autocomplete() case ":blocking": c.tutView.Timeline.AddFeed( NewBlocking(c.tutView), diff --git a/ui/feed.go b/ui/feed.go index ce728ec..ae3591f 100644 --- a/ui/feed.go +++ b/ui/feed.go @@ -156,7 +156,7 @@ func NewFederatedFeed(tv *TutView) *Feed { } func NewLocalFeed(tv *TutView) *Feed { - f := feed.NewTimelineFederated(tv.tut.Client) + f := feed.NewTimelineLocal(tv.tut.Client) f.LoadNewer() fd := &Feed{ tutView: tv, diff --git a/ui/timeline.go b/ui/timeline.go index 8dd587f..e6fb909 100644 --- a/ui/timeline.go +++ b/ui/timeline.go @@ -132,6 +132,8 @@ func (tl *Timeline) GetTitle() string { ct = "timeline home" case feed.TimelineLocal: ct = "timeline local" + case feed.Saved: + ct = "saved/bookmarked toots" case feed.User: ct = "timeline user" case feed.UserList: