Documentation ¶
Index ¶
- func ExistingNames(notePath string) (notesNames []string, err error)
- func FindNoteName(notePath string, words []string, caseSensitive bool) (noteName string, err error)
- func FormatTitle(raw string) (formated string)
- func NextNumber(notePath string) (number int, err error)
- func NoteName(number int, title string) string
- func NumberFromNoteName(noteName string) int
- func TitleFromNoteName(noteName string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExistingNames ¶
ExistingNames return the file names from the given NOTE_PATH
func FindNoteName ¶ added in v0.1.0
FindNoteName return a note from slice of string
func FormatTitle ¶ added in v0.1.0
FormatTitle return the first line of a string and cut the words to be smaller than 72 characters
func NextNumber ¶
NextNumber return the incremented number from ExistingNames
func NumberFromNoteName ¶ added in v0.1.0
NumberFromNoteName extract number from a noteName
func TitleFromNoteName ¶ added in v0.1.0
TitleFromNoteName extract title from a noteName
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.