MCPcopy
hub / github.com/junegunn/fzf / extractReloadOnStart

Method extractReloadOnStart

src/options.go:3978–3992  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3976}
3977
3978func (opts *Options) extractReloadOnStart() string {
3979 cmd := ""
3980 if actions, prs := opts.Keymap[tui.Start.AsEvent()]; prs {
3981 filtered := []*action{}
3982 for _, action := range actions {
3983 if action.t == actReload || action.t == actReloadSync {
3984 cmd = action.a
3985 } else {
3986 filtered = append(filtered, action)
3987 }
3988 }
3989 opts.Keymap[tui.Start.AsEvent()] = filtered
3990 }
3991 return cmd
3992}

Callers 1

RunFunction · 0.80

Calls 1

AsEventMethod · 0.80

Tested by

no test coverage detected