aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
authorKarl Schultheisz <kdsch@protonmail.com>2019-05-23 10:48:36 -0400
committerKarl Schultheisz <kdsch@protonmail.com>2019-05-23 10:48:36 -0400
commitcb03746137bc23f3c1b485088fefb9d4feffa368 (patch)
treece5ff4446fbf7ad961e3d7d0cc795b222f3188e3 /sam.c
parentf8c9f23619ffa407251426d706a996965e6d1cc9 (diff)
downloadvis-cb03746137bc23f3c1b485088fefb9d4feffa368.tar.gz
vis-cb03746137bc23f3c1b485088fefb9d4feffa368.tar.xz
Add layout option
This introduces a new `set` option for setting the layout to vertical or horizontal, which previously could not be done without creating a new window (via `split` or `vsplit`). Now, `set layout|lay h|v` will control this without creating a new window.
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sam.c b/sam.c
index 3b7aaf3..0abd9e2 100644
--- a/sam.c
+++ b/sam.c
@@ -297,6 +297,7 @@ enum {
OPTION_SAVE_METHOD,
OPTION_LOAD_METHOD,
OPTION_CHANGE_256COLORS,
+ OPTION_LAYOUT,
};
static const OptionDef options[] = {
@@ -380,6 +381,11 @@ static const OptionDef options[] = {
VIS_OPTION_TYPE_BOOL,
VIS_HELP("Change 256 color palette to support 24bit colors")
},
+ [OPTION_LAYOUT] = {
+ { "layout", "lay" },
+ VIS_OPTION_TYPE_STRING,
+ VIS_HELP("Vertical or horizontal window layout")
+ },
};
bool sam_init(Vis *vis) {