Documentation ¶
Index ¶
- Constants
- Variables
- func New(ctx context.Context, events []sessions.Event, replayBinds *bind.BindScope, ...) *taro.Program
- func NewPreview(ctx context.Context, filename string) *taro.Program
- func WithNoQuit(r *Replay)
- type ActionEvent
- type ActionType
- type CopyEvent
- type Mode
- type PlaybackEvent
- type PlaybackRateEvent
- type ProgressEvent
- type Replay
- type ReplayOption
- type ReplayPreview
- type SearchResultEvent
Constants ¶
View Source
const ( PLAYBACK_FPS = 30 IDLE_THRESHOLD = time.Second )
Variables ¶
View Source
var JumpBackward stories.InitFunc = func(ctx context.Context) (mux.Screen, error) { replay := createStory( ctx, createStorySession(), ActionSearchBackward, "3m", ) return replay, nil }
View Source
var JumpForward stories.InitFunc = func(ctx context.Context) (mux.Screen, error) { replay := createStory( ctx, createStorySession(), ActionSearchForward, "3m", ) return replay, nil }
View Source
var SearchEmpty stories.InitFunc = func(ctx context.Context) (mux.Screen, error) { replay := createStory( ctx, createStorySession(), ActionBeginning, ActionSearchForward, "asdf", "enter", ) return replay, nil }
View Source
var SearchProgress stories.InitFunc = func(ctx context.Context) (mux.Screen, error) { replay := createStory( ctx, createStorySession(), ActionSearchForward, "query", "enter", ProgressEvent{Percent: 60}, ) return replay, nil }
View Source
var SearchTimeBackward stories.InitFunc = func(ctx context.Context) (mux.Screen, error) { replay := createStory( ctx, createStorySession(), ActionSearchBackward, "query", ) return replay, nil }
View Source
var SearchTimeForward stories.InitFunc = func(ctx context.Context) (mux.Screen, error) { replay := createStory( ctx, createStorySession(), ActionSearchForward, "query", ) return replay, nil }
View Source
var Searching stories.InitFunc = func(ctx context.Context) (mux.Screen, error) { replay := createStory( ctx, createStorySession(), ActionSearchForward, "query", "enter", ) return replay, nil }
View Source
var (
TIME_DELTA_REGEX = regexp.MustCompile("^((?P<days>\\d+)d)?((?P<hours>\\d+)h)?((?P<min>\\d+)m)?((?P<sec>\\d+)s)?$")
)
Functions ¶
func NewPreview ¶ added in v0.1.6
func WithNoQuit ¶ added in v0.1.6
func WithNoQuit(r *Replay)
Types ¶
type ActionEvent ¶ added in v0.1.5
type ActionEvent struct { Type ActionType Arg string }
type ActionType ¶ added in v0.1.5
type ActionType int
const ( ActionQuit ActionType = iota // Bimodal actions ActionBeginning ActionEnd ActionSearchForward ActionSearchBackward ActionSearchAgain ActionSearchReverse // Time controls have no tmux parallel ////////////////////////////////////// ActionTimePlay ActionTimeStepBack ActionTimeStepForward // All tmux copy-mode commands, only some of which are implemented ////////////////////////////////////////////////////////////////// // append-selection // append-selection-and-cancel A // back-to-indentation ^ M-m // begin-selection Space C-Space // bottom-line L // cancel q Escape // clear-selection Escape C-g // copy-end-of-line [<prefix>] // copy-end-of-line-and-cancel [<prefix>] // copy-pipe-end-of-line [<command>] [<prefix>] // copy-pipe-end-of-line-and-cancel [<command>] [<prefix>] D C-k // copy-line [<prefix>] // copy-line-and-cancel [<prefix>] // copy-pipe-line [<command>] [<prefix>] // copy-pipe-line-and-cancel [<command>] [<prefix>] // copy-pipe [<command>] [<prefix>] // copy-pipe-no-clear [<command>] [<prefix>] // copy-pipe-and-cancel [<command>] [<prefix>] // copy-selection [<prefix>] // copy-selection-no-clear [<prefix>] // copy-selection-and-cancel [<prefix>] Enter M-w ActionCopy // cursor-down j Down ActionCursorDown // cursor-down-and-cancel // cursor-left h Left ActionCursorLeft // cursor-right l Right ActionCursorRight // cursor-up k Up ActionCursorUp // end-of-line $ C-e // goto-line <line> : g // halfpage-down C-d M-Down ActionScrollDownHalf // halfpage-down-and-cancel // halfpage-up C-u M-Up ActionScrollUpHalf // history-bottom G M-> // history-top g M-< // jump-again ; ; ActionJumpAgain // jump-backward <to> F F ActionJumpBackward // jump-forward <to> f f ActionJumpForward // jump-reverse , , ActionJumpReverse // jump-to-backward <to> T ActionJumpToBackward // jump-to-forward <to> t ActionJumpToForward // jump-to-mark M-x M-x // middle-line M M-r // next-matching-bracket % M-C-f // next-paragraph } M-} // next-space W // next-space-end E // next-word w // next-word-end e M-f // other-end o // page-down C-f PageDown // page-down-and-cancel // page-up C-b PageUp // pipe [<command>] [<prefix>] // pipe-no-clear [<command>] [<prefix>] // pipe-and-cancel [<command>] [<prefix>] // previous-matching-bracket M-C-b // previous-paragraph { M-{ // previous-space B // previous-word b M-b // rectangle-on // rectangle-off // rectangle-toggle v R ActionSelect // refresh-from-pane r r // scroll-down C-e C-Down ActionScrollDown // scroll-down-and-cancel // scroll-up C-y C-Up ActionScrollUp )
type PlaybackEvent ¶ added in v0.1.5
type PlaybackRateEvent ¶ added in v0.1.5
type PlaybackRateEvent struct {
Rate int
}
type ProgressEvent ¶ added in v0.1.6
type ProgressEvent struct {
Percent int
}
type ReplayOption ¶ added in v0.1.6
type ReplayOption func(r *Replay)
type ReplayPreview ¶ added in v0.1.6
func (*ReplayPreview) Init ¶ added in v0.1.6
func (r *ReplayPreview) Init() tea.Cmd
func (*ReplayPreview) View ¶ added in v0.1.6
func (r *ReplayPreview) View(state *tty.State)
type SearchResultEvent ¶ added in v0.1.5
type SearchResultEvent struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.