SYMBOL INDEX (147 symbols across 20 files) FILE: cmd/archive/archive.go type commandOptions (line 16) | type commandOptions struct function CreateArchiveCmd (line 23) | func CreateArchiveCmd() *cobra.Command { function attachOpts (line 42) | func attachOpts(cmd *cobra.Command, cmdOpts *commandOptions) { function run (line 49) | func run(templateOpts config.Opts, cmdOpts commandOptions) error { FILE: cmd/config/config.go type commandOptions (line 14) | type commandOptions struct function CreateConfigCmd (line 21) | func CreateConfigCmd() *cobra.Command { function attachOpts (line 48) | func attachOpts(cmd *cobra.Command, cmdOpts *commandOptions) { function CreateConfigUpdateCmd (line 56) | func CreateConfigUpdateCmd() *cobra.Command { function displayConfigFile (line 72) | func displayConfigFile(configPath string) error { function displayActiveConfig (line 89) | func displayActiveConfig() error { function getActiveConfigYaml (line 98) | func getActiveConfigYaml() ([]byte, error) { FILE: cmd/initialize/initialize.go function CreateInitCmd (line 10) | func CreateInitCmd() *cobra.Command { FILE: cmd/open/open.go constant day (line 19) | day = 24 * time.Hour type commandOptions (line 21) | type commandOptions struct function CreateOpenCmd (line 40) | func CreateOpenCmd() *cobra.Command { function attachOpts (line 70) | func attachOpts(cmd *cobra.Command, cmdOpts *commandOptions) { function setDateOpt (line 87) | func setDateOpt(cmdOpts *commandOptions, templateOpts config.Opts, getFi... function setCopyDateOpt (line 141) | func setCopyDateOpt(cmdOpts *commandOptions, templateOpts config.Opts, g... function setDeleteOpts (line 173) | func setDeleteOpts(cmdOpts *commandOptions) { function run (line 178) | func run(templateOpts config.Opts, cmdOpts commandOptions) error { function copySections (line 255) | func copySections(src *template.Template, tgt *template.Template, sectio... function deleteSections (line 265) | func deleteSections(t *template.Template, sectionNames []string) error { function openInEditor (line 275) | func openInEditor(t *template.Template, ed *editor.Editor) error { function getLatestTemplateFile (line 285) | func getLatestTemplateFile(files []string, now time.Time, opts config.Fi... function getDirFiles (line 310) | func getDirFiles(dir string) ([]string, error) { function warnTooManyTemplateFiles (line 328) | func warnTooManyTemplateFiles(n int, thresh int) { function max (line 334) | func max(i, j int) int { FILE: cmd/open/open_test.go function TestGetLatestTemplateFile (line 11) | func TestGetLatestTemplateFile(t *testing.T) { function TestSetDateOpt (line 97) | func TestSetDateOpt(t *testing.T) { function TestSetCopyDateOpt (line 285) | func TestSetCopyDateOpt(t *testing.T) { function TestSetDeleteOpts (line 380) | func TestSetDeleteOpts(t *testing.T) { FILE: cmd/root.go function Run (line 16) | func Run(name string, version string) error { function setVersion (line 41) | func setVersion(cmd *cobra.Command, version string) { function setHelp (line 53) | func setHelp(cmd *cobra.Command, name string) { FILE: main.go constant name (line 10) | name = "textnote" function main (line 14) | func main() { FILE: pkg/archive/archive.go type Archiver (line 14) | type Archiver struct method Add (line 38) | func (a *Archiver) Add(date time.Time) error { method Write (line 68) | func (a *Archiver) Write() error { method GetArchivedFiles (line 92) | func (a *Archiver) GetArchivedFiles() []string { function NewArchiver (line 26) | func NewArchiver(opts config.Opts, rw readWriter, date time.Time) *Archi... type readWriter (line 97) | type readWriter interface FILE: pkg/archive/archive_test.go type testReadWriter (line 21) | type testReadWriter struct method Read (line 35) | func (trw *testReadWriter) Read(rwable file.ReadWriteable) error { method Overwrite (line 40) | func (trw *testReadWriter) Overwrite(rwable file.ReadWriteable) error { method Exists (line 50) | func (trw *testReadWriter) Exists(rwable file.ReadWriteable) bool { function newTestReadWriter (line 27) | func newTestReadWriter(exists bool, toRead string) *testReadWriter { function TestAdd (line 58) | func TestAdd(t *testing.T) { function TestWrite (line 423) | func TestWrite(t *testing.T) { FILE: pkg/config/config.go constant envAppDir (line 18) | envAppDir = "TEXTNOTE_DIR" constant fileName (line 20) | fileName = ".config.yml" type Opts (line 27) | type Opts struct type HeaderOpts (line 38) | type HeaderOpts struct type SectionOpts (line 46) | type SectionOpts struct type FileOpts (line 54) | type FileOpts struct type ArchiveOpts (line 61) | type ArchiveOpts struct type CliOpts (line 73) | type CliOpts struct type OptsBackCompat (line 79) | type OptsBackCompat struct function getDefaultOpts (line 84) | func getDefaultOpts() Opts { function Load (line 125) | func Load() (Opts, error) { function loadFromEnv (line 152) | func loadFromEnv(path string, opts *Opts) error { function loadBackCompat (line 166) | func loadBackCompat(path string, opts *Opts) error { function CreateIfNotExists (line 181) | func CreateIfNotExists() error { function EnsureAppDir (line 203) | func EnsureAppDir() error { function ValidateOpts (line 225) | func ValidateOpts(opts Opts) error { function DescribeEnvVars (line 274) | func DescribeEnvVars() string { function GetConfigFilePath (line 284) | func GetConfigFilePath() string { function InitApp (line 289) | func InitApp() error { FILE: pkg/config/config_test.go function TestValidateOpts (line 9) | func TestValidateOpts(t *testing.T) { function getTestOpts (line 140) | func getTestOpts() Opts { FILE: pkg/editor/editor.go constant EnvEditor (line 10) | EnvEditor = "EDITOR" constant editorNameEmacs (line 13) | editorNameEmacs = "emacs" constant editorNameNano (line 14) | editorNameNano = "nano" constant editorNameNeovim (line 15) | editorNameNeovim = "nvim" constant editorNameVi (line 16) | editorNameVi = "vi" constant editorNameVim (line 17) | editorNameVim = "vim" type openable (line 21) | type openable interface type Editor (line 27) | type Editor struct method Open (line 37) | func (e *Editor) Open(o openable) error { function GetEditor (line 47) | func GetEditor(name string) *Editor { FILE: pkg/file/file.go type ReadWriteable (line 9) | type ReadWriteable interface type ReadWriter (line 16) | type ReadWriter struct method Read (line 24) | func (rw *ReadWriter) Read(rwable ReadWriteable) error { method Overwrite (line 34) | func (rw *ReadWriter) Overwrite(rwable ReadWriteable) error { method Exists (line 49) | func (rw *ReadWriter) Exists(rwable ReadWriteable) bool { function NewReadWriter (line 19) | func NewReadWriter() *ReadWriter { FILE: pkg/template/archive.go type MonthArchiveTemplate (line 15) | type MonthArchiveTemplate struct method Write (line 29) | func (t *MonthArchiveTemplate) Write(w io.Writer) error { method GetFilePath (line 35) | func (t *MonthArchiveTemplate) GetFilePath() string { method ArchiveSectionContents (line 48) | func (t *MonthArchiveTemplate) ArchiveSectionContents(src *Template, s... method Merge (line 76) | func (t *MonthArchiveTemplate) Merge(src *MonthArchiveTemplate) error { method string (line 86) | func (t *MonthArchiveTemplate) string() string { method makeHeader (line 100) | func (t *MonthArchiveTemplate) makeHeader() string { method makeContentHeader (line 109) | func (t *MonthArchiveTemplate) makeContentHeader(date time.Time) string { function NewMonthArchiveTemplate (line 20) | func NewMonthArchiveTemplate(opts config.Opts, date time.Time) *MonthArc... function isArchiveItemHeader (line 118) | func isArchiveItemHeader(line string, prefix string, suffix string, form... FILE: pkg/template/archive_test.go function TestNewMonthArchiveTemplate (line 13) | func TestNewMonthArchiveTemplate(t *testing.T) { function TestArchiveGetFilePath (line 42) | func TestArchiveGetFilePath(t *testing.T) { function TestArchiveSectionContents (line 70) | func TestArchiveSectionContents(t *testing.T) { function TestArchiveSectionContentsFail (line 266) | func TestArchiveSectionContentsFail(t *testing.T) { function TestArchiveString (line 292) | func TestArchiveString(t *testing.T) { function TestIsArchiveItemHeader (line 555) | func TestIsArchiveItemHeader(t *testing.T) { FILE: pkg/template/section.go type section (line 14) | type section struct method deleteContents (line 27) | func (s *section) deleteContents() { method sortContents (line 31) | func (s *section) sortContents() { method isEmpty (line 38) | func (s *section) isEmpty() bool { method getNameString (line 47) | func (s *section) getNameString(prefix string, suffix string) string { method getContentString (line 51) | func (s *section) getContentString() string { function newSection (line 20) | func newSection(name string, items ...contentItem) *section { type contentItem (line 63) | type contentItem struct method string (line 68) | func (ci contentItem) string() string { method isEmpty (line 75) | func (ci contentItem) isEmpty() bool { function parseSection (line 81) | func parseSection(text string, opts config.Opts) (*section, error) { function parseSectionContents (line 105) | func parseSectionContents(lines []string, prefix string, suffix string, ... function stripPrefixSuffix (line 148) | func stripPrefixSuffix(line string, prefix string, suffix string) string { function getSectionNameRegex (line 152) | func getSectionNameRegex(prefix string, suffix string) (*regexp.Regexp, ... FILE: pkg/template/section_test.go function TestGetNameString (line 13) | func TestGetNameString(t *testing.T) { function TestGetContentString (line 69) | func TestGetContentString(t *testing.T) { function TestParseSectionContents (line 188) | func TestParseSectionContents(t *testing.T) { function TestSectionIsEmpty (line 329) | func TestSectionIsEmpty(t *testing.T) { function TestContentItemIsEmpty (line 439) | func TestContentItemIsEmpty(t *testing.T) { FILE: pkg/template/template.go type Template (line 14) | type Template struct method Write (line 37) | func (t *Template) Write(w io.Writer) error { method GetDate (line 43) | func (t *Template) GetDate() time.Time { method GetFileCursorLine (line 48) | func (t *Template) GetFileCursorLine() int { method GetFilePath (line 53) | func (t *Template) GetFilePath() string { method CopySectionContents (line 68) | func (t *Template) CopySectionContents(src sectionGettable, sectionNam... method DeleteSectionContents (line 82) | func (t *Template) DeleteSectionContents(sectionName string) error { method IsEmpty (line 92) | func (t *Template) IsEmpty() bool { method Load (line 102) | func (t *Template) Load(r io.Reader) error { method string (line 142) | func (t *Template) string() string { method makeHeader (line 156) | func (t *Template) makeHeader() string { method getSection (line 165) | func (t *Template) getSection(name string) (*section, error) { function NewTemplate (line 22) | func NewTemplate(opts config.Opts, date time.Time) *Template { type sectionGettable (line 62) | type sectionGettable interface function ParseTemplateFileName (line 175) | func ParseTemplateFileName(fileName string, opts config.FileOpts) (t tim... FILE: pkg/template/template_test.go function TestNewTemplate (line 14) | func TestNewTemplate(t *testing.T) { function TestGetFilePath (line 70) | func TestGetFilePath(t *testing.T) { function TestCopySectionContents (line 96) | func TestCopySectionContents(t *testing.T) { function TestCopySectionContentsFail (line 196) | func TestCopySectionContentsFail(t *testing.T) { function TestDeleteSectionContents (line 222) | func TestDeleteSectionContents(t *testing.T) { function TestLoad (line 258) | func TestLoad(t *testing.T) { function TestString (line 497) | func TestString(t *testing.T) { function TestParseTemplateFileName (line 716) | func TestParseTemplateFileName(t *testing.T) { function TestIsEmpty (line 812) | func TestIsEmpty(t *testing.T) { FILE: pkg/template/templatetest/templatetest.go function GetOpts (line 16) | func GetOpts() config.Opts { function MakeItemHeader (line 64) | func MakeItemHeader(date time.Time, opts config.Opts) string {