3 ms·
Indeed it is a nice feature! It's useful not only with large monitors, but also when one needs to visually compare two snippets that appear in two files at dif
by ciprian_craciun 5y ago
Indeed it is a nice feature! It's useful not only with large monitors, but also when one needs to visually compare two snippets that appear in two files at different offsets close to the beginning / end.
Although I haven't seen it implemented before -- granted I don't often investigate text editors -- some editors / pagers (`vim`, `less`, Sublime?, etc.) support keeping a number of lines always visible between the cursor and the top / bottom of the view; some also support keeping the cursor always centered vertically. But as said, none of them seem to support scrolling past the beginning of the file.
BTW, I've just "stolen" your idea and implemented in my own Python-based editor (<https://github.com/volution/simple-console-editor https://github.com/volution/simple-console-editor>).
Thanks! :)
- emacs28 5y agoGlad to help! Thanks for sharing, I will try to take a look at your editor. Don't tell other Emacs people, but I like programming in Python much better than Elisp