MingaEditor.State.FileTree.ClipboardMark (Minga v0.1.0)

Copy Markdown View Source

Pending file tree copy or move operation.

The mark stores the selected source entry until the user chooses a paste destination.

Summary

Functions

Builds a clipboard mark for a file tree entry.

Types

operation()

@type operation() :: :copy | :move

t()

@type t() :: %MingaEditor.State.FileTree.ClipboardMark{
  dir?: boolean(),
  name: String.t(),
  operation: operation(),
  path: String.t()
}

Functions

new(path, name, dir?, operation)

@spec new(String.t(), String.t(), boolean(), operation()) :: t()

Builds a clipboard mark for a file tree entry.