diff --git a/cmd/finder_opts.go b/cmd/finder_opts.go index c01355a..f2d01ab 100644 --- a/cmd/finder_opts.go +++ b/cmd/finder_opts.go @@ -11,30 +11,31 @@ import ( // Filtering holds filtering options to select notes. type Filtering struct { - Path []string `arg optional placeholder:""` - Match string `help:"Terms to search for in the notes" short:"m" placeholder:""` - Limit int `help:"Limit the number of results" short:"n" placeholder:""` - Created string `help:"Only the notes created on the given date" placeholder:""` - CreatedBefore string `help:"Only the notes created before the given date" placeholder:""` - CreatedAfter string `help:"Only the notes created after the given date" placeholder:""` - Modified string `help:"Only the notes modified on the given date" placeholder:""` - ModifiedBefore string `help:"Only the notes modified before the given date" placeholder:""` - ModifiedAfter string `help:"Only the notes modified after the given date" placeholder:""` - LinkedBy []string `help:"Only the notes linked by the given notes" placeholder:"" short:"l"` - LinkingTo []string `help:"Only the notes linking to the given notes" placeholder:"" short:"L"` - NotLinkedBy []string `help:"Only the notes not linked by the given notes" placeholder:""` - NotLinkingTo []string `help:"Only the notes not linking to the given notes" placeholder:""` - MaxDistance int `help:"Maximum distance between two linked notes"` - Related []string `help:"Only the notes which might be related to the given notes"` - Orphan bool `help:"Only the notes which don't have any other note linking to them"` - Exclude []string `help:"Excludes notes matching the given file path pattern from the list" short:"x" placeholder:""` - Recursive bool `help:"Follow links recursively" short:"r"` - Interactive bool `help:"Further filter the list of notes interactively" short:"i"` + Path []string `arg optional placeholder:""` + + Match string `short:"m" placeholder:"" help:"Terms to search for in the notes"` + Limit int `short:"n" placeholder:"" help:"Limit the number of results"` + Created string ` placeholder:"" help:"Only the notes created on the given date"` + CreatedBefore string ` placeholder:"" help:"Only the notes created before the given date"` + CreatedAfter string ` placeholder:"" help:"Only the notes created after the given date"` + Modified string ` placeholder:"" help:"Only the notes modified on the given date"` + ModifiedBefore string ` placeholder:"" help:"Only the notes modified before the given date"` + ModifiedAfter string ` placeholder:"" help:"Only the notes modified after the given date"` + Related []string ` help:"Only the notes which might be related to the given notes" xor:"link"` + LinkedBy []string `short:"l" placeholder:"" help:"Only the notes linked by the given notes" xor:"link"` + LinkingTo []string `short:"L" placeholder:"" help:"Only the notes linking to the given notes" xor:"link"` + NotLinkedBy []string ` placeholder:"" help:"Only the notes not linked by the given notes" xor:"link"` + NotLinkingTo []string ` placeholder:"" help:"Only the notes not linking to the given notes" xor:"link"` + MaxDistance int ` help:"Maximum distance between two linked notes"` + Orphan bool ` help:"Only the notes which don't have any other note linking to them"` + Exclude []string `short:"x" placeholder:"" help:"Excludes notes matching the given file path pattern from the list"` + Recursive bool `short:"r" help:"Follow links recursively"` + Interactive bool `short:"i" help:"Further filter the list of notes interactively"` } // Sorting holds sorting options to order notes. type Sorting struct { - Sort []string `help:"Sort the notes by the given criterion" short:"s" placeholder:""` + Sort []string `short:"s" placeholder:"" help:"Sort the notes by the given criterion"` } // NewFinderOpts creates an instance of note.FinderOpts from a set of user flags.