vimb.git
10 years agoFixed wrong value in :set+= for integer vars.
Daniel Carl [Sun, 17 Aug 2014 13:30:50 +0000 (15:30 +0200)]
Fixed wrong value in :set+= for integer vars.

10 years agoAdded input mode CTRL-V to man page.
Daniel Carl [Fri, 15 Aug 2014 21:32:30 +0000 (23:32 +0200)]
Added input mode CTRL-V to man page.

10 years agoAdded CTRL-0 to run normal mode command during input mode.
Daniel Carl [Fri, 15 Aug 2014 21:24:12 +0000 (23:24 +0200)]
Added CTRL-0 to run normal mode command during input mode.

10 years agoShorten the status messages to prevent window resizing (#99).
Daniel Carl [Sun, 10 Aug 2014 18:36:08 +0000 (20:36 +0200)]
Shorten the status messages to prevent window resizing (#99).

For GTK3 the gtk labels text isn't ellipsized or cut off by default. If an
page with a really long url is opened or a link with a long url is hovered the
window was resized to fit the long shown url in statusbar.

10 years agoUse String(val) instead of val.toString().
Daniel Carl [Sat, 9 Aug 2014 16:07:09 +0000 (18:07 +0200)]
Use String(val) instead of val.toString().

This seems to be a little faster in current JavaScript implementation of
webkit.

10 years agoAdded CTRL-A and CTRL-X commands.
Daniel Carl [Sat, 9 Aug 2014 15:58:52 +0000 (17:58 +0200)]
Added CTRL-A and CTRL-X commands.

These commands allow to increment or decrement the last number in the current
url.

10 years agoAdded soup caching support.
Daniel Carl [Mon, 4 Aug 2014 22:19:00 +0000 (00:19 +0200)]
Added soup caching support.

Added new settings maximum-cache-size to set the size all the cache may use.
Default is 2000kB.

10 years agoFixed not working page caching of webkit.
Daniel Carl [Sun, 3 Aug 2014 16:00:48 +0000 (18:00 +0200)]
Fixed not working page caching of webkit.

If the 'pagecache' option is set to on, this does not really speed up the page
load. It seems to be necessary to explicitly set the cache model to use, even
if the documentation say that the default cache model is that what is used
now.

10 years agoUpdated the manpage for the private-browsing option.
Daniel Carl [Sun, 3 Aug 2014 15:31:05 +0000 (17:31 +0200)]
Updated the manpage for the private-browsing option.

10 years agoFixed some typos.
Daniel Carl [Sat, 2 Aug 2014 23:27:27 +0000 (01:27 +0200)]
Fixed some typos.

10 years agoFixed memory leak in prev next pattern validation.
Daniel Carl [Sat, 2 Aug 2014 20:23:59 +0000 (22:23 +0200)]
Fixed memory leak in prev next pattern validation.

10 years agoDon't split tags of bookmarks if not needed.
Daniel Carl [Sat, 2 Aug 2014 19:37:22 +0000 (21:37 +0200)]
Don't split tags of bookmarks if not needed.

Removed the string splitting of the bookmark tags when they are read from
file. Implemented the tag matching without the use of extra allocated memory.

10 years agoMerge pull request #98 from envolyse/master
Daniel Carl [Sat, 2 Aug 2014 12:26:48 +0000 (14:26 +0200)]
Merge pull request #98 from envolyse/master

Fixed typos in manual

10 years agoFixed typos in manual
Bykov Vladislav [Sat, 2 Aug 2014 12:03:21 +0000 (16:03 +0400)]
Fixed typos in manual

10 years agoRemove if condition for none debug mode.
Daniel Carl [Fri, 1 Aug 2014 15:04:27 +0000 (17:04 +0200)]
Remove if condition for none debug mode.

10 years agoDon't register inspector event in kiosk mode.
Daniel Carl [Fri, 1 Aug 2014 15:00:36 +0000 (17:00 +0200)]
Don't register inspector event in kiosk mode.

There is no way, or should be no way to open the webinspector, so there's no
need to set the event listeners to the webinspector events.

10 years agoAdd dummy modes for kiosk mode.
Daniel Carl [Fri, 1 Aug 2014 14:58:03 +0000 (16:58 +0200)]
Add dummy modes for kiosk mode.

This allows us to keep the mode_enter() calls in the code untouched, because
all modes are still available, event if they don't do anything.

10 years agoDon't switch to normal mode in load committed (#95).
Daniel Carl [Fri, 1 Aug 2014 12:10:03 +0000 (14:10 +0200)]
Don't switch to normal mode in load committed (#95).

On pages like translate.google.com where JavaScript changes the location hash
of the page, webkit performs nearly a new load of the page. This caused vimb
to switch from input to normal mode like intended if a form is submitted out
of input mode.

If only the location hash of a loaded page is changed, the used load-status
are WEBKIT_LOAD_COMMITTED and WEBKIT_LOAD_FIRST_VISUALLY_NON_EMPTY_LAYOUT. So
we can't switch to normal mode in load committed.

10 years agoDon't switch from pass through mode to input mode (#95).
Daniel Carl [Thu, 31 Jul 2014 23:50:00 +0000 (01:50 +0200)]
Don't switch from pass through mode to input mode (#95).

Don't switch from pass through by click into input field nor by a reload of the
page with a focused input field.

10 years agoFixed typo in man page.
Daniel Carl [Thu, 31 Jul 2014 16:26:50 +0000 (18:26 +0200)]
Fixed typo in man page.

10 years agoChanged type for list settings in man page.
Daniel Carl [Thu, 31 Jul 2014 16:23:03 +0000 (18:23 +0200)]
Changed type for list settings in man page.

Change the type from string to list so that the user knows how the different
flavours of set command will work.

10 years agoAdded hint about quoting of header values to man page.
Daniel Carl [Thu, 31 Jul 2014 16:19:46 +0000 (18:19 +0200)]
Added hint about quoting of header values to man page.

10 years agoFix possible uninitialized used of variable.
Daniel Carl [Thu, 31 Jul 2014 16:05:40 +0000 (18:05 +0200)]
Fix possible uninitialized used of variable.

10 years agoRemoved unused param for util_str_replace.
Daniel Carl [Thu, 31 Jul 2014 16:01:14 +0000 (18:01 +0200)]
Removed unused param for util_str_replace.

10 years agoAllow to avoid duplicated in list options.
Daniel Carl [Thu, 31 Jul 2014 15:52:49 +0000 (17:52 +0200)]
Allow to avoid duplicated in list options.

Don't append or prepend items to list option it they already exists in the
current set value.

10 years agoImplemented extended :set syntax.
Daniel Carl [Wed, 30 Jul 2014 23:16:38 +0000 (01:16 +0200)]
Implemented extended :set syntax.

Added the new :set flavours :set option+=..., :set option-=..., set
option^=... like in vim.

10 years agoReplaced deprecated g_memmove function calls.
Daniel Carl [Wed, 30 Jul 2014 21:34:09 +0000 (23:34 +0200)]
Replaced deprecated g_memmove function calls.

10 years agoGive context to js functions instead of web frame.
Daniel Carl [Wed, 30 Jul 2014 12:48:24 +0000 (14:48 +0200)]
Give context to js functions instead of web frame.

10 years agoAdded missed other webkit settings.
Daniel Carl [Wed, 23 Jul 2014 21:52:18 +0000 (23:52 +0200)]
Added missed other webkit settings.

This gives the user more control over webkit.

10 years agoDon't start download for none success http status codes.
Daniel Carl [Mon, 21 Jul 2014 22:44:55 +0000 (00:44 +0200)]
Don't start download for none success http status codes.

10 years agoReleased version 2.6.
Daniel Carl [Sun, 20 Jul 2014 14:14:53 +0000 (16:14 +0200)]
Released version 2.6.

10 years agoDon't allow to quit vimb if there are running downloads.
Daniel Carl [Mon, 14 Jul 2014 20:22:27 +0000 (22:22 +0200)]
Don't allow to quit vimb if there are running downloads.

Added :quit! to force quit even when there are still running downloads.

10 years agoFire ambiguous numeric hints after hint-timeout.
Daniel Carl [Sun, 13 Jul 2014 19:57:44 +0000 (21:57 +0200)]
Fire ambiguous numeric hints after hint-timeout.

10 years agoQuote shell commands in default settings.
Daniel Carl [Sun, 6 Jul 2014 12:59:46 +0000 (14:59 +0200)]
Quote shell commands in default settings.

Without this, the system can be compromized by URIs containing quote or
semicolon.

10 years agoFixed inverted prevnext logic.
Daniel Carl [Sat, 5 Jul 2014 19:18:23 +0000 (21:18 +0200)]
Fixed inverted prevnext logic.

10 years agoFixed wrong placed dependency include in Makefile.
Daniel Carl [Fri, 4 Jul 2014 22:42:04 +0000 (00:42 +0200)]
Fixed wrong placed dependency include in Makefile.

Allow to generate dependency files during compilation with CFLAGS="-MMD".

10 years agoFixed wrong return value for toggled settings.
Daniel Carl [Sun, 29 Jun 2014 20:54:07 +0000 (22:54 +0200)]
Fixed wrong return value for toggled settings.

10 years agoRemoved missed function declaration in header file.
Daniel Carl [Sun, 29 Jun 2014 20:17:54 +0000 (22:17 +0200)]
Removed missed function declaration in header file.

10 years agoAdded new hint mode ;x (#65).
Daniel Carl [Sun, 29 Jun 2014 19:43:56 +0000 (21:43 +0200)]
Added new hint mode ;x (#65).

This hint modes calls a user defined vimb command if a hint was fired. The
command can be change and set via ':set x-hint-command' on runtime.

10 years agoUsed g_slice_new instead of g_new.
Daniel Carl [Sun, 29 Jun 2014 18:33:40 +0000 (20:33 +0200)]
Used g_slice_new instead of g_new.

10 years agoInform external download about used proxy.
Daniel Carl [Sun, 29 Jun 2014 13:52:47 +0000 (15:52 +0200)]
Inform external download about used proxy.

10 years agoMerge branch 'local/global-settings' into feature/downloader
Daniel Carl [Sun, 29 Jun 2014 13:42:13 +0000 (15:42 +0200)]
Merge branch 'local/global-settings' into feature/downloader

Conflicts:
src/main.h
src/setting.c

10 years agoSave settings in hash map.
Daniel Carl [Sun, 22 Jun 2014 20:58:05 +0000 (22:58 +0200)]
Save settings in hash map.

10 years agoUse .SY for manual page synopsis.
Daniel Carl [Sun, 22 Jun 2014 19:36:02 +0000 (21:36 +0200)]
Use .SY for manual page synopsis.

10 years agoAdded download-command to manual page (#65).
Daniel Carl [Sun, 22 Jun 2014 16:32:48 +0000 (18:32 +0200)]
Added download-command to manual page (#65).

10 years agoAdd external download command (#65).
Daniel Carl [Sun, 22 Jun 2014 14:50:38 +0000 (16:50 +0200)]
Add external download command (#65).

10 years agoFixed potential memory leak.
Daniel Carl [Sat, 21 Jun 2014 13:13:34 +0000 (15:13 +0200)]
Fixed potential memory leak.

10 years agoReleased version 2.5.
Daniel Carl [Tue, 17 Jun 2014 19:30:07 +0000 (21:30 +0200)]
Released version 2.5.

10 years agoChanged the default user agent to more common format (#89).
Daniel Carl [Thu, 12 Jun 2014 22:37:50 +0000 (00:37 +0200)]
Changed the default user agent to more common format (#89).

This let google render it's search page in the new design. And it seems that
it's now common to put the real user agent name near to the end of the string.

10 years agoAdded link to project page to README.md.
Daniel Carl [Wed, 11 Jun 2014 10:04:13 +0000 (12:04 +0200)]
Added link to project page to README.md.

10 years agoRemoved test macros by functions.
Daniel Carl [Mon, 9 Jun 2014 22:14:38 +0000 (00:14 +0200)]
Removed test macros by functions.

This lead to better readable output in case if a test case fails.

10 years agoUse const char * where possible.
Daniel Carl [Mon, 9 Jun 2014 22:24:38 +0000 (00:24 +0200)]
Use const char * where possible.

10 years agoMarked hsts should_secure_host function as inline.
Daniel Carl [Mon, 9 Jun 2014 17:46:04 +0000 (19:46 +0200)]
Marked hsts should_secure_host function as inline.

10 years agoCheck second key for z{x} commands.
Daniel Carl [Mon, 9 Jun 2014 16:42:09 +0000 (18:42 +0200)]
Check second key for z{x} commands.

We assumed to zoom out if the user does not zoom in. So every z{x} with x not
in "ziI" zoomed out.

10 years agoDon't write to history file for history size of 0.
Daniel Carl [Mon, 9 Jun 2014 13:31:53 +0000 (15:31 +0200)]
Don't write to history file for history size of 0.

10 years agoDon't relink the libvimb before each test.
Daniel Carl [Mon, 9 Jun 2014 13:13:26 +0000 (15:13 +0200)]
Don't relink the libvimb before each test.

10 years agoDon't use g_shell_parse_argv for shortcuts (#88).
Daniel Carl [Mon, 9 Jun 2014 12:52:14 +0000 (14:52 +0200)]
Don't use g_shell_parse_argv for shortcuts (#88).

This function was really handy, but it does not allow to ignore unmatched
quotes which lead to errors that could not be handled very well for the user.

This patch adds a stripped down to the minimum parser for the shortcut
parameters to allow also unmatched single- or double quotes.

10 years agoAllow shortcut params with spaces (#88).
Daniel Carl [Mon, 9 Jun 2014 10:31:16 +0000 (12:31 +0200)]
Allow shortcut params with spaces (#88).

10 years agoAnother approach to setup completion window height (#86).
Daniel Carl [Sun, 8 Jun 2014 22:43:06 +0000 (00:43 +0200)]
Another approach to setup completion window height (#86).

10 years agoRevert "Show the completion list after the hight was set." (#86)
Daniel Carl [Sun, 8 Jun 2014 21:10:09 +0000 (23:10 +0200)]
Revert "Show the completion list after the hight was set." (#86)

10 years agoAdded test for key mapping.
Daniel Carl [Sat, 7 Jun 2014 23:49:12 +0000 (01:49 +0200)]
Added test for key mapping.

10 years agoForce us to use the actual gtk3 api functions.
Daniel Carl [Sat, 7 Jun 2014 16:25:52 +0000 (18:25 +0200)]
Force us to use the actual gtk3 api functions.

10 years agoRemoved -ansi compiler flag and -Wstrict-prototypes.
Daniel Carl [Sat, 7 Jun 2014 15:53:53 +0000 (17:53 +0200)]
Removed -ansi compiler flag and -Wstrict-prototypes.

The ansi does not allow to use type declaration in loop that make the code
easier to read. And the GTK3 build fails with strict prototypes enabled.

10 years agoUse -ansi compile flag.
Daniel Carl [Sat, 7 Jun 2014 14:41:54 +0000 (16:41 +0200)]
Use -ansi compile flag.

Fixed none ansi comment.

10 years agoAdded test for shortcut feature.
Daniel Carl [Sat, 7 Jun 2014 13:16:20 +0000 (15:16 +0200)]
Added test for shortcut feature.

10 years agoAdded test for handler feature.
Daniel Carl [Sat, 7 Jun 2014 12:07:39 +0000 (14:07 +0200)]
Added test for handler feature.

10 years agoUse notify url change callback to get the url.
Daniel Carl [Fri, 6 Jun 2014 20:15:36 +0000 (22:15 +0200)]
Use notify url change callback to get the url.

This is a cleaner solution than tracking the new url on load commit.

10 years agoExport pid, xid and page title into environment.
Daniel Carl [Fri, 6 Jun 2014 20:07:57 +0000 (22:07 +0200)]
Export pid, xid and page title into environment.

10 years agoUpdated :shellcmd examples.
Daniel Carl [Fri, 6 Jun 2014 00:41:33 +0000 (02:41 +0200)]
Updated :shellcmd examples.

10 years agoWrite VIMB_URI environment variable.
Daniel Carl [Fri, 6 Jun 2014 00:32:17 +0000 (02:32 +0200)]
Write VIMB_URI environment variable.

10 years agoRemove obsolete GET_URI() macro.
Daniel Carl [Fri, 6 Jun 2014 00:08:38 +0000 (02:08 +0200)]
Remove obsolete GET_URI() macro.

Removed also the changed-uri signal observer. We get the new URI in the load
status callback right before the event is triggered.

10 years agoAdded first unit tests.
Daniel Carl [Thu, 5 Jun 2014 23:49:47 +0000 (01:49 +0200)]
Added first unit tests.

10 years agoSave current uri in property for easier access.
Daniel Carl [Thu, 5 Jun 2014 23:44:11 +0000 (01:44 +0200)]
Save current uri in property for easier access.

10 years agoFixed trailing / in ~/ expansion.
Daniel Carl [Thu, 5 Jun 2014 21:46:42 +0000 (23:46 +0200)]
Fixed trailing / in ~/ expansion.

If ~/ was expanded the path had a trailing / but according to the shell this
should end up in directory without a slash.

10 years agoAllow to escape all expandable chars.
Daniel Carl [Wed, 4 Jun 2014 22:45:53 +0000 (00:45 +0200)]
Allow to escape all expandable chars.

The expandable chars are always allowed to be escaped by a \ if the expansion
type is active.

10 years agoFixed unused variable.
Daniel Carl [Wed, 4 Jun 2014 22:22:15 +0000 (00:22 +0200)]
Fixed unused variable.

10 years agoRemove unneeded SHELL_CMD.
Daniel Carl [Wed, 4 Jun 2014 22:03:22 +0000 (00:03 +0200)]
Remove unneeded SHELL_CMD.

The g_spawn_command_line_async starts already a shell for us, so there is no
need to start a subshell from there. This fixes also some wired quoting
issues that appeared if there where single quotes in the given command string
to avoid shell expansion. In this case the variables where expanded because of
the quoting issue.

10 years agoAllow to use \\$ to input \$.
Daniel Carl [Wed, 4 Jun 2014 21:46:12 +0000 (23:46 +0200)]
Allow to use \\$ to input \$.

Also fixed uninitialized expansion flags.

10 years agoAllow to escape ~user expansion with \ char.
Daniel Carl [Wed, 4 Jun 2014 21:08:19 +0000 (23:08 +0200)]
Allow to escape ~user expansion with \ char.

10 years agoRemoved obsolete IS_CTRL macro.
Daniel Carl [Wed, 4 Jun 2014 20:02:26 +0000 (22:02 +0200)]
Removed obsolete IS_CTRL macro.

10 years agoUse already existing expansion logic also for ex commands.
Daniel Carl [Sat, 3 May 2014 13:22:25 +0000 (15:22 +0200)]
Use already existing expansion logic also for ex commands.

10 years agoAllow to escape % with \ in expanded commands.
Daniel Carl [Tue, 3 Jun 2014 18:20:24 +0000 (20:20 +0200)]
Allow to escape % with \ in expanded commands.

10 years agoFixed typo in manual page.
Daniel Carl [Tue, 3 Jun 2014 16:02:45 +0000 (18:02 +0200)]
Fixed typo in manual page.

10 years agoUse g_return_*() function to avoid programming issues.
Daniel Carl [Tue, 3 Jun 2014 15:53:24 +0000 (17:53 +0200)]
Use g_return_*() function to avoid programming issues.

10 years agoFixed wrong indented code.
Daniel Carl [Tue, 3 Jun 2014 14:49:45 +0000 (16:49 +0200)]
Fixed wrong indented code.

10 years agoFixed none working customer headers.
Daniel Carl [Tue, 3 Jun 2014 14:47:06 +0000 (16:47 +0200)]
Fixed none working customer headers.

10 years agoMoved char related macro to ascii.h.
Daniel Carl [Tue, 3 Jun 2014 13:45:36 +0000 (15:45 +0200)]
Moved char related macro to ascii.h.

10 years agoFixed segfault on yank without buffer.
Daniel Carl [Tue, 3 Jun 2014 12:13:18 +0000 (14:13 +0200)]
Fixed segfault on yank without buffer.

10 years agoDon't write register or history during setup.
Daniel Carl [Tue, 3 Jun 2014 11:02:32 +0000 (13:02 +0200)]
Don't write register or history during setup.

10 years agoFixed not working * and # commands.
Daniel Carl [Tue, 3 Jun 2014 10:29:39 +0000 (12:29 +0200)]
Fixed not working * and # commands.

If a search phrase was marked and * or # was used, the right matches where
highlighted but 'n' or 'N' did not jump to the next match.

10 years agoSwitch back to normal mode if inputbox is cleared (#55).
Daniel Carl [Mon, 2 Jun 2014 14:54:48 +0000 (16:54 +0200)]
Switch back to normal mode if inputbox is cleared (#55).

10 years agoRemoved unused properties from global scope.
Daniel Carl [Mon, 2 Jun 2014 14:27:57 +0000 (16:27 +0200)]
Removed unused properties from global scope.

10 years agoRemoved none used hash table.
Daniel Carl [Sat, 31 May 2014 22:09:10 +0000 (00:09 +0200)]
Removed none used hash table.

10 years agoUsed new register "/ to continue search.
Daniel Carl [Fri, 30 May 2014 22:01:42 +0000 (00:01 +0200)]
Used new register "/ to continue search.

10 years agoAdded support of read only registers ":, "/ and "%.
Daniel Carl [Fri, 30 May 2014 21:52:32 +0000 (23:52 +0200)]
Added support of read only registers ":, "/ and "%.

10 years agoAdded support for different yank registers.
Daniel Carl [Fri, 30 May 2014 20:26:02 +0000 (22:26 +0200)]
Added support for different yank registers.

Allow to yank, and paste from different registers.

10 years agoAllow to compile also with libsoup below 2.4.
Daniel Carl [Thu, 29 May 2014 18:41:11 +0000 (20:41 +0200)]
Allow to compile also with libsoup below 2.4.

10 years agoAllow to toggle hsts on and off.
Daniel Carl [Wed, 28 May 2014 14:42:15 +0000 (16:42 +0200)]
Allow to toggle hsts on and off.

10 years agoFixed another memory in custom uri handler.
Daniel Carl [Wed, 28 May 2014 10:56:12 +0000 (12:56 +0200)]
Fixed another memory in custom uri handler.

10 years agoFixed memory leak in custom uri handler.
Daniel Carl [Wed, 28 May 2014 10:45:35 +0000 (12:45 +0200)]
Fixed memory leak in custom uri handler.

Added also some warning message if the handler could not be called.