Skip to content

feat: track recent URLs separately from recent files #7

Description

@ironystock

Problem

When you open a doc via Ctrl L (open from URL), the URL isn't tracked anywhere. There's no "recent URLs" list and the URL isn't added to the existing recent-files list (since it has no disk path).

So if you frequently revisit the same remote markdown — a teammate's design doc, a release notes URL — you have to retype it every time.

Proposed behavior

  • Add RecentURL struct + RecentURLs []RecentURL field to Prefs
  • Track {url, title, openedAt} for each successful URL fetch
  • Surface them in a new "recent URLs" sidebar section, or as a section in the URL prompt itself (fuzzy-match against the list as the user types)
  • Cap at 10 like recent files

Open questions

  • Re-fetch on open, or also cache the rendered HTML? (HANDOFF.md flagged URL doc caching as a deferred item; this could land alongside.)
  • Should recent URLs show up in the main command palette alongside files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions