vimb.git
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.

11 years agoFixed none working Upper-Case keybinds like a simple 'G'.
Daniel Carl [Mon, 3 Dec 2012 21:24:17 +0000 (22:24 +0100)]
Fixed none working Upper-Case keybinds like a simple 'G'.

Now 'G' and <shift-tab> still work like expected. But at the moment it fells
like we will come into trouble later with special fixes and modmask rules.

11 years agoAdded license headers also to hints files.
Daniel Carl [Sun, 2 Dec 2012 21:40:49 +0000 (22:40 +0100)]
Added license headers also to hints files.

11 years agoFixed none working keybinds with single uppercase chars.
Daniel Carl [Sun, 2 Dec 2012 21:37:55 +0000 (22:37 +0100)]
Fixed none working keybinds with single uppercase chars.

11 years agoCreate only hints on element in the visible area.
Daniel Carl [Sun, 2 Dec 2012 20:43:28 +0000 (21:43 +0100)]
Create only hints on element in the visible area.

11 years agoAdded basic logic for hints.
Daniel Carl [Sat, 1 Dec 2012 21:50:23 +0000 (22:50 +0100)]
Added basic logic for hints.

11 years agoAdded command 'inspect' to open the web inspector.
Daniel Carl [Sat, 1 Dec 2012 13:47:15 +0000 (14:47 +0100)]
Added command 'inspect' to open the web inspector.

11 years agoAdded web inspector.
Daniel Carl [Sat, 1 Dec 2012 13:37:28 +0000 (14:37 +0100)]
Added web inspector.

11 years agoAdded macro to get the cleaned current browser mode.
Daniel Carl [Sun, 25 Nov 2012 13:40:07 +0000 (14:40 +0100)]
Added macro to get the cleaned current browser mode.

11 years agoApply the input style settings if they where set.
Daniel Carl [Sun, 25 Nov 2012 13:28:34 +0000 (14:28 +0100)]
Apply the input style settings if they where set.

Before this patch it was possible that the input box uses another font with
other line height. If the first text is type in the input box this changes
it's size. Now the fonts and colors will be applied to it immediately.

11 years agoSimplified the usage of vp_set_model().
Daniel Carl [Sun, 25 Nov 2012 13:27:39 +0000 (14:27 +0100)]
Simplified the usage of vp_set_model().

11 years agoAdded license headers to dom.c and dom.h.
Daniel Carl [Thu, 22 Nov 2012 02:31:05 +0000 (03:31 +0100)]
Added license headers to dom.c and dom.h.

11 years agoAdded input mode.
Daniel Carl [Thu, 22 Nov 2012 02:24:21 +0000 (03:24 +0100)]
Added input mode.

Allow to set the browser into input mode if a text-, password or textarea is
focused on page load. Allow to switch to input mode, if an editable element is
clicked.

11 years agoFixed unused hide parameter in vp_echo() function.
Daniel Carl [Thu, 22 Nov 2012 01:38:12 +0000 (02:38 +0100)]
Fixed unused hide parameter in vp_echo() function.

11 years agoAllow to go back to normal mode via ctrl-c too.
Daniel Carl [Mon, 19 Nov 2012 19:45:07 +0000 (20:45 +0100)]
Allow to go back to normal mode via ctrl-c too.

11 years agoFixed un setable input and completion fonts.
Daniel Carl [Mon, 19 Nov 2012 18:55:36 +0000 (19:55 +0100)]
Fixed un setable input and completion fonts.

Also fixed unneeded completion spaces introduced by different completion
fonts.

11 years agoFixed regression in complation with numberd prefixes.
Daniel Carl [Mon, 19 Nov 2012 18:24:30 +0000 (19:24 +0100)]
Fixed regression in complation with numberd prefixes.

Inputs like :50j could not be completed anymore by a previous commit. This
patch fixes the issue.

11 years agoAllow to compile against gtk3.
Daniel Carl [Sat, 17 Nov 2012 21:21:09 +0000 (22:21 +0100)]
Allow to compile against gtk3.

Fixed not setting of completion colors.
Removed disabling of scrollbars.
This can be done for gtk2 via ~/.gtkrc-2.0:
    style "vimp-no-scrollbars" {
        GtkScrollbar::slider-width=0
        GtkScrollbar::trough-border=0
    }
    widget "vimp*" style "vimp-no-scrollbars"

and for gtk3 via XDG_CONFIG_HOME/gtk-3.0/gtk.css
    #vimp GtkScrollbar {
        -GtkRange-slider-width: 0;
        -GtkRange-trough-border: 0;
    }

11 years agoAdded command to start completion.
Daniel Carl [Mon, 12 Nov 2012 20:32:27 +0000 (21:32 +0100)]
Added command to start completion.

Doing this it's possible to set a special keybinding to complete commands and
settings.

11 years agoChanged format to specify key bindings.
Daniel Carl [Mon, 12 Nov 2012 19:47:49 +0000 (20:47 +0100)]
Changed format to specify key bindings.

Use <ctrl-o> to specifiy modmask and keyval together. With this approach it's
easier to parse and we can simply extend to use also keyval like <tab>.

11 years agoFixed hiding of inputbox if this is already focused.
Daniel Carl [Mon, 12 Nov 2012 18:56:04 +0000 (19:56 +0100)]
Fixed hiding of inputbox if this is already focused.

Added also a flag to the vp_echo function to allow to enable disable the
message hiding for the given message.

11 years agoAllow to set mode after command.
Daniel Carl [Mon, 12 Nov 2012 18:38:21 +0000 (19:38 +0100)]
Allow to set mode after command.

Now we can set the mode to switch to, for every command. Doing this allows to
use commands like :input also from inputbox.

11 years agoAdded macro to get only main modes.
Daniel Carl [Mon, 12 Nov 2012 18:08:53 +0000 (19:08 +0100)]
Added macro to get only main modes.

11 years agoAdded basic completion of settings.
Daniel Carl [Sun, 11 Nov 2012 17:22:08 +0000 (18:22 +0100)]
Added basic completion of settings.

For the moment we have to type :set and can complete from this the settings,
but it would be a better solution to complete first the command and add a
space and type TAB to complete the settings.

11 years agoRemove vp_webview_load_commited_cb.
Daniel Carl [Sun, 11 Nov 2012 14:00:14 +0000 (15:00 +0100)]
Remove vp_webview_load_commited_cb.

This task can be done also in vp_webview_load_status_cb. Added event observer
for change scroll adjustment of the webview.

11 years agoRemoved line that caused a soup waring.
Daniel Carl [Sun, 11 Nov 2012 13:26:39 +0000 (14:26 +0100)]
Removed line that caused a soup waring.

It seems that the removing of the soup feature 'soup_cookie_get_type' isn't
required.

11 years agoSet completion box to null after destroying it.
Daniel Carl [Sat, 10 Nov 2012 14:45:22 +0000 (15:45 +0100)]
Set completion box to null after destroying it.

11 years agoAdded README file.
Daniel Carl [Sat, 10 Nov 2012 14:11:05 +0000 (15:11 +0100)]
Added README file.

11 years agoAllow to set completion fonts too.
Daniel Carl [Mon, 5 Nov 2012 22:10:11 +0000 (23:10 +0100)]
Allow to set completion fonts too.

Skip command counts for the completion so that we can complete :50ju for
example.

11 years agoAdded setting for completion colors.
Daniel Carl [Mon, 5 Nov 2012 21:08:47 +0000 (22:08 +0100)]
Added setting for completion colors.

11 years agoSet status colors and fonts direct to the widgets.
Daniel Carl [Mon, 5 Nov 2012 20:07:51 +0000 (21:07 +0100)]
Set status colors and fonts direct to the widgets.

Do not save the color and font strings and set them every time via markup.

11 years agoAllow setting of input box color and fonts.
Daniel Carl [Mon, 5 Nov 2012 19:50:08 +0000 (20:50 +0100)]
Allow setting of input box color and fonts.

11 years agoAdded completion of commands.
Daniel Carl [Sat, 3 Nov 2012 02:16:50 +0000 (03:16 +0100)]
Added completion of commands.

11 years agoRemove at te moment unneeded cookie jar property.
Daniel Carl [Fri, 2 Nov 2012 16:31:36 +0000 (17:31 +0100)]
Remove at te moment unneeded cookie jar property.

11 years agoFixed missed flags to disable cookie support.
Daniel Carl [Thu, 1 Nov 2012 18:48:33 +0000 (19:48 +0100)]
Fixed missed flags to disable cookie support.

11 years agoFied missed parameter in setting_status_font().
Daniel Carl [Thu, 1 Nov 2012 18:22:54 +0000 (19:22 +0100)]
Fied missed parameter in setting_status_font().

11 years agoAdded missed g_string_free in vp_update_statusbar().
Daniel Carl [Thu, 1 Nov 2012 18:20:09 +0000 (19:20 +0100)]
Added missed g_string_free in vp_update_statusbar().

11 years agoAllow to set status font and colors during runtime.
Daniel Carl [Thu, 1 Nov 2012 18:19:39 +0000 (19:19 +0100)]
Allow to set status font and colors during runtime.

11 years agoAdded util function to generate arg from string.
Daniel Carl [Thu, 1 Nov 2012 16:01:40 +0000 (17:01 +0100)]
Added util function to generate arg from string.

11 years agoAllow to set scrollstep on runtime.
Daniel Carl [Thu, 1 Nov 2012 15:29:45 +0000 (16:29 +0100)]
Allow to set scrollstep on runtime.

11 years agoMoved all command to own c file.
Daniel Carl [Thu, 1 Nov 2012 14:59:45 +0000 (15:59 +0100)]
Moved all command to own c file.

11 years agoAllow to set internal variables via setting functions.
Daniel Carl [Thu, 1 Nov 2012 02:00:16 +0000 (03:00 +0100)]
Allow to set internal variables via setting functions.

11 years agoAuto clear input bar.
Daniel Carl [Thu, 1 Nov 2012 01:49:39 +0000 (02:49 +0100)]
Auto clear input bar.

No the inputbar will be cleared after some seconds a message was shown.

11 years agoUse variable args for vp_echo function.
Daniel Carl [Thu, 1 Nov 2012 00:54:46 +0000 (01:54 +0100)]
Use variable args for vp_echo function.

11 years agoAdded set command to edit setting on runtime.
Daniel Carl [Mon, 29 Oct 2012 20:32:27 +0000 (21:32 +0100)]
Added set command to edit setting on runtime.

11 years agoAdded cookie support.
Daniel Carl [Sat, 27 Oct 2012 14:40:53 +0000 (16:40 +0200)]
Added cookie support.

11 years agoAdded a small default config.
Daniel Carl [Sat, 27 Oct 2012 12:07:04 +0000 (14:07 +0200)]
Added a small default config.

This allows to run the browser in a light was without aving keybinds definded
in config files.

11 years agoAdded license information to each source file.
Daniel Carl [Sat, 27 Oct 2012 11:49:13 +0000 (13:49 +0200)]
Added license information to each source file.

11 years agoAdded return values to all commands.
Daniel Carl [Sat, 27 Oct 2012 11:37:19 +0000 (13:37 +0200)]
Added return values to all commands.

11 years agoUse commands to add and remove keybindings.
Daniel Carl [Sat, 27 Oct 2012 11:21:37 +0000 (13:21 +0200)]
Use commands to add and remove keybindings.

Doing it in this way, it is possible to easily set keybindings from input line
and we have a single logic to read imput line and config files.

11 years agoAllow to read keybindings from config file.
Daniel Carl [Sat, 20 Oct 2012 18:59:02 +0000 (20:59 +0200)]
Allow to read keybindings from config file.

11 years agoAllow setting and removing keybindings from string.
Daniel Carl [Sat, 20 Oct 2012 17:51:59 +0000 (19:51 +0200)]
Allow setting and removing keybindings from string.

11 years agoAllow to scroll to n% of the page.
Daniel Carl [Sat, 20 Oct 2012 12:08:02 +0000 (14:08 +0200)]
Allow to scroll to n% of the page.

11 years agoAllow to set command count also from input box.
Daniel Carl [Thu, 18 Oct 2012 21:00:57 +0000 (23:00 +0200)]
Allow to set command count also from input box.