Daniel Carl [Tue, 20 May 2014 19:52:57 +0000 (21:52 +0200)]
Released version 2.4.
Daniel Carl [Tue, 20 May 2014 19:51:25 +0000 (21:51 +0200)]
Removed -ansi build flag.
Don't print debug output on built with debug symbols this will disturb the
debug session.
Daniel Carl [Tue, 20 May 2014 19:46:47 +0000 (21:46 +0200)]
Add newline to generated hinting header file.
Clang compiler wants a newline at the end of source files.
Daniel Carl [Sat, 3 May 2014 17:33:46 +0000 (19:33 +0200)]
Simplified js2h.sh file a little (#76).
Removed last echo line and use sed to append the '"' to the string to fix
compile error on FreeBSD.
Daniel Carl [Sat, 3 May 2014 13:23:35 +0000 (15:23 +0200)]
Added missed stdio.h header (#76).
Daniel Carl [Mon, 28 Apr 2014 23:12:29 +0000 (01:12 +0200)]
Merge branch 'fix/FreeBSD-compile-error'
Conflicts:
config.mk
Daniel Carl [Wed, 23 Apr 2014 22:00:36 +0000 (00:00 +0200)]
Fixed shown random data if no header was set.
If the user run `set header=|set header?` there was displayed some random
data because we tried to skip the first ',' of the string event if the string
was empty.
Daniel Carl [Tue, 22 Apr 2014 21:23:38 +0000 (23:23 +0200)]
Follow gtype convention and renamed class to klass.
Daniel Carl [Fri, 18 Apr 2014 22:22:33 +0000 (00:22 +0200)]
Don't show the scrollbars in kiosk mode.
The user can scroll via <space> key or cursor keys and mouse wheel, so there
is no need to show the scrollbars if vimb was compiled without scrollbars.
Daniel Carl [Fri, 18 Apr 2014 22:08:48 +0000 (00:08 +0200)]
Added kiosk mode.
Daniel Carl [Fri, 18 Apr 2014 21:45:20 +0000 (23:45 +0200)]
Allow to toggle fullsceen.
Daniel Carl [Fri, 18 Apr 2014 18:26:05 +0000 (20:26 +0200)]
Remove none used error suppression options.
Daniel Carl [Thu, 17 Apr 2014 08:42:23 +0000 (10:42 +0200)]
Remove -Wmissing-parameter-type compiler option.
This seems to be no more required and produced warnings in clang compiler.
Daniel Carl [Thu, 17 Apr 2014 08:39:14 +0000 (10:39 +0200)]
Remove -Wmissing-parameter-type compiler option.
This seems to be no more required and produced warnings in clang compiler.
Daniel Carl [Tue, 15 Apr 2014 20:24:33 +0000 (22:24 +0200)]
Fixed wrong default treeView height on gtk3.
Daniel Carl [Tue, 15 Apr 2014 19:20:11 +0000 (21:20 +0200)]
Fixed g_source_remove call with none existing source.
The api was changed and spits out a critical error if a source does no exists.
This was the case when the timeout was remove by glib automatically after the
timeout function returned false.
Now the timeout function does return true to not remove the source
automatically, instead the resource is removed by vimb when the timeout is
handled in the map_handle_keys function.
Daniel Carl [Fri, 11 Apr 2014 19:54:11 +0000 (21:54 +0200)]
Another try to fixed FreeBSD compile error (#76).
Daniel Carl [Wed, 9 Apr 2014 22:47:19 +0000 (00:47 +0200)]
Show the completion list after the hight was set.
If the completion list is displayed before we set the hight, the user might
see the list for a really short time covering the whole webview window before
it's resized to fit into the lower third of the view. The patch moved the
display of the completion list after the list is calculated and the first
entry is marked as active.
Daniel Carl [Wed, 9 Apr 2014 21:11:58 +0000 (23:11 +0200)]
Fix compile error on FreeBSD (#76).
Daniel Carl [Wed, 9 Apr 2014 21:06:42 +0000 (23:06 +0200)]
Removed obsolete FILE_LOCK_SET macro.
Daniel Carl [Sat, 5 Apr 2014 20:50:06 +0000 (22:50 +0200)]
Released version 2.3.
Daniel Carl [Wed, 2 Apr 2014 21:59:35 +0000 (23:59 +0200)]
Merge branch 'fix/high-dpi'
Conflicts:
src/config.def.h
Daniel Carl [Wed, 2 Apr 2014 07:45:39 +0000 (09:45 +0200)]
Fixed none working open hints in new window (#74).
There is already a hack to allow the hinting JavaScript to open a page also in
a new window without user interaction (hinting in no user interaction in the
manner of webkit). To allow to open hints into new window the webkit setting
'javascript-can-open-windows-automatically' is enabled. After fireing a hint,
this is set back to it's initial value. But this seemed to be to early, what
means we potentially disabled to open page in new window right before the new
window was created.
This patch moved the resetting of the option into the clear function, that
should be late enough.
Daniel Carl [Sat, 29 Mar 2014 13:11:13 +0000 (14:11 +0100)]
Fixed unknown signal for webkit < 1.10.0.
Daniel Carl [Fri, 28 Mar 2014 11:32:47 +0000 (12:32 +0100)]
Allow to built vimb with webkit < 1.10.0.
Daniel Carl [Wed, 26 Mar 2014 22:10:52 +0000 (23:10 +0100)]
Fixed segfault on open new window via context-menu (#72).
Daniel Carl [Wed, 26 Mar 2014 20:50:02 +0000 (21:50 +0100)]
Allow to copy link location via context menu.
Daniel Carl [Wed, 12 Mar 2014 22:46:31 +0000 (23:46 +0100)]
Added missed default shortcuts.
Move the shortcut initializing and cleanup into setting.c, because the
shortcuts are more like settings instead of a own entity.
Daniel Carl [Wed, 12 Mar 2014 22:41:13 +0000 (23:41 +0100)]
Fixed segfault of not shortcut default is set.
Daniel Carl [Wed, 12 Mar 2014 22:09:32 +0000 (23:09 +0100)]
Removed default.h and set default settings in init_settings().
This saves some time spent on parsing the string values into the setting args.
Daniel Carl [Wed, 12 Mar 2014 21:02:01 +0000 (22:02 +0100)]
Added missed precompiler defs for cookie feature.
Daniel Carl [Wed, 12 Mar 2014 20:19:34 +0000 (21:19 +0100)]
Don't expand download-path if set.
It is unusual to expand the variables when they are set. This will irritate
the user in case ':set download-path=$HOME' is set but ':set download-path?'
spits out not what the user set before.
So vimb follows the example given by vim and save the path like is was given
and expands it it it's used.
Daniel Carl [Wed, 12 Mar 2014 20:03:41 +0000 (21:03 +0100)]
Allow to set empty download-dir.
If the download directory is not set or empty the download will be put into
current directory.
Daniel Carl [Wed, 12 Mar 2014 19:44:05 +0000 (20:44 +0100)]
Replace G_DIR_SEPARATOR by / this is easier to read.
Daniel Carl [Tue, 11 Mar 2014 00:37:52 +0000 (01:37 +0100)]
Use new chartable instead of ctype.h functions.
Daniel Carl [Tue, 11 Mar 2014 00:11:18 +0000 (01:11 +0100)]
Don't expand string via shell.
The shell expansion was done via shell to keep complexity away from vimb, but
this allowed to run other shell commands too, what's a big security issue. To
avoid problems, the ~/, ~user, $ENV and ${ENV} expansions are done in the c
code o vimb.
Daniel Carl [Sat, 8 Mar 2014 23:24:58 +0000 (00:24 +0100)]
Fixed missed line break in man page.
Daniel Carl [Sat, 8 Mar 2014 23:19:46 +0000 (00:19 +0100)]
Added shell expansion for download paths.
Daniel Carl [Sat, 8 Mar 2014 21:30:00 +0000 (22:30 +0100)]
Simplified :shell command processing.
Daniel Carl [Sat, 8 Mar 2014 12:49:47 +0000 (13:49 +0100)]
Fixed GTK3 compile error (#67).
Daniel Carl [Wed, 5 Mar 2014 23:47:02 +0000 (00:47 +0100)]
Added wget style progressbar.
Daniel Carl [Wed, 5 Mar 2014 21:39:34 +0000 (22:39 +0100)]
Adapt zoom level for high dpi displays (#67).
Daniel Carl [Mon, 3 Mar 2014 22:27:29 +0000 (23:27 +0100)]
Use 'tls-database' instead of deprecated 'ssl-ca-file'.
Daniel Carl [Mon, 3 Mar 2014 21:52:04 +0000 (22:52 +0100)]
Fixed none working 'F' hintmode for webkit2.
If vimb is built against webkit2 webkit's sandbox does not allow to open a
element via JavaScript into a new window. So, webkit does nothing if the
hinting fires a click event on an element that has a none empty target
attribute set.
This patch enables the setting to allow JavaScript to open windows without
user interaction as long as the hinting is active.
Daniel Carl [Sun, 2 Mar 2014 20:33:47 +0000 (21:33 +0100)]
Fixed possible wrong view object in hint clicking.
Daniel Carl [Sun, 2 Mar 2014 15:12:54 +0000 (16:12 +0100)]
Added async :shellcmd!.
Daniel Carl [Sat, 1 Mar 2014 22:28:55 +0000 (23:28 +0100)]
Added notice about required escaping for prev/nextpattern.
Daniel Carl [Sat, 1 Mar 2014 22:09:36 +0000 (23:09 +0100)]
Allow to complete multiple tags for :bma command.
The bookmark adding allowed to complete the given tag out of the known tags in
the bookmark file. But this could only be done for the first tag. This patch
allows to complete multiple tags like ':bma tag1 tag2 ta<Tab>'.
Daniel Carl [Thu, 27 Feb 2014 22:07:02 +0000 (23:07 +0100)]
Fixed wrong download path for pages with trailing /.
If a page has a URL with a trailing slash, the suggested file name was an
empty string. But we appended this empty string as file to the download
directory path, so vimb tries to save the download under a directory path an
not a file.
This patch checks the case where the filename is empty so that the default
download file name can be used.
Daniel Carl [Mon, 24 Feb 2014 19:50:07 +0000 (20:50 +0100)]
Fixed wrong webview used in load status callback.
Daniel Carl [Mon, 24 Feb 2014 09:06:47 +0000 (10:06 +0100)]
Don't skip first search match after committing search query.
If the user typed the search text into inputbox, the search started. After the
search query was commited via <CR> the search went forward a match. But like
in vim the first found match should keep the first one after the search query
is commited.
Daniel Carl [Mon, 24 Feb 2014 08:34:25 +0000 (09:34 +0100)]
Don't unmark search matches if the this feature is disabled.
Daniel Carl [Mon, 24 Feb 2014 08:10:12 +0000 (09:10 +0100)]
Stop previous search before new one (#66).
If there is an active search with highlighted matches and the user uses `#` or
`*` to start a new search for marked text, the old hightlights where kept but
the search uses the marked text. Now a possible previous search is stopped
before the new one is started.
Daniel Carl [Thu, 20 Feb 2014 08:19:35 +0000 (09:19 +0100)]
Added packages to README.
Daniel Carl [Sun, 16 Feb 2014 23:21:49 +0000 (00:21 +0100)]
Use all options also for new spawned instances (#64).
The --cmd option was not given to new vimb instance if a link was opened into
a new window. This was not obvious and inconsistent compared to the other
options.
Daniel Carl [Sat, 1 Feb 2014 13:03:05 +0000 (14:03 +0100)]
Released version 2.2.
Daniel Carl [Tue, 21 Jan 2014 22:20:24 +0000 (23:20 +0100)]
Removed X11 lib linking.
Daniel Carl [Tue, 21 Jan 2014 22:04:55 +0000 (23:04 +0100)]
Removed libm dependency.
Daniel Carl [Mon, 20 Jan 2014 23:05:48 +0000 (00:05 +0100)]
Moved header changing to another event.
The previous soup sessions "request-started" event worked to change the
headers sent, but the changes where not reflected in the view of the
webinspector that is misleading.
Now the headers are changes on the webkview "resource-request-starting"
event so that the changes headers are visible for the webinspector.
Daniel Carl [Mon, 20 Jan 2014 21:13:22 +0000 (22:13 +0100)]
Show how to compile against GTK3.
Daniel Carl [Mon, 20 Jan 2014 20:29:11 +0000 (21:29 +0100)]
Added new hint mode ;Y to yank text description.
Daniel Carl [Sun, 19 Jan 2014 22:07:12 +0000 (23:07 +0100)]
Better check if a none dimension element is hintable (#62).
Daniel Carl [Sun, 19 Jan 2014 21:07:34 +0000 (22:07 +0100)]
Added notice about the none spawed --cmd option.
Daniel Carl [Sun, 19 Jan 2014 20:55:31 +0000 (21:55 +0100)]
Allow to run ex command given as option string (#58).
Daniel Carl [Sun, 19 Jan 2014 16:37:17 +0000 (17:37 +0100)]
Use message logging function instead of fprintf.
Daniel Carl [Sun, 19 Jan 2014 01:02:36 +0000 (02:02 +0100)]
Fixed nextpattern to js value conversion (#62).
The prev- and nextpatterns can't be given to JavaScript as strings that are
split on the ',' to be interpreted as regular expression. So the patterns have
to be given as array of RegExp objects instead.
Daniel Carl [Sat, 18 Jan 2014 23:20:46 +0000 (00:20 +0100)]
Quickfix for some missing hints on some pages (#62).
This patch removed the dimension check for the hinted element. There are
cases, where the hinted element ha no height but contains dimensioned child
nodes. At the moment it's hard to work out the right logic when a none
dimensioned hint element should be hinted or not.
Daniel Carl [Thu, 16 Jan 2014 23:33:28 +0000 (00:33 +0100)]
Change notation for keybinds in man page.
The 'gF' is easier to read compared to g-F, so we can skip the dash for simple
keys.
Daniel Carl [Thu, 16 Jan 2014 23:28:38 +0000 (00:28 +0100)]
Allow to compile with libsoup<2.42.2 (#49).
Daniel Carl [Thu, 16 Jan 2014 21:24:21 +0000 (22:24 +0100)]
Evaluate 'no_proxy' environment variable (#49).
If the no_proxy environment is found and vimb is compiled with libsoup>=2.42.2
this list of domains or ips is bypassed from proxy.
Daniel Carl [Thu, 16 Jan 2014 21:22:51 +0000 (22:22 +0100)]
Merge branch 'feature/marks'
Daniel Carl [Wed, 15 Jan 2014 23:10:52 +0000 (00:10 +0100)]
Released version 2.1.
Daniel Carl [Mon, 13 Jan 2014 22:13:34 +0000 (23:13 +0100)]
Allow to toggle between two locations with '' (#57).
Daniel Carl [Mon, 13 Jan 2014 21:05:17 +0000 (22:05 +0100)]
Added m-{a-z} and '-{a-z} commands (#57).
These commands allow to set or jump to marked place of the current opened
page.
Daniel Carl [Mon, 13 Jan 2014 18:48:52 +0000 (19:48 +0100)]
Changed min required webkit version to 1.5.0.
This is due the dom api we use.
Daniel Carl [Sun, 12 Jan 2014 23:22:38 +0000 (00:22 +0100)]
Fixed regression in prev- nextpattern validation.
Daniel Carl [Sun, 12 Jan 2014 23:05:38 +0000 (00:05 +0100)]
Fixed segfault on converting none string ref to char.
Daniel Carl [Sun, 12 Jan 2014 19:25:15 +0000 (20:25 +0100)]
Changes responsibility for hinting (#61).
The JavaScript handles now the clearing of the hints, so that we do not run
into trouble if the hinting object is overwritten by the next page call before
we are able to run the clear() method on it.
The JavaScript handles also the number filter processing now.
Daniel Carl [Sun, 12 Jan 2014 00:14:39 +0000 (01:14 +0100)]
Moved JavaScript related function to own file.
Daniel Carl [Sat, 11 Jan 2014 22:16:25 +0000 (23:16 +0100)]
Run hint script as anonymous object.
This avoids clashes between scripts on pages that defined a variable VbHint.
Daniel Carl [Sat, 11 Jan 2014 22:22:29 +0000 (23:22 +0100)]
Change year in license block.
Daniel Carl [Fri, 10 Jan 2014 09:46:08 +0000 (10:46 +0100)]
Check in hints.js if the object already exists (#61).
Revert "Fixed none removed hints on pages with AJAX (#61)."
This reverts commit
8570ead256e0e0d825e3c78c5db52d2b00c212e6.
Revert "Fixed none available hinting if vimb is started without JavaScript (#61)."
This reverts commit
14be33ebcbd1f0aa5ccd425655dc1d4d87899358.
Daniel Carl [Fri, 10 Jan 2014 08:30:25 +0000 (09:30 +0100)]
Fixed none available hinting if vimb is started without JavaScript (#61).
Daniel Carl [Fri, 10 Jan 2014 00:13:25 +0000 (01:13 +0100)]
Show checkbox and radiobox state in hint label.
Daniel Carl [Thu, 9 Jan 2014 23:37:11 +0000 (00:37 +0100)]
Moved frame assignement into the block where it's used.
Daniel Carl [Thu, 9 Jan 2014 23:03:16 +0000 (00:03 +0100)]
Fixed none removed hints on pages with AJAX (#61).
The load of page parts with AJAX triggered the injection of the VbHint object
into the page. This overlayed the current used VbHint object so that the
clear() call (started out of hints.c) was run on the new and empty VbHint
object, that does not know anything of already active hints.
This patch moves the initializing of hints to "window-object-cleared" signal.
This is only emmited, if a new window object is created, so thatwe do not
overlay an already defined object.
According to the surf browser also the user script loading was moved to the
"window-object-clear" signal handler, else this would be called multiple times
on each page load or if only parts of the page are updated via AJAX.
Daniel Carl [Thu, 9 Jan 2014 22:44:16 +0000 (23:44 +0100)]
Use typeof var == 'undefined' instead var === undefined.
This is a more robust solution, because we aren't affected by definition of
undefined like `var undefined = 7;`.
Daniel Carl [Thu, 9 Jan 2014 22:43:07 +0000 (23:43 +0100)]
Enable pagecache by default.
Daniel Carl [Wed, 8 Jan 2014 00:00:35 +0000 (01:00 +0100)]
Fixed wrong function return type in settings.
Daniel Carl [Tue, 7 Jan 2014 23:45:28 +0000 (00:45 +0100)]
Reset inputbox style if command mode is started or box cleared.
If there was shown a error message in inputbox and the user starts to enter a
new command or presses <Esc>, the inputbox keeps red colored until the timeout
reset the style back to normal.
This patch uses the vb_echo* functions to put the text into the input box,
that will set the style explicit to 'normal'.
Daniel Carl [Tue, 7 Jan 2014 23:27:59 +0000 (00:27 +0100)]
Added validation for prev- nextpattern settings (#54);
By the way the return type of the setting function was changed from boolean to
enum, to allow special error messages shown to the users. In case the boolean
where used, the calling function generated the error message for the user, a
possible more useful error message from the setting function was overruled by
the generic one.
Daniel Carl [Tue, 7 Jan 2014 21:58:54 +0000 (22:58 +0100)]
Allow to set webkit's spacial navigation feature.
Daniel Carl [Mon, 6 Jan 2014 23:01:24 +0000 (00:01 +0100)]
Use easier to read debug formal for typed keys.
Daniel Carl [Mon, 6 Jan 2014 17:16:49 +0000 (18:16 +0100)]
Revert "Set z-index on hint container instead of every item."
This reverts commit
9ad874b2dfa20b13bb7a0fd2871ce34602983ad0.
The z-index on the single items seems to be essential to display the hint
labels on some pages.
Daniel Carl [Sun, 5 Jan 2014 19:02:14 +0000 (20:02 +0100)]
Fixed typo in word prompt.
Daniel Carl [Sun, 5 Jan 2014 18:56:22 +0000 (19:56 +0100)]
Merge branch 'hinting-g-mode'
Conflicts:
src/hints.js
Daniel Carl [Sun, 5 Jan 2014 10:44:18 +0000 (11:44 +0100)]
Fixed orphaned line in manual page.
Daniel Carl [Sun, 5 Jan 2014 10:28:22 +0000 (11:28 +0100)]
Set z-index on hint container instead of every item.
Daniel Carl [Sat, 4 Jan 2014 18:55:15 +0000 (19:55 +0100)]
Merge remote-tracking branch 'stabledog/master'
Daniel Carl [Sat, 4 Jan 2014 16:40:15 +0000 (17:40 +0100)]
Fixed hints not opened in new window on duckduckgo (#59).
There are some pages that use mouse event observers that open link href
programmatic and ignore the target attribute that vimb uses to open link into
new window. So this patch fires the click related mouse events with the
additional set CTRL key that is considered by those scripts and also other
browsers to open the resource into new window.