listduplicates

package
v1.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(ctx context.Context, db bun.IDB, byPath bool) *run

Process lists the groups of live notes with the same title, in any folder, or only with the same path (the same folder too) when byPath: the notes a path cannot tell apart. Untitled notes are not compared. TODO: notes with a near-identical content are not found, the content is sealed so the base cannot compare it; when an agent needs them, hash the content in noteindex.

Types

type Group

type Group struct {
	Key   string `json:"key"`
	Notes []Note `json:"notes"`
}

Group is the notes sharing a title (any case), or a folder and a title, hence a path: Key is that title or path.

type Note

type Note struct {
	ID        string    `json:"id"`
	Path      string    `json:"path"`
	UpdatedAt time.Time `json:"updated_at"`
	Length    int       `json:"length"`
}

Note is a live note of a group, with the length of its content in characters.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL