fortinmike / XcodeBoost

An Xcode plugin that aims to make altering and inspecting code quick and easy.
MIT License
816 stars 86 forks source link

Display a "mini-map" of highlighted ranges in the current file #10

Closed fortinmike closed 10 years ago

fortinmike commented 10 years ago

This would be useful to know, at a glance, where the highlighted string or symbol was found in the file.

I have something like Xcode's warning and error scrollbar underlay in mind (i.e. the small red and yellow horizontal lines that appear under the translucent scrollbar when scrolling in a source file that contains errors or warnings).

I suppose adding our own coloured indicators to Xcode's actual underlay view would not be out of the question! That would be super-clean looking and would be consistent with Xcode's current behaviour; out of the way when not needed, visible when required.

Another option would be to add our own overlay/underlay view to display the highlighting indicators, which may be more robust in the long term. To investigate.

fortinmike commented 10 years ago

There is a position mismatch with Xcode's error and warning marks (which may ignore comments or be based on some more advanced code-aware logic) but the highlighting marks are coherent amongst each other and still very useful.

fortinmike commented 10 years ago

See #18.