Add focus-column (by index) action

This commit is contained in:
Duncan Overbruck
2025-03-13 03:05:55 +01:00
committed by Ivan Molodetskikh
parent b4922086ce
commit a5d58d670b
7 changed files with 41 additions and 0 deletions
+8
View File
@@ -249,6 +249,14 @@ pub enum Action {
FocusColumnRightOrFirst {},
/// Focus the next column to the left, looping if at start.
FocusColumnLeftOrLast {},
/// Focus a column by index.
FocusColumn {
/// Index of the column to focus.
///
/// The index starts from 1 for the first column.
#[cfg_attr(feature = "clap", arg())]
index: usize,
},
/// Focus the window or the monitor above.
FocusWindowOrMonitorUp {},
/// Focus the window or the monitor below.