vimb.git
11 years agoRemoved hint processings out of the javascript.
Daniel Carl [Sun, 3 Mar 2013 10:08:55 +0000 (11:08 +0100)]
Removed hint processings out of the javascript.

Cause of the processings that where know in the c-layer and the javascript
layer too, we got really complicated code. Now the javascript-layer did no
know anything of how the hinted sources should be used by the browser. This
only concern that is kept in the javascript are the different types of
elements that are hintable.

11 years agoShow hinted element source in status bar.
Daniel Carl [Sun, 3 Mar 2013 08:52:30 +0000 (09:52 +0100)]
Show hinted element source in status bar.

11 years agoGive the web frame to the functions that call javascript.
Daniel Carl [Sun, 3 Mar 2013 08:32:13 +0000 (09:32 +0100)]
Give the web frame to the functions that call javascript.

11 years agoStop hinting if no element is found.
Daniel Carl [Fri, 1 Mar 2013 16:18:22 +0000 (17:18 +0100)]
Stop hinting if no element is found.

11 years agoReleased version 0.1.4.
Daniel Carl [Fri, 1 Mar 2013 16:04:38 +0000 (17:04 +0100)]
Released version 0.1.4.

11 years agoAdded hinting mode to open images.
Daniel Carl [Fri, 1 Mar 2013 15:50:22 +0000 (16:50 +0100)]
Added hinting mode to open images.

With the ;i or ;I hinting mode images can be hinted end opened.

11 years agoDon't show the hint commands as script files in inspector.
Daniel Carl [Fri, 1 Mar 2013 14:44:08 +0000 (15:44 +0100)]
Don't show the hint commands as script files in inspector.

11 years agoAllow to set script name if a javascript is evaluated.
Daniel Carl [Fri, 1 Mar 2013 14:28:50 +0000 (15:28 +0100)]
Allow to set script name if a javascript is evaluated.

11 years agoRenamed hinting js file from hint.js -> hints.js.
Daniel Carl [Fri, 1 Mar 2013 14:13:42 +0000 (15:13 +0100)]
Renamed hinting js file from hint.js -> hints.js.

11 years agoFixed some coding issues in hint.js.
Daniel Carl [Fri, 1 Mar 2013 14:10:26 +0000 (15:10 +0100)]
Fixed some coding issues in hint.js.

11 years agoRemove no more used type short cuts from dom module.
Daniel Carl [Wed, 27 Feb 2013 23:46:49 +0000 (00:46 +0100)]
Remove no more used type short cuts from dom module.

11 years agoReplaced hinting by javascript hinting.
Daniel Carl [Wed, 27 Feb 2013 22:53:13 +0000 (23:53 +0100)]
Replaced hinting by javascript hinting.

The previous approach to use the dom api to generate the hints was much slower
than the javascript solution. I think the javascript way is also a little bit
more flexible and easier to implement. But now we have to concern about data
sharing between c-layer an the javascript.

11 years agoAllow to run user scripts on every page.
Daniel Carl [Tue, 26 Feb 2013 22:50:11 +0000 (23:50 +0100)]
Allow to run user scripts on every page.

11 years agoBetter history lookup performance.
Daniel Carl [Tue, 26 Feb 2013 22:04:06 +0000 (23:04 +0100)]
Better history lookup performance.

Don't generate the list of matching item if we step through the items.
Generate the active list only one time and use it to step through the matching
history items.

11 years agoAdded search history (#8).
Daniel Carl [Sun, 24 Feb 2013 19:46:05 +0000 (20:46 +0100)]
Added search history (#8).

11 years agoSave the commands together with the prefix ':' in history (#7).
Daniel Carl [Sun, 24 Feb 2013 19:33:05 +0000 (20:33 +0100)]
Save the commands together with the prefix ':' in history (#7).

This is not so flexible, but makes many tings easier to implement to violate
the concerns of the components.

11 years agoImplemented prefix aware history searching (#7).
Daniel Carl [Sun, 24 Feb 2013 19:24:05 +0000 (20:24 +0100)]
Implemented prefix aware history searching (#7).

If ':set' is already typed in the inputbox, the history will only step over
those items that matches this prefix. Now vimp behave a little bit more like
the great vim editor.

11 years agoSplit the VpCore struct into the local and global part.
Daniel Carl [Sun, 24 Feb 2013 17:38:56 +0000 (18:38 +0100)]
Split the VpCore struct into the local and global part.

This makes the way to have global configs that are loaded on application start
an local settings that are kept for every window/tab.

11 years agoFixed wrong history entries is set command is called (#7).
Daniel Carl [Sun, 24 Feb 2013 17:58:46 +0000 (18:58 +0100)]
Fixed wrong history entries is set command is called (#7).

If a set command to read config is called like ':set fontsize?' which prints
the value into the inputbox, the printed result was put into history instead
of the real called command string.

11 years agoRemove unneeded status style setting.
Daniel Carl [Sun, 24 Feb 2013 13:50:51 +0000 (14:50 +0100)]
Remove unneeded status style setting.

11 years agoRemoved redundant and no more needed code.
Daniel Carl [Sat, 23 Feb 2013 23:38:05 +0000 (00:38 +0100)]
Removed redundant and no more needed code.

11 years agoMoved mode switching to command also if command not found.
Daniel Carl [Sat, 23 Feb 2013 10:41:27 +0000 (11:41 +0100)]
Moved mode switching to command also if command not found.

This make the mode switching more unique. If command_run is called, this will
switch to the right mode, independent if the command exists or could be run or
not.

11 years agoDon't save commands from config file and default config in history.
Daniel Carl [Sat, 23 Feb 2013 10:36:34 +0000 (11:36 +0100)]
Don't save commands from config file and default config in history.

11 years agoFixed missed freeing of list items.
Daniel Carl [Sat, 23 Feb 2013 10:31:53 +0000 (11:31 +0100)]
Fixed missed freeing of list items.

11 years agoRemoved {tab}open-home command.
Daniel Carl [Fri, 22 Feb 2013 21:55:16 +0000 (22:55 +0100)]
Removed {tab}open-home command.

The featured is done in the open command. If open is called without any url
the configured home page is opened.

11 years agoAdded parameters to commands in manpage.
Daniel Carl [Fri, 22 Feb 2013 21:44:46 +0000 (22:44 +0100)]
Added parameters to commands in manpage.

11 years agoRemove hard to read curly brace syntax for commands.
Daniel Carl [Fri, 22 Feb 2013 21:29:58 +0000 (22:29 +0100)]
Remove hard to read curly brace syntax for commands.

11 years agoAdded command to navigate in command history (#7).
Daniel Carl [Fri, 22 Feb 2013 21:23:06 +0000 (22:23 +0100)]
Added command to navigate in command history (#7).

11 years agoFixed code indentations.
Daniel Carl [Fri, 22 Feb 2013 20:09:51 +0000 (21:09 +0100)]
Fixed code indentations.

11 years agoFixed wrong mode if new window was opened.
Daniel Carl [Thu, 21 Feb 2013 21:03:59 +0000 (22:03 +0100)]
Fixed wrong mode if new window was opened.

If there was opened a uri into a new window the first window kept in command
mode. This caused that the normal mode keybindings did not work until <esc>
was pressed.

11 years agoCheck if uri is a file path before open it.
Daniel Carl [Thu, 21 Feb 2013 19:34:37 +0000 (20:34 +0100)]
Check if uri is a file path before open it.

11 years agoFixed bug in retrieving webkit settings of type char.
Daniel Carl [Tue, 19 Feb 2013 20:48:42 +0000 (21:48 +0100)]
Fixed bug in retrieving webkit settings of type char.

11 years agoUsed font switches in man page to make it more readable.
Daniel Carl [Sun, 17 Feb 2013 17:05:34 +0000 (18:05 +0100)]
Used font switches in man page to make it more readable.

11 years agoAdded command and keybinds to zoom the page.
Daniel Carl [Sun, 17 Feb 2013 16:57:02 +0000 (17:57 +0100)]
Added command and keybinds to zoom the page.

11 years agoIncreased the default font size from 10 -> 11.
Daniel Carl [Sat, 16 Feb 2013 18:45:28 +0000 (19:45 +0100)]
Increased the default font size from 10 -> 11.

11 years agoAllow to toggle boolean variables.
Daniel Carl [Sat, 16 Feb 2013 17:51:49 +0000 (18:51 +0100)]
Allow to toggle boolean variables.

It's now possible to toggel the value of boolean variable during runtime via
extended set command.

Example to toggle the carret mode
    :set carret!

11 years agoRemoved redundant input* commands.
Daniel Carl [Sat, 16 Feb 2013 14:49:16 +0000 (15:49 +0100)]
Removed redundant input* commands.

These commands can be replaces by the input command with the parameters and
the new inputuri command that prints the text into inputbox appended by the
current uri.

11 years agoDon't strip any whitespace to process input.
Daniel Carl [Sat, 16 Feb 2013 14:34:59 +0000 (15:34 +0100)]
Don't strip any whitespace to process input.

The whitespace might be relevant input like for the input commands where
something like ':input :open ' is useful.

11 years agoUsed italic font in manpage more consistent.
Daniel Carl [Sat, 16 Feb 2013 14:21:06 +0000 (15:21 +0100)]
Used italic font in manpage more consistent.

11 years agoAdded section about duplicate keybinds to manpage.
Daniel Carl [Sat, 16 Feb 2013 13:45:35 +0000 (14:45 +0100)]
Added section about duplicate keybinds to manpage.

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.