Skip to content
Myr

Remove immediate flickering on reload action

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent ef80bd4 · Browse files · 2 files+11 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+11 added−3 removed

  • other:+11 added−3 removed

2 files+11 added−3 removed

modified:src/core.go+7 added-3 removed
222 unmodified lines
223 }224225 // Event coordination226 reading := true227 clearCache := false228 ticks := 0229 var nextCommand *string230 restart := func(command string) {231 reading = true232 clearCache = true233 chunkList.Clear()234 header = make([]string, 0, opts.HeaderLines)235 go reader.restart(command)236 }
14 unmodified lines
251 for evt, value := range *events {252 switch evt {253254 case EvtReadNew, EvtReadFin:253 clearCache := false255 if evt == EvtReadFin && nextCommand != nil {255 clearCache = true256 restart(*nextCommand)257 nextCommand = nil258 break259 } else {260 reading = reading && evt == EvtReadNew261 }262 snapshot, count := chunkList.Snapshot()
1 unmodified line
264 if opts.Sync {265 terminal.UpdateList(PassMerger(&snapshot, opts.Tac))266 }267 matcher.Reset(snapshot, input(), false, !reading, sort, clearCache)268 clearCache = false269270 case EvtSearchNew:271 var command *string272 switch val := value.(type) {
7 unmodified lines
280 nextCommand = command281 } else {282 restart(*command)283 }284 break285 }286 snapshot, _ := chunkList.Snapshot()284 matcher.Reset(snapshot, input(), true, !reading, sort, command != nil)287 matcher.Reset(snapshot, input(), true, !reading, sort, clearCache)288 clearCache = false289 delay = false290291 case EvtSearchProgress:292 switch val := value.(type) {
49 unmodified lines
modified:CHANGELOG.md+4 added
1 unmodified line
2=========340.19.1 (WIP)5------6- Removed the immediate flicking of the screen on `reload` action.7 ```sh8 : | fzf --bind 'change:reload:seq {q}' --phony9 ```10- It is now possible to split a composite bind action over multiple `--bind`11 expressions by prefixing the later ones with `+`.12 ```sh13 fzf --bind 'ctrl-a:up+up'
778 unmodified lines