From e5deb0ad46d9bafce96af8180991a939814a3563 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Wed, 16 Oct 2019 14:45:52 +0200 Subject: [PATCH] #119 ability to label the selected space, allowing that label to be used as an alias in commands that take a SPACE_SEL parameter --- CHANGELOG.md | 1 + doc/yabai.1 | 7 +++++- doc/yabai.asciidoc | 5 +++- src/message.c | 60 +++++++++++++++++++++++++++++++++++++++------ src/message.h | 6 +++++ src/space_manager.c | 39 +++++++++++++++++++++++++++++ src/space_manager.h | 9 +++++++ 7 files changed, 117 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0baa44d9..005f4b1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Config option *window_border_radius* to specify roundness of corners [#281](https://github.com/koekeishiya/yabai/issues/281) - Config option *window_border_placement* to specify placement of window borders (exterior, interior, inset) [#216](https://github.com/koekeishiya/yabai/issues/216) - Config option *active_window_border_topmost* to specify if the active border should always stay on top of other windows (off, on) [#216](https://github.com/koekeishiya/yabai/issues/216) +- Ability to label spaces, making the given label an alias that can be passed to any command taking a `` parameter [#119](https://github.com/koekeishiya/yabai/issues/119) ### Changed - Don't draw borders for minimized or hidden windows when a display is (dis)connected [#250](https://github.com/koekeishiya/yabai/issues/250) diff --git a/doc/yabai.1 b/doc/yabai.1 index e305f24d..21f345cd 100644 --- a/doc/yabai.1 +++ b/doc/yabai.1 @@ -87,7 +87,7 @@ WINDOW_SEL := prev | next | first | last | recent | mouse | largest | smallest DISPLAY_SEL := prev | next | first | last | recent | arrangement index (1\-based) -SPACE_SEL := prev | next | first | last | recent | mission\-control index (1\-based) +SPACE_SEL := prev | next | first | last | recent | mission\-control index (1\-based) | LABEL FLOAT_SEL := 0 < value <= 1.0 @@ -356,6 +356,11 @@ Toggle space setting on or off for the selected space. .RS 4 Set the layout of the selected space. .RE +.sp +\fB\-\-label\fP \fI