commands

package
Version: v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2017 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VersionMajor    = 0
	VersionMinor    = 1
	VersionRevision = 0
)

Version information

View Source
var RootCmd = &cobra.Command{
	Use:               "qnote-cui",
	Short:             "",
	PersistentPreRun:  PreseistentPreRunRoot,
	PersistentPostRun: PreseistentPostRunRoot,
	Run:               rootCmdRun,
}

RootCmd is the base command

Functions

func PreseistentPostRunRoot

func PreseistentPostRunRoot(cmd *cobra.Command, args []string)

PreseistentPostRunRoot runs after the Root Command and any child commands that do not override it.

func PreseistentPreRunRoot

func PreseistentPreRunRoot(cmd *cobra.Command, args []string)

PreseistentPreRunRoot runs before the Root Command and any child commands that do not override it.

Types

type LiveSearchEditor

type LiveSearchEditor struct {
	Gui           *gocui.Gui
	InputCallback func(g *gocui.Gui, v *gocui.View) error
}

LiveSearchEditor searches for notes as the user types

func (*LiveSearchEditor) Edit

func (ve *LiveSearchEditor) Edit(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier)

Edit callback for edit events

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL