splits
The community/tags/splits
directory contains files for managing window splits. This functionality is commonly used in tiling window managers and some IDEs.
The core logic is in splits.py
. It defines a Talon module tag called splits
which can be used to enable these commands. It also defines a set of actions for manipulating window splits:
* split_window_right
: Moves the active window to the right split.
* split_window_left
: Moves the active window to the left split.
* split_window_down
: Moves the active window to the lower split.
* split_window_up
: Moves the active window to the upper split.
* split_window_vertically
: Splits the window vertically.
* split_window_horizontally
: Splits the window horizontally.
* split_flip
: Flips the orientation of the active split.
* split_maximize
: Maximizes the active split.
* split_reset
: Resets the split sizes.
* split_window
: Splits the window.
* split_clear
: Clears the current split.
* split_clear_all
: Clears all splits.
* split_next
: Moves to the next split.
* split_last
: Moves to the last split.
* split_number
: Moves to the specified split based on an index.
The splits.talon
file defines the voice commands that trigger the actions in splits.py
. For example, saying "split right" will call the split_window_right()
action. The <number>
command is used to navigate to specific splits, e.g., "go split 1", "go split 2", etc.