Skip to content

Commit

Permalink
directvt#86 WIP: Add window width/height change bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Dec 21, 2024
1 parent 3223a4e commit 10b71e7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,10 @@ Notes
<key="Esc+LeftArrow+DownArrow | Esc+DownArrow+LeftArrow"> <action=WarpWindow data=" 2,-2,-1, 1"/></key> <!-- Move window to the bottom-left. -->
<key="Esc+RightArrow+UpArrow | Esc+UpArrow+RightArrow"> <action=WarpWindow data="-2, 2, 1,-1"/></key> <!-- Move window to the top-right. -->
<key="Esc+RightArrow+DownArrow | Esc+DownArrow+RightArrow"> <action=WarpWindow data="-2, 2,-1, 1"/></key> <!-- Move window to the bottom-right. -->
<key="Esc+LeftArrow+RightArrow"> <action=WarpWindow data=" 0, 1, 0, 0"/></key> <!-- Increase window width. -->
<key="Esc+RightArrow+LeftArrow"> <action=WarpWindow data=" 0,-1, 0, 0"/></key> <!-- Decrease window width. -->
<key="Esc+UpArrow+DownArrow"> <action=WarpWindow data=" 0, 0, 0, 1"/></key> <!-- Increase window height. -->
<key="Esc+DownArrow+UpArrow"> <action=WarpWindow data=" 0, 0, 0,-1"/></key> <!-- Decrease window height. -->
<tile key*>
<key="Ctrl+PageUp" action=TileFocusPrev /> <!-- Focus the previous pane or the split grip. -->
<key="Ctrl+PageDown" action=TileFocusNext /> <!-- Focus the next pane or the split grip. -->
Expand Down
4 changes: 4 additions & 0 deletions doc/user-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@
<tr><th>Esc+LeftArrow+DownArrow | Esc+DownArrow+LeftArrow</th> <td colspan="3"></td><td colspan="7">Move window to the bottom-left</td></tr>
<tr><th>Esc+RightArrow+UpArrow | Esc+UpArrow+RightArrow</th> <td colspan="3"></td><td colspan="7">Move window to the top-right</td></tr>
<tr><th>Esc+RightArrow+DownArrow | Esc+DownArrow+RightArrow</th><td colspan="3"></td><td colspan="7">Move window to the bottom-right</td></tr>
<tr><th>Esc+LeftArrow+RightArrow</th> <td colspan="3"></td><td colspan="7">Increase window width</td></tr>
<tr><th>Esc+RightArrow+LeftArrow</th> <td colspan="3"></td><td colspan="7">Decrease window width</td></tr>
<tr><th>Esc+UpArrow+DownArrow</th> <td colspan="3"></td><td colspan="7">Increase window height</td></tr>
<tr><th>Esc+DownArrow+UpArrow</th> <td colspan="3"></td><td colspan="7">Decrease window height</td></tr>
</tbody>
</table>

Expand Down
4 changes: 4 additions & 0 deletions src/vtm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ R"==(
<key="Esc+LeftArrow+DownArrow | Esc+DownArrow+LeftArrow"> <action=WarpWindow data=" 2,-2,-1, 1"/></key> <!-- Move window to the bottom-left. -->
<key="Esc+RightArrow+UpArrow | Esc+UpArrow+RightArrow"> <action=WarpWindow data="-2, 2, 1,-1"/></key> <!-- Move window to the top-right. -->
<key="Esc+RightArrow+DownArrow | Esc+DownArrow+RightArrow"> <action=WarpWindow data="-2, 2,-1, 1"/></key> <!-- Move window to the bottom-right. -->
<key="Esc+LeftArrow+RightArrow"> <action=WarpWindow data=" 0, 1, 0, 0"/></key> <!-- Increase window width. -->
<key="Esc+RightArrow+LeftArrow"> <action=WarpWindow data=" 0,-1, 0, 0"/></key> <!-- Decrease window width. -->
<key="Esc+UpArrow+DownArrow"> <action=WarpWindow data=" 0, 0, 0, 1"/></key> <!-- Increase window height. -->
<key="Esc+DownArrow+UpArrow"> <action=WarpWindow data=" 0, 0, 0,-1"/></key> <!-- Decrease window height. -->
</desktop>
<tile key*>
<key="Ctrl+PageUp" action=TileFocusPrev /> <!-- Focus the previous pane or the split grip. -->
Expand Down

0 comments on commit 10b71e7

Please sign in to comment.