()
| 3976 | } |
| 3977 | |
| 3978 | func (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 | } |