andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Vertical split #51

Open vi opened 12 years ago

vi commented 12 years ago

It is useful sometimes to view one code (header, for example) and write other code. Or view some table's header in little upper pane and edit table's data in lower pane.

Enki should support vertical window division (including opening the same file in both upper and lower panes).

andreikop commented 12 years ago

Yes, very useful feature.

Sometimes I'm thinking about running second Enki instance and adjusting window sizes instead of splitting current window. So, you will have 2 windows, not 2 views in one window. Because, I already allocated and learned shortcuts for switching desktops, windows, current files. And, will be difficult to remember additional shortcut, which switches splits.

vi commented 12 years ago
  1. It requires additional setup (unless Enki support "Open second instance on this file and position cursor there" feature).
  2. Unlikely that content will be auto-updated in other pane like in Vim with separate Enki instance.
  3. If shortcuts is a problem, you can leave it unassigned so users can assign it manually in "Keyboard shortcuts".

One way or another it should be done: I don't like scrolling around to look at thing and then scroll back (BTW I also don't see "Return cursor to previous position" feature, so I have either to look through for it remembering where it was it or set bookmark there in advance)

vi commented 12 years ago

The usual way to start a split is to drag a line between the source code pane and menu bar down, setting the split position (the same file with the same cursor position is initially opened in both panes). Stopping vertical split is dragging the separating line back to it's up position. Moving between panes can be assigned to +Tab.

dglent commented 3 years ago

I find useful sometimes to split the view vertically and open the same file in the two views