vimb.git
11 years agoFixed wrong check if a fired hint is an input.
Daniel Carl [Sat, 16 Feb 2013 10:46:31 +0000 (11:46 +0100)]
Fixed wrong check if a fired hint is an input.

We considered every html form input element as editable. This brakes the next
submit element on duckduckgo's search result page.

Now we exclude the input type submit, reset and image from the editable input
elements.

11 years agoReplaces the gchar -> char and gint -> int.
Daniel Carl [Sat, 16 Feb 2013 00:41:04 +0000 (01:41 +0100)]
Replaces the gchar -> char and gint -> int.

11 years agoSimplified keybind by removing string splitting.
Daniel Carl [Sat, 16 Feb 2013 00:22:59 +0000 (01:22 +0100)]
Simplified keybind by removing string splitting.

The splitting of keybind input string is now done in the command that maps the
keybindings.

11 years agoAdapted the year in the license headers.
Daniel Carl [Sat, 16 Feb 2013 00:03:13 +0000 (01:03 +0100)]
Adapted the year in the license headers.

11 years agoAdded a '_' before the include guards.
Daniel Carl [Fri, 15 Feb 2013 23:52:34 +0000 (00:52 +0100)]
Added a '_' before the include guards.

This is not required, but seems to be the common practice.

11 years agoAdded search-engine support (#11).
Daniel Carl [Fri, 15 Feb 2013 23:44:26 +0000 (00:44 +0100)]
Added search-engine support (#11).

Added a command to add and remove search-engines and extended the open command
to query the search-engine if the shortcut was found as first part of the open
or tabopen command.

11 years agoAllow to open the clipboard content as uri.
Daniel Carl [Wed, 13 Feb 2013 18:57:55 +0000 (19:57 +0100)]
Allow to open the clipboard content as uri.

There are two new keybindings to open the clipboards content in current window
(p) and into a new window (P).

11 years agoUse other function to clear input text.
Daniel Carl [Sun, 10 Feb 2013 18:54:31 +0000 (19:54 +0100)]
Use other function to clear input text.

11 years agoFixed none working keybindings with a 1.
Daniel Carl [Sun, 10 Feb 2013 16:43:31 +0000 (17:43 +0100)]
Fixed none working keybindings with a 1.

If a keybind contained a 1 this was only checked if it where uppercase, and
the shift mask was added to the keybinding. Indeed the 1 is uppercase and
lowercase together, so we ignore such cases where the char is available in
both cases.

11 years agoSet the mode after running a command in the command.
Daniel Carl [Sun, 10 Feb 2013 16:20:03 +0000 (17:20 +0100)]
Set the mode after running a command in the command.

This make the commands more flexible, because we don't need to set the mode
after a command is called from somewhere else than the input box.

11 years agoAllow to use count for search (#6).
Daniel Carl [Sat, 9 Feb 2013 17:18:25 +0000 (18:18 +0100)]
Allow to use count for search (#6).

11 years agoAdded flags to enable search highlight feature.
Daniel Carl [Sat, 9 Feb 2013 15:35:39 +0000 (16:35 +0100)]
Added flags to enable search highlight feature.

11 years agoAllow searching in the page (#6).
Daniel Carl [Wed, 6 Feb 2013 23:25:25 +0000 (00:25 +0100)]
Allow searching in the page (#6).

Extended the keybindings to also save parameters to the commands. This allows
to map commands like 'input :foo' to a keybinding, which make the use more
flexible.

11 years agoFixed none working function with GTK3.
Daniel Carl [Mon, 4 Feb 2013 19:28:20 +0000 (20:28 +0100)]
Fixed none working function with GTK3.

11 years agoLittle performance improvement for completions.
Daniel Carl [Sun, 3 Feb 2013 20:31:52 +0000 (21:31 +0100)]
Little performance improvement for completions.

11 years agoSet the size of inspector pane to 1/3 of window height.
Daniel Carl [Sat, 2 Feb 2013 22:46:51 +0000 (23:46 +0100)]
Set the size of inspector pane to 1/3 of window height.

11 years agoAllow to use a proxy (#10).
Daniel Carl [Sat, 2 Feb 2013 22:08:12 +0000 (23:08 +0100)]
Allow to use a proxy (#10).

Added setting to enable or disable the proxy usage.

11 years agoOpen inspector into a pane within the current window.
Daniel Carl [Mon, 28 Jan 2013 19:45:29 +0000 (20:45 +0100)]
Open inspector into a pane within the current window.

11 years agoSplit the lifecycle of inspector into multiple functions.
Daniel Carl [Sun, 27 Jan 2013 18:04:59 +0000 (19:04 +0100)]
Split the lifecycle of inspector into multiple functions.

This is done to move the inspector in a new widget within the same window like
it is done other browsers too.

11 years agoFixed wrong error messages if configs where load from file.
Daniel Carl [Sun, 27 Jan 2013 17:24:17 +0000 (18:24 +0100)]
Fixed wrong error messages if configs where load from file.

11 years agoUse higher level function to read config file.
Daniel Carl [Mon, 7 Jan 2013 19:55:30 +0000 (20:55 +0100)]
Use higher level function to read config file.

11 years agoAdded new function to read file contents.
Daniel Carl [Mon, 7 Jan 2013 19:44:09 +0000 (20:44 +0100)]
Added new function to read file contents.

11 years agoDon't set vp_update_status_style every time the statusbar is updated.
Daniel Carl [Mon, 7 Jan 2013 18:51:21 +0000 (19:51 +0100)]
Don't set vp_update_status_style every time the statusbar is updated.

The style depends only on the current ssl status, so it's enough to update if
we get a new status or if the color definitions are changed.

11 years agoFixed invalid macro for the debug timers.
Daniel Carl [Mon, 7 Jan 2013 18:50:42 +0000 (19:50 +0100)]
Fixed invalid macro for the debug timers.

11 years agoDo not allow to load favicon images.
Daniel Carl [Mon, 7 Jan 2013 18:33:54 +0000 (19:33 +0100)]
Do not allow to load favicon images.

11 years agoFixed wrong ssl validation on some pages.
Daniel Carl [Mon, 7 Jan 2013 18:15:17 +0000 (19:15 +0100)]
Fixed wrong ssl validation on some pages.

11 years agoSave last closed page into file (#9).
Daniel Carl [Sun, 6 Jan 2013 19:13:46 +0000 (20:13 +0100)]
Save last closed page into file (#9).

Added command to reopen the last closed page 'open-closed' and
'tabopen-closed'.

11 years agoMoved OVERWRITE_STRING maro to main.h.
Daniel Carl [Sun, 6 Jan 2013 18:38:06 +0000 (19:38 +0100)]
Moved OVERWRITE_STRING maro to main.h.

We could use this in other files too.

11 years agoAllow to download multiple files.
Daniel Carl [Sun, 6 Jan 2013 18:23:04 +0000 (19:23 +0100)]
Allow to download multiple files.

Show the download progress in the status bar.

11 years agoAdded new features to the readme.
Daniel Carl [Sat, 5 Jan 2013 15:18:06 +0000 (16:18 +0100)]
Added new features to the readme.

11 years agoAdd the new commands open-home and tabopen-home to man page.
Daniel Carl [Sat, 5 Jan 2013 15:13:28 +0000 (16:13 +0100)]
Add the new commands open-home and tabopen-home to man page.

11 years agoAllow to set a home page.
Daniel Carl [Sat, 5 Jan 2013 14:57:01 +0000 (15:57 +0100)]
Allow to set a home page.

Added also commands and keybinds to easily open the home page into current or
new window.

11 years agoUse pointer to char for the hint colors too.
Daniel Carl [Sat, 5 Jan 2013 14:19:23 +0000 (15:19 +0100)]
Use pointer to char for the hint colors too.

11 years agoAdded support for ssl validation.
Daniel Carl [Sat, 5 Jan 2013 12:17:19 +0000 (13:17 +0100)]
Added support for ssl validation.

SSL certificates are checked against a CA bundle (by default:
/etc/ssl/certs/ca-certificates.crt)
If verified, green background colour in the status bar.
If unverified, vimp will refuse to connect.

11 years agoEnable cookie support by default.
Daniel Carl [Sat, 5 Jan 2013 12:37:58 +0000 (13:37 +0100)]
Enable cookie support by default.

11 years agoShow load progress status in statusbar.
Daniel Carl [Tue, 1 Jan 2013 13:42:44 +0000 (14:42 +0100)]
Show load progress status in statusbar.

11 years agoMoved callback from g_signal_connect to g_object_connect.
Daniel Carl [Tue, 1 Jan 2013 13:04:18 +0000 (14:04 +0100)]
Moved callback from g_signal_connect to g_object_connect.

11 years agoShow the websites title as window title.
Daniel Carl [Mon, 31 Dec 2012 16:38:10 +0000 (17:38 +0100)]
Show the websites title as window title.

11 years agoMade make a little more verbose.
Daniel Carl [Mon, 31 Dec 2012 16:29:31 +0000 (17:29 +0100)]
Made make a little more verbose.

11 years agoShow link url in urlbar for hinted links.
Daniel Carl [Mon, 31 Dec 2012 15:55:39 +0000 (16:55 +0100)]
Show link url in urlbar for hinted links.

Every time the focus is set, we show the hinted elements url in the urlbar.

11 years agoShow hovered link url in urlbar.
Daniel Carl [Mon, 31 Dec 2012 15:12:06 +0000 (16:12 +0100)]
Show hovered link url in urlbar.

11 years agoFixed missed mode to remove keybinds.
Daniel Carl [Mon, 31 Dec 2012 13:49:47 +0000 (14:49 +0100)]
Fixed missed mode to remove keybinds.

11 years agoMoved setting related function from util.c to setting.c.
Daniel Carl [Mon, 31 Dec 2012 13:18:07 +0000 (14:18 +0100)]
Moved setting related function from util.c to setting.c.

Now there is no dependency from the setting.c to the util function.

11 years agoRemove modkeys if keybinding is removed (#2).
Daniel Carl [Sun, 30 Dec 2012 18:23:35 +0000 (19:23 +0100)]
Remove modkeys if keybinding is removed (#2).

11 years agoMoved static variable from keybind.c to the VpCore struct.
Daniel Carl [Sun, 30 Dec 2012 16:24:19 +0000 (17:24 +0100)]
Moved static variable from keybind.c to the VpCore struct.

11 years agoReduced the number of string operation to process settings.
Daniel Carl [Sun, 30 Dec 2012 16:11:58 +0000 (17:11 +0100)]
Reduced the number of string operation to process settings.

Also added some more error messages if some settings could not be set.

11 years agoAllow to see the value of settings.
Daniel Carl [Sun, 30 Dec 2012 15:50:32 +0000 (16:50 +0100)]
Allow to see the value of settings.

The 'set' command allows to print the current values to the input box. To see
the value of a variable, use ':set config-name?' like it is done in vim.

11 years agoFixed typo in man page.
Daniel Carl [Sun, 30 Dec 2012 09:50:29 +0000 (10:50 +0100)]
Fixed typo in man page.

11 years agoRemoved constant PROJECT from sources.
Daniel Carl [Sun, 30 Dec 2012 09:36:09 +0000 (10:36 +0100)]
Removed constant PROJECT from sources.

To easily rename the project into something else is a unused feature.

11 years agoAdded install and uninstall make targets.
Daniel Carl [Sat, 29 Dec 2012 21:06:18 +0000 (22:06 +0100)]
Added install and uninstall make targets.

11 years agoDo not use CPPFLAGS for the man page.
Daniel Carl [Sat, 29 Dec 2012 20:29:28 +0000 (21:29 +0100)]
Do not use CPPFLAGS for the man page.

We use the VERSION and PROJECT macros direct for the generation of the man
page. The CPPFLAGS will cause errors if the m4 macro processor does not know
the options.

11 years agoFixed array-bounds warning.
Daniel Carl [Sat, 29 Dec 2012 20:25:52 +0000 (21:25 +0100)]
Fixed array-bounds warning.

11 years agoAdded a man page for the browser commands.
Daniel Carl [Sat, 29 Dec 2012 20:06:26 +0000 (21:06 +0100)]
Added a man page for the browser commands.

11 years agoAdded all suggested keybindings to th default configuration.
Daniel Carl [Sat, 29 Dec 2012 15:00:20 +0000 (16:00 +0100)]
Added  all suggested keybindings to th default configuration.

Doing it in this way allow to use the browser with full keyboard support
without creating a configuration for before enjoying the great browser
experience.

11 years agoUse a '=' to seperate the kebind and the command for *map command.
Daniel Carl [Sat, 29 Dec 2012 14:50:23 +0000 (15:50 +0100)]
Use a '=' to seperate the kebind and the command for *map command.

This changed makes the commands format more generic for all commands. From the
point of view of the command, there is no difference between the set command
and the various *map commands. Now we use the following format for all
commands:

[count]command[ param1[=value1]].

This will make the commands easier to use and learn and will make our lives
easier in later implementations. For example would be the parsing of
[count] command[ param1=[value1] param2 param3[=value3]] easy.

11 years agoChanged the help message a little.
Daniel Carl [Sat, 29 Dec 2012 10:46:11 +0000 (11:46 +0100)]
Changed the help message a little.

Pumped to version 0.1.3.

11 years agoMade better help descriptions for program options.
Daniel Carl [Tue, 25 Dec 2012 00:24:26 +0000 (01:24 +0100)]
Made better help descriptions for program options.

11 years agoImplemented embedding via x-embed.
Daniel Carl [Tue, 25 Dec 2012 00:21:17 +0000 (01:21 +0100)]
Implemented embedding via x-embed.

11 years agoChanged the order of project and version for vimp -v.
Daniel Carl [Mon, 24 Dec 2012 22:54:38 +0000 (23:54 +0100)]
Changed the order of project and version for vimp -v.

11 years agoAllow to yank hinted link url.
Daniel Carl [Mon, 24 Dec 2012 02:29:23 +0000 (03:29 +0100)]
Allow to yank hinted link url.

11 years agoAdded command to yank current url or selected text to clipboard.
Daniel Carl [Sun, 23 Dec 2012 23:50:01 +0000 (00:50 +0100)]
Added command to yank current url or selected text to clipboard.

11 years agoAdded macro to get current url.
Daniel Carl [Sun, 23 Dec 2012 23:58:11 +0000 (00:58 +0100)]
Added macro to get current url.

11 years agoAllow to set the maximum number of completion items to runtime.
Daniel Carl [Sun, 23 Dec 2012 22:56:44 +0000 (23:56 +0100)]
Allow to set the maximum number of completion items to runtime.

11 years agoAllow to use count for the browser history.
Daniel Carl [Sun, 23 Dec 2012 22:36:09 +0000 (23:36 +0100)]
Allow to use count for the browser history.

Now it's possible to go multiply step back or forward in the history by
:[n]back or :[n]forward and also via keybindings.

11 years agoAllow to set the style of hints on runtime.
Daniel Carl [Sun, 23 Dec 2012 01:54:22 +0000 (02:54 +0100)]
Allow to set the style of hints on runtime.

11 years agoAllow to set hint element style on runtime.
Daniel Carl [Sun, 23 Dec 2012 01:40:42 +0000 (02:40 +0100)]
Allow to set hint element style on runtime.

11 years agoDo not add inputbox observers if hint will be fired.
Daniel Carl [Sat, 22 Dec 2012 23:43:15 +0000 (00:43 +0100)]
Do not add inputbox observers if hint will be fired.

11 years agoFixed duplicate hint processing if there exists only one hint item.
Daniel Carl [Sat, 22 Dec 2012 18:40:26 +0000 (19:40 +0100)]
Fixed duplicate hint processing if there exists only one hint item.

If there where only one hintable item, the item was fired by the hints_create
function and the hints_changed_callback too. This leads to duplicate input of
the hinted url for the command hint-input-open.

11 years agoFixed reseted prefixLength for the hints.
Daniel Carl [Sat, 22 Dec 2012 15:58:03 +0000 (16:58 +0100)]
Fixed reseted prefixLength for the hints.

The prefixLength was set back to zero on call of hints_clear so that hinting
with chars didn't work properly. Now the prefixLength is alway given as
parameter to the function hints_create.

11 years agoHandle hinting command prefixes.
Daniel Carl [Sat, 22 Dec 2012 15:30:07 +0000 (16:30 +0100)]
Handle hinting command prefixes.

This patch allow to have hinting command prefixes with differen length like
',' or ';t'.

11 years agoMoved static variables from hint.c into VpVore struct.
Daniel Carl [Sat, 22 Dec 2012 14:51:44 +0000 (15:51 +0100)]
Moved static variables from hint.c into VpVore struct.

This change makes the variables to global variables what isn't a good choice
in general, but it makes the code a bit more clean here and allow us to manage
multiple webviews together in the future.

11 years agoReindented code in main.h.
Daniel Carl [Sat, 22 Dec 2012 14:21:45 +0000 (15:21 +0100)]
Reindented code in main.h.

11 years agoChanged the start page to the project page on github.
Daniel Carl [Sat, 22 Dec 2012 02:56:43 +0000 (03:56 +0100)]
Changed the start page to the project page on github.

11 years agoDispatch click event over the document the hints belongs.
Daniel Carl [Sat, 22 Dec 2012 02:45:06 +0000 (03:45 +0100)]
Dispatch click event over the document the hints belongs.

11 years agoAllow hinting also in iframes.
Daniel Carl [Sat, 22 Dec 2012 02:04:58 +0000 (03:04 +0100)]
Allow hinting also in iframes.

Fixed wrong offset calculation for the hints.

11 years agoChanged the default keybinding for the hint open commands.
Daniel Carl [Fri, 21 Dec 2012 23:17:52 +0000 (00:17 +0100)]
Changed the default keybinding for the hint open commands.

Now we use ;o and ;t to write the hintes source or uri to the inputbar.

11 years agoRemove unneeded hints_vlear_focus function.
Daniel Carl [Fri, 21 Dec 2012 23:13:13 +0000 (00:13 +0100)]
Remove unneeded hints_vlear_focus function.

11 years agoAdded logic to process hinted elements.
Daniel Carl [Fri, 21 Dec 2012 14:09:14 +0000 (15:09 +0100)]
Added logic to process hinted elements.

Added commend to write hinted link url to the inputbar.

11 years agoFixed regression in completion mode.
Daniel Carl [Fri, 21 Dec 2012 14:43:50 +0000 (15:43 +0100)]
Fixed regression in completion mode.

11 years agoUse a bitmap for the hints type and open modes.
Daniel Carl [Fri, 21 Dec 2012 13:22:37 +0000 (14:22 +0100)]
Use a bitmap for the hints type and open modes.

11 years agoRemoved no more needed variable declaration.
Daniel Carl [Thu, 20 Dec 2012 15:17:55 +0000 (16:17 +0100)]
Removed no more needed variable declaration.

11 years agoFixed missed g_object_unref.
Daniel Carl [Thu, 20 Dec 2012 15:03:09 +0000 (16:03 +0100)]
Fixed missed g_object_unref.

Also avoided to cast a WebKitDOMNode multiple times to a WebKitDOMElement.

11 years agoAdded commands inputtabopen and inputtabpencurrent.
Daniel Carl [Thu, 20 Dec 2012 13:47:49 +0000 (14:47 +0100)]
Added commands inputtabopen and inputtabpencurrent.

11 years agoFixed duplicate mode setting in command_input function.
Daniel Carl [Thu, 20 Dec 2012 13:41:16 +0000 (14:41 +0100)]
Fixed duplicate mode setting in command_input function.

11 years agoFixed wrong parameter for command_open.
Daniel Carl [Wed, 19 Dec 2012 18:31:32 +0000 (19:31 +0100)]
Fixed wrong parameter for command_open.

11 years agoAllow to open links into new window.
Daniel Carl [Wed, 19 Dec 2012 18:27:28 +0000 (19:27 +0100)]
Allow to open links into new window.

11 years agoUse signal::button-release-event instead of signal event.
Daniel Carl [Wed, 19 Dec 2012 14:56:19 +0000 (15:56 +0100)]
Use signal::button-release-event instead of signal event.

11 years agoRemove -- INPUT -- from inputbox after submitting a form.
Daniel Carl [Wed, 19 Dec 2012 14:19:29 +0000 (15:19 +0100)]
Remove -- INPUT -- from inputbox after submitting a form.

11 years agoAllow to active form fields via hinting.
Daniel Carl [Wed, 19 Dec 2012 14:04:20 +0000 (15:04 +0100)]
Allow to active form fields via hinting.

11 years agoFixed wrong parameter order in hints_num_has_prefix.
Daniel Carl [Sun, 16 Dec 2012 18:36:50 +0000 (19:36 +0100)]
Fixed wrong parameter order in hints_num_has_prefix.

11 years agoDispatch mouseover and mouseout event when focus elements by hinting.
Daniel Carl [Sun, 16 Dec 2012 18:33:36 +0000 (19:33 +0100)]
Dispatch mouseover and mouseout event when focus elements by hinting.

11 years agoUse mouse event to open hint instead of c logic.
Daniel Carl [Sun, 16 Dec 2012 18:13:21 +0000 (19:13 +0100)]
Use mouse event to open hint instead of c logic.

11 years agoAllow to open fired hint elements.
Daniel Carl [Sun, 16 Dec 2012 13:05:13 +0000 (14:05 +0100)]
Allow to open fired hint elements.

11 years agoAllow to fire focussed hint via retrun hit.
Daniel Carl [Sat, 15 Dec 2012 23:16:39 +0000 (00:16 +0100)]
Allow to fire focussed hint via retrun hit.

11 years agoAllow to filter and update hints.
Daniel Carl [Sat, 15 Dec 2012 23:10:06 +0000 (00:10 +0100)]
Allow to filter and update hints.

11 years agoMoved key event related macros to main.h.
Daniel Carl [Sat, 15 Dec 2012 23:08:34 +0000 (00:08 +0100)]
Moved key event related macros to main.h.

So we can access them in every files that uses keypress event handlers.

11 years agoUse inputbox to filter hints.
Daniel Carl [Sat, 15 Dec 2012 23:07:49 +0000 (00:07 +0100)]
Use inputbox to filter hints.

11 years agoAdded new function to write input text.
Daniel Carl [Sat, 15 Dec 2012 18:03:58 +0000 (19:03 +0100)]
Added new function to write input text.

11 years agoFixed wrong bounding box calculation for hints.
Daniel Carl [Sat, 8 Dec 2012 15:40:41 +0000 (16:40 +0100)]
Fixed wrong bounding box calculation for hints.

Added shorter type for the webkit dom types to cleanup the code.

11 years agoAdded alias for settings.
Daniel Carl [Mon, 3 Dec 2012 21:53:12 +0000 (22:53 +0100)]
Added alias for settings.

This was done because the webkit settings don't always have short or mnemonic
names.