From 1b7bce85427eb859e3462e6a90423b93d8c7f318 Mon Sep 17 00:00:00 2001 From: Hannes Schueller Date: Fri, 17 May 2013 14:05:40 +0200 Subject: [PATCH] adding colon commands for zooming text (zi, zo) and zooming the whole page (pgzi, pgzo) --- config.h | 4 ++++ vimprobable.h | 2 +- vimprobable2.1 | 16 ++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index 08ebfb0..91f26c3 100644 --- a/config.h +++ b/config.h @@ -165,6 +165,10 @@ Command commands[COMMANDSIZE] = { { "scrollright", scroll, {ScrollMove | DirectionRight | UnitLine} }, { "scrollup", scroll, {ScrollMove | DirectionTop | UnitLine} }, { "scrolldown", scroll, {ScrollMove | DirectionBottom | UnitLine} }, + { "zi", zoom, {ZoomIn | ZoomText} }, + { "zo", zoom, {ZoomOut | ZoomText} }, + { "pgzi", zoom, {ZoomIn | ZoomFullContent} }, + { "pgzo", zoom, {ZoomOut | ZoomFullContent} }, }; /* mouse bindings diff --git a/vimprobable.h b/vimprobable.h index 08ad095..16bd937 100644 --- a/vimprobable.h +++ b/vimprobable.h @@ -193,7 +193,7 @@ enum ConfigFileError { #define CLOSED_URL_FILENAME "%s/vimprobable/closed", client.config.config_base /* Command size */ -#define COMMANDSIZE 43 +#define COMMANDSIZE 47 /* maximum size of internal string variable handled by :set * if you set this to anything lower than 8, colour values diff --git a/vimprobable2.1 b/vimprobable2.1 index 66a3fec..6ece993 100644 --- a/vimprobable2.1 +++ b/vimprobable2.1 @@ -264,6 +264,22 @@ Shortcut: d Print the current URL +.IP ":zi" + +Zooms text in + +.IP ":zo" + +Zooms text out + +.IP ":pgzi" + +Zooms page in + +.IP ":pgzo" + +Zooms page out + .SH MODES Vimprobable is a modal browser. By default, it is in command mode, meaning that -- 2.11.4.GIT