Skip to content

[feature] snippets #92

Description

@masukomi

I want to be able to capture "snippets" from a source that are separate from the entire (archived) thing
so that I don't have to reread the whole thing to figure out out what I found valuable about it, or to find the useful quote (or whatever) that I found in it.

--
a "snippet" is an interesting piece of text, like a quote from a book.

You may also have multiple snippets per source.

I think the Snippet model is - initially - embedded as an Array in Bookmark, but eventually could be embedded in other things.

Bookmark → has_many → Snippets
Book → has_many →Snippets
Podcast → has_many → Snippets

--

Adding a Snippet

From a web page

bookmarklet / plugin takes selected text and creates a new Snippet for that. If there is a Bookmark for that page it just appends to the array of Snippets. If there isn't it creates a bare-bones bookmark.

From anything else

form with

  • a text area for whatever text you're grabbing.
  • a "source" pull-down
    • Web Page (probably never used)
      • url
    • Book
      • author, title
      • review url (optional)
      • type-ahead pulldown of Books in Backup Brain (future)
    • Movie
      • title
    • Podcast
      Maybe Podcast is another object in the system and the only way to add a snippet from a podcast is to choose the podcast, and episode from pull-downs.

If the text you're pasting is Markdown and has an Image tag in it, then that image would be archived like any other image from page content.

Display

Inline

I think I'd like to see a global setting that toggles if Snippets are displayed inline in the feed or not.

If so:

┌─────────────────────────────────────────────────────────────────────────────────────────┐
│   ┌───────────────────────────────────────────────────────────────┐    ┌─.───────────┐  │
│   │Some awesome Site Title                                        │    │( )  Archived│  │
│   └───────────────────────────────────────────────────────────────┘    └─'───────────┘  │
│                                                                        ┌─.───────────┐  │
│   ┌───────────────────────────────────────────────────────────────┐    │( )      Edit│  │
│   │Lorem ipsum dolor sit amet consectetur adipiscing elit. Quisque│    └─'───────────┘  │
│   │faucibus ex sapien vitae pellentesque sem placerat. In id      │    ┌─.───────────┐  │
│   │cursus mi pretium tellus duis convallis. Tempus leo eu aenean  │    │( ) Mark Read│  │
│   │sed diam urna tempor.                                          │    └─'───────────┘  │
│   └───────────────────────────────────────────────────────────────┘    ┌─.───────────┐  │
│   .─.─────────────────────────────────────────────────────────────┐    │( )    Delete│  │
│  (   ) "Always ensure to lay down in such a manner that tail can  │    └─'───────────┘  │
│   `─'ghtly brush human's nose cats are cute. Growl at dogs in my  │                     │
│   │sleep hell is other people. Curl into a furry donut freak human│                     │
│   │out make funny noise mow mow mow mow mow mow success now attack│                     │
│   └───────────────────────────────────────────────────────────────┘                     │
│   .─.─────────────────────────────────────────────────────────────┐                     │
│  (   ) Walk on keyboard bite the neighbor's bratty kid whenever a │                     │
│   `─'or is opened, rush in before the human sleep kitty time. Meow│                     │
│   │all night having their mate disturbing sleeping humans if human│                     │
│   │is on laptop sit on the keyboard for wack the mini furry mouse.│                     │
│   │                                                               │                     │
│   └───────────────────────────────────────────────────────────────┘                     │
│                                                                                         │
└─────────────────────────────────────────────────────────────────────────────────────────┘

if not:
normal but with a link (maybe in under description) that says "2 snippets" and links to details view.

Details View

Basically the same as it is now, but with the snippets in boxes below the heading and above the archived text.

Editing

A snippet is editable directly and doesn't have the versioning concerns of an archive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions