marijnh/CodeMirror — pull request #1434 by lynschinzer (2013-04-06 14:22:49+00:00)
Title: Add getUserVisibleLines() for acquring line number of top and bottom lin...

Not sure if you want it, but it will definitely come in handy in some use cases, e.g.:
* `H` `M` `L` key bindings in Vim, `Alt-0, Alt-r``Alt--, Alt-r` in Emacs
* Emacs-like visual bell
* Extracting text in current user visible window

You can see how it works in the attached demo, just let me know what you think about it.