atom / fuzzy-finder

Find and open files quickly
MIT License
274 stars 138 forks source link

Make sure that cursor position is centered after navigating to a line #385

Closed rafeca closed 5 years ago

rafeca commented 5 years ago

Description of the Change

In a similar way that https://github.com/atom/atom/pull/19272 fixed the scroll position after opening atom from the command line, this change does the same for the fuzzy finder. This way we have a consistent user experience for both scenarios.

The two main changes of this PR are:

Before this change

before

*With this change**

after

Alternate Designs

Do not do anything.

Benefits

Consisten user experience when navigating to a line through the fuzzy finder.

Possible Drawbacks

N/A

Applicable Issues

https://github.com/atom/atom/issues/12253