robinovitch61 / wander

A terminal app/TUI for HashiCorp Nomad
MIT License
433 stars 17 forks source link

Search selection jumps back to first result on page reload/refresh #128

Closed robinovitch61 closed 7 months ago

robinovitch61 commented 7 months ago

Describe the bug Search selection jumps back to first result on page reload/refresh

To reproduce Run wander -u 1 in "filter with context" mode on (the default), filter for results, hit n to see the next result, and wait. Selection will jump back on page refresh

Expected behavior Filter selection should be preserved after refresh to the best ability (if result disappears on refresh, should be as close as possible to result)

Additional context Reported in https://github.com/robinovitch61/wander/issues/127

robinovitch61 commented 7 months ago

@cshintov this should be fixed in next (go install github.com/robinovitch61/wander@next) now. Mind giving it a shot when you get the chance and letting me know if there is any other undesirable behavior?

cshintov commented 7 months ago

Just checked it works 🎉

robinovitch61 commented 7 months ago

Fixed in v1.1.0