grizzly

package module
v0.0.0-...-ef6702b Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

README

grizzly

Extra utilities for Bear.app.

Library

To use grizzly as a library, just do go get github.com/ruivieira/grizzly or add it to your go.mod.

CLI

To use the CLI, just do

$ cd grizlly
$ go build
CLI commands
  • -d, Show duplicate titles and counts
  • -ts, Suggest tag for given title (based on your data)
  • --tail n, --head n, Show first or last n entries, in order
  • -m, Show all marked text for all notes
  • -u, Show all notes which are not referenced anywhere
  • -s, --search, Search notes using partial title

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllMarked

func GetAllMarked(db *gorm.DB, notes *[]Note)

func GetAllNotes

func GetAllNotes(db *gorm.DB, notes *[]Note)

func GetAllWithTags

func GetAllWithTags(db *gorm.DB, notes *[]NoteTag)

func GetDuplicates

func GetDuplicates(db *gorm.DB, notes *[]NoteDuplicate)

func GetHeadWithTags

func GetHeadWithTags(db *gorm.DB, notes *[]NoteTag, limit int)

func GetTailWithTags

func GetTailWithTags(db *gorm.DB, notes *[]NoteTag, limit int)

func GetUnlinked

func GetUnlinked(db *gorm.DB, unlinked *[]string)

func OpenDB

func OpenDB() *gorm.DB

func SearchTitles

func SearchTitles(db *gorm.DB, partialTitle string, notes *[]NoteTag)

Types

type Note

type Note struct {
	Id         int
	Title      string
	Text       string
	Tags       []string
	Identifier string
}

type NoteDuplicate

type NoteDuplicate struct {
	Id    int
	Title string
	Count int
}

type NoteTag

type NoteTag struct {
	Id           int
	Title        string
	Tags         []string
	Identifier   string
	CreationDate time.Time `gorm:"type:timestamp"`
}

Directories

Path Synopsis
grizzly module

Jump to

Keyboard shortcuts

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