My monitor is rotatable and I mostly use it portrait oriented rather than landscape. If I use the split pane function of Thunar (or Nemo) to show two folders side-by-side, they are tall and very thin. It's usable in this format but it would make a lot more sense to have them one above and one below. In this layout, both panes would be almost square.
Given that the shortcut for split pane is F3, perhaps this could be Shift-F3?
Designs
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Humm, I dont use splitpane myself, so maybe I am not in a good position to judge if that is realy something we should have.
Though I think it can be done with minimal effort. Just change the orientation of "paned" from GTK_ORIENTATION_HORIZONTAL to GTK_ORIENTATION_VERTICAL. Looks already good to me when doing so in the gtkInspector.
Given that the shortcut for split pane is F3, perhaps this could be Shift-F3?
No, I would not want a different shortcut for it. Just a xfconf setting to use split-pane either in HORIZONTAL or VERTICAL mode should be sufficient.
I dont have time to work on it, though a MR would be welcome !
@alexxcons, I feel like this is worthwhile, considering that vertical monitors are not that exotic.
I see two ways of implementing this. We either add a preference that controls the orientation for each new window, as you suggested, or we implement the ability to switch pane-type on the fly, as @orangebowlerhat suggested. This would require us to rebuild the pane whenever the orientation changes (there is no way to change the orientation after construction, as far as I can tell, https://docs.gtk.org/gtk3/class.Paned.html).
The second option would add more complexity for a relatively niche feature, and I'm not too keen on that.
Hi @Ethan0456, yes this is what we are all thinking of. The question is how did you implement it (the image only tells me that you changed a simple ENUM value). If you have a solution ready (or WIP), please open a Merge Request.
Yes, I have solution ready, I changed orientation in thunar-window.c from horizontal to vertical.
But I have a question, I replaced horizontal split screen with vertical one, so do I make an option instead of checkbox for split screen with horizontal and vertical as options?
Please read the previous comments. I am in support of adding a new preference instead of rebuilding the pane each time the split orientation changes (I don't see another way to change between horizontal and vertical, unless I am missing some part of the API).
@Ethan0456 If you're still working on implementing this, looking at this !185 (merged) might be helpful for seeing how to add a new preference. Do tell if you've changed your mind about implementing it, I'm willing to work on this issue if that's the case.
@hi-im-buggy Yeah Sure, Actually I was successful in changing default horizontal orientation to vertical, but then I tried to add it as a new option but was not able to figure out how this GTK works (and I am still learning OOP) thus I was not able to complete it (and simultaneouly my exams were also near).
@alexxcons, I feel like this is worthwhile, considering that vertical monitors are not that exotic.
Alright, than lets have such an option
I see two ways of implementing this. We either add a preference that controls the orientation for each new window, as you suggested, or we implement the ability to switch pane-type on the fly, as @orangebowlerhat suggested. This would require us to rebuild the pane whenever the orientation changes (there is no way to change the orientation after construction, as far as I can tell, https://docs.gtk.org/gtk3/class.Paned.html).
GtkPaned is of the subtype Orientables, so it should be doable via gtk_orientable_set_orientation .. g_object_set on the propery as well might work. (Since GtkInspector is able to change orientattion of the paned while running, I was positive and checked it :D)
Maybe it is possible to directly connect the xfconf property with the orientation property of the paned via g_object_bind_property.
The orientation of the paned is nothing which will need to be changed often, that's why I dont want a shortcut for it.