helix
helix copied to clipboard
Buffer navigation through clicking on bufferline
Closes #4942
This is not very efficient because you're iterating over the line and calculating offsets each time. This should probably be precomputed
I thought that iterating and calculating it on click would be an easier option and that the slight inefficiency would be fine since the rendering code iterates over the bufferline in the same way every time the editor is rendered again and this does it only once when you actually click on the bufferline. I did not like storing data that is constantly changing and is used very rarely. If you think otherwise, you can probably just close this as #5335 seems to do it with precomputed widths.
It would be nice if this could be reviewed again or looked at. The feature is useful and a direction on implementation before yet another pull request is made would be nice to know. Unless of course a pull request in the queue is sufficient.
Closing this as its quite stale.The bufferline or mouse support are also not a priority. Thank you for contributing!