Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What I'd like: an editor with multiple tiled windows side by side, filling up a wide monitor, all showing the same text threaded through it. Line n at the bottom of one puts line n+1 at the top of the window to the right of it. Scrolling in one window scrolls them all.

(Of course you could optionally split it up differently to see multiple files.)



You can do this in vim with the scrollbind option. You could create a simple script to set up the windows and get the views lined up to the correct line numbers. The one caveat is that enabling line wrapping will screw it up.

    :windo set nowrap
    :vsp
    ctrl-w ctrl-w ctrl-d ctrl-d
    :vsp
    ctrl-w ctrl-w ctrl-d ctrl-d
    :windo set scrollbind


Tried that but don't see a way to make the windows show different parts of the document. How does that happen?

And if I were to insert or delete lines in the first panel, would the others change their starting rows to account for that?


> What I'd like: an editor with multiple tiled windows side by side, filling up a wide monitor, all showing the same text threaded through it. Line n at the bottom of one puts line n+1 at the top of the window to the right of it. Scrolling in one window scrolls them all.

> (Of course you could optionally split it up differently to see multiple files.)

Now I want to go write some elisp . . .

But for the moment, I'll let you know that C-x 3 will keep splitting an emacs "frame" (window) in half vertically until you hit something like 10 columns. Just need to write the elisp for the rest of your feature request.


Hmm. That's a tempting little project actually.


This is exactly what I was thinking! Wonder how it works in practice.


Like a newspaper?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: