Versions in this module Expand all Collapse all v1 v1.0.2 Mar 28, 2024 Changes in this version + func NewDBusService() (*dbus.Conn, dbusservice.DBusService, error) + type Service struct + func (service *Service) AddSnippet(abbreviation string, body string) (*snippet.Snippet, error) + func (service *Service) CopySnippet(abbreviation string, skipLastUsed bool) error + func (service *Service) ExpandAbbreviation(abbreviation string, skipLastUsed bool) (dbusservice.ExpandAbbreviationResult, error) + func (service *Service) GetAutoexpandStatus() (bool, error) + func (service *Service) GetAutostartStatus() (bool, error) + func (service *Service) GetSetting(key string) (string, error) + func (service *Service) GetSnippetWithAbbreviation(abbreviation string) (*snippet.Snippet, error) + func (service *Service) GetSnippetWithID(id string) (*snippet.Snippet, error) + func (service *Service) GetSnippets(search string, orderByLastUsed bool) ([]*snippet.Snippet, error) + func (service *Service) PasteSnippet(abbreviation string, useShiftKey bool, delay int64) error + func (service *Service) Ping(expected string) (string, error) + func (service *Service) RemoveSnippet(abbreviation string) (bool, error) + func (service *Service) SaveSetting(key string, value string) error + func (service *Service) Stop() error + func (service *Service) SyncSnippets(snippets []*snippet.Snippet, options dbusservice.SyncOptions) (dbusservice.SyncResult, error) + func (service *Service) UpdateAutoexpand(on bool) error + func (service *Service) UpdateAutostart(on bool) error + func (service *Service) UpdateSnippetWithID(id uuid.UUID, snippet *snippet.Snippet) error