Skip to content

Add support for secondary direction layout split #231

@akiross

Description

@akiross

Hello,
I've been very happy to know that someone is going on with the development of diffuse! I've been using the "sourceforge" version for years and found out about this fork only recently.

Now, back to my issue: I was wondering if it would be possible add an "secondary direction split" option, meaning that instead of A|B|C|D:

+----------+----------+----------+----------+
|    A     |    B     |    C     |    D     |
+----------+----------+----------+----------+

things could look like this (A|C|D)/B

+----------+----------+----------+
|    A     |    C     |    D     |
+----------+----------+----------+
|               B                |
+--------------------------------+

or like this B/(A|C|D)

+--------------------------------+
|               B                |
+----------+----------+----------+
|    A     |    C     |    D     |
+----------+----------+----------+

which can be convenient when doing merges with 4 files (old, parent, merged, new).

I am not sure how the UX of this could be, some ideas:

  1. have a flag to specify whether to enable this, and by default one specific panel (e.g. the first, the last) will be moved down or up
  2. have a flag to specify when to enable this: if the number of files is 4, move the X panel down or up
  3. use floating windows: each file is a panel that can be arranged arbitrarily; this might allow for fancy layouts like A / (B | C) / D and it's the most flexible one
  4. allow to specify a layout string, such as A|B|C|D, (A|B)/(C|D), A|(B|C|D) and split the screen according to that; fail if the number of files is not matching the string (I like this option best).

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions