diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-01-22 09:25:41 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-01-22 09:27:34 +0100 |
commit | 459f58f6aa4c00313a8d9cf27bc0820a19dbd81d (patch) | |
tree | 172dfd67a6340e6f54ca702fcb192f68d334ad9c /src | |
parent | 1b23cd3a477e281b9880ef0e2981ff0d878d71b5 (diff) | |
download | weechat-459f58f6aa4c00313a8d9cf27bc0820a19dbd81d.zip |
core: add new resize prefix (h/v) and examples of resize in /help window
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-command.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index f915464f5..1b56e4bd0 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -8010,13 +8010,13 @@ command_init () " || -1|+1|b#|up|down|left|right [-window <number>]" " || <number>" " || splith|splitv [-window <number>] [<pct>]" - " || resize [-window <number>] [+/-]<pct>" + " || resize [-window <number>] [h|v][+|-]<pct>" " || balance" " || merge [-window <number>] [all]" " || page_up|page_down [-window <number>]" " || refresh" - " || scroll [-window <number>] [+/-]<value>[s|m|h|d|M|y]" - " || scroll_horiz [-window <number>] [+/-]<value>[%]" + " || scroll [-window <number>] [+|-]<value>[s|m|h|d|M|y]" + " || scroll_horiz [-window <number>] [+|-]<value>[%]" " || scroll_up|scroll_down|scroll_top|scroll_bottom|" "scroll_beyond_end|scroll_previous_highlight|scroll_next_highlight|" "scroll_unread [-window <number>]" @@ -8039,6 +8039,9 @@ command_init () "(to undo: /window merge)\n" " resize: resize window size, new size is <pct> percentage of " "parent window\n" + " if \"h\" or \"v\" is specified, the resize affects " + "the nearest parent window with a split of this type " + "(horizontal/vertical)\n" " balance: balance the sizes of all windows\n" " merge: merge window with another (all = keep only one " "window)\n" @@ -8082,6 +8085,10 @@ command_init () " split window horizontally using 30%% of space for the window on " "top:\n" " /window splith 30\n" + " resize window to 75%% of the parent window size:\n" + " /window resize 75\n" + " resize vertical split, add 10%% in size:\n" + " /window resize v+10\n" " remove the split:\n" " /window merge\n" " enable bare display for 2 seconds:\n" |