Documentation
¶
Index ¶
- func ParseCopyLinesCommand(cmd string) (int, int, error)
- type Note
- type Store
- func (s *Store) CopyContent(content string) error
- func (s *Store) CopyLines(content string, start, end int) (int, error)
- func (s *Store) Create(name, content string) error
- func (s *Store) Delete(name string) error
- func (s *Store) DeleteCurrentNote() error
- func (s *Store) GetCurrentNote() (Note, bool)
- func (s Store) GetEditor() string
- func (s *Store) GetNote(name string) (Note, bool)
- func (s *Store) GetNoteByName(name string) (Note, bool)
- func (s Store) GetNotePath(name string) string
- func (s Store) GetStorage() string
- func (s Store) GetVLineEnabledByDefault() bool
- func (s *Store) IsFirstNote() bool
- func (s *Store) LoadNotes() ([]Note, error)
- func (s *Store) MustGetCurrentNote() Note
- func (s *Store) RenameCurrentNote(newName string) (Note, error)
- func (s Store) RenameNote(currentName, newName string) (Note, error)
- func (s *Store) SetCurrentNoteName(name string)
- func (s Store) SetDefaultVLineStatus(enabled bool) error
- func (s *Store) SetEditor(editor string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCopyLinesCommand ¶
Handles various formats: - co 1 2 (copy lines 1 to 2) - co 1 1 (copy line 1) - co 1 (copy line 1) - co 20 > 2 (copy lines 20 to 22) - co 20 < 2 (copy lines 18 to 20) - co 20 > -1 (copy lines 20 to the end) - co 20 < -1 (copy lines 1 to 20)
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CopyContent ¶
func (*Store) DeleteCurrentNote ¶
func (*Store) GetCurrentNote ¶
func (Store) GetNotePath ¶
func (Store) GetStorage ¶
func (Store) GetVLineEnabledByDefault ¶
func (*Store) IsFirstNote ¶
used to determine if the note was updated externally which means that its position in the list might have changed
func (*Store) MustGetCurrentNote ¶
func (*Store) SetCurrentNoteName ¶
func (Store) SetDefaultVLineStatus ¶
Click to show internal directories.
Click to hide internal directories.