Documentation
¶
Index ¶
- Constants
- func CommandCallback(s string) tea.Cmd
- type CmdLineInputCallback
- type CommandLine
- func (c CommandLine) Focused() bool
- func (c CommandLine) GetHeight() int
- func (c CommandLine) Init() tea.Cmd
- func (c *CommandLine) SetMessage(msg string)
- func (c *CommandLine) StartInput(prompt string, callback CmdLineInputCallback) tea.Cmd
- func (c *CommandLine) StartInputWithValue(prompt string, callback CmdLineInputCallback, initialValue string) tea.Cmd
- func (c CommandLine) Update(msg tea.Msg) (CommandLine, tea.Cmd)
- func (c CommandLine) View() string
- type FileSelector
- type MainModel
- type Navigate
- type PasswordInput
Constants ¶
View Source
const ( EMPTY_GROUP_PLACEHOLDER = "(No entries)" NO_TITLE_PLACEHOLDER = "(No title)" NUM_COL_WIDTH = 3 )
View Source
const CLEAR_CLIPBOARD_DELAY = 10
View Source
const ENCRYPTED_PLACEH = "•"
View Source
const ERR_TOO_FEW_ARGS = "Error: Too few arguments"
View Source
const ERR_TOO_MANY_ARGS = "Error: Too many arguments"
View Source
const INITIAL_MESSAGE = "Ready."
View Source
const PROMPT_COMMAND = ":"
View Source
const PROMPT_REV_SEARCH = "?"
View Source
const PROMPT_SEARCH = "/"
View Source
const TABLE_SPACING = 1
Variables ¶
This section is empty.
Functions ¶
func CommandCallback ¶
Types ¶
type CmdLineInputCallback ¶
func SearchCallback ¶
func SearchCallback(reverse bool) CmdLineInputCallback
type CommandLine ¶
type CommandLine struct {
// contains filtered or unexported fields
}
func NewCommandLine ¶
func NewCommandLine() CommandLine
func (CommandLine) Focused ¶
func (c CommandLine) Focused() bool
func (CommandLine) GetHeight ¶
func (c CommandLine) GetHeight() int
func (CommandLine) Init ¶
func (c CommandLine) Init() tea.Cmd
func (*CommandLine) SetMessage ¶
func (c *CommandLine) SetMessage(msg string)
func (*CommandLine) StartInput ¶
func (c *CommandLine) StartInput(prompt string, callback CmdLineInputCallback) tea.Cmd
func (*CommandLine) StartInputWithValue ¶
func (c *CommandLine) StartInputWithValue(prompt string, callback CmdLineInputCallback, initialValue string) tea.Cmd
func (CommandLine) Update ¶
func (c CommandLine) Update(msg tea.Msg) (CommandLine, tea.Cmd)
func (CommandLine) View ¶
func (c CommandLine) View() string
type FileSelector ¶
type FileSelector struct {
// contains filtered or unexported fields
}
func NewFileSelector ¶
func NewFileSelector() FileSelector
func (FileSelector) Init ¶
func (m FileSelector) Init() tea.Cmd
func (FileSelector) View ¶
func (m FileSelector) View() string
type MainModel ¶
type MainModel struct {
// contains filtered or unexported fields
}
func NewMainModel ¶
type Navigate ¶
type Navigate struct {
// contains filtered or unexported fields
}
func NewNavigate ¶
type PasswordInput ¶
type PasswordInput struct {
// contains filtered or unexported fields
}
func NewPasswordInput ¶
func NewPasswordInput(database *database.Database, windowWidth, windowHeight int) PasswordInput
func (PasswordInput) Init ¶
func (m PasswordInput) Init() tea.Cmd
func (PasswordInput) View ¶
func (m PasswordInput) View() string
Click to show internal directories.
Click to hide internal directories.