fancywm icon indicating copy to clipboard operation
fancywm copied to clipboard

Focusing a split container in order to apply movement on it

Open sim590 opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

Suppose you have the following hierarchy of windows and split container:

   H      
  / \     
 /   \    
W1    V   
      /\  
     /  \ 
    W2  W3

where windows are denoted Wn with n a number and H,V respectively denote horizontally and vertically split containers.

You just can't move W1 on the right side of the vertically split container on the right in order to get this:

      H    
     / \   
    /   \  
   V     W1
  /\       
 /  \      
W2  W3     

Describe the solution you'd like

I would like the scenario described above to be possible. For this specific case, I see two solutions:

  1. Allowing to move windows on the right even if no column (or branch) is already created on the right. Indeed, in i3, i'd simply focus the window W1 and move it to the right twice. The first time, the window W1 would be placed in the vertically split container (as it is the case in FancyWM), but the second time moving the window would create move the window on the right in a new branch and give the finally wanted state. Right now, FancyWM shows this instead:
  1. Allowing to focus a split container in order to move them. It can be done right now with the mouse, but there is not way to do so with the keyboard it seems. On i3, I would use a key combination in order to elevate the focus to the parent node (speaking about the tree data structure representing the layout). Then, I could move the container like any other window.

Describe alternatives you've considered

For now, I can resolve the situation by moving the container from the right to the left with the mouse but that defeats the purpose of using FancyWM if you have to use your mouse. It's nice to have that option, but I want to keep my hands on the keyboard at all time if possible.

sim590 avatar Jun 09 '22 21:06 sim590

Thanks for the feature request. This is being worked on.

veselink1 avatar Aug 15 '22 21:08 veselink1

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Apr 06 '24 02:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Apr 20 '24 02:04 github-actions[bot]