vimb.git
6 years agoClarify proxy configuration
Allan Wind [Thu, 27 Sep 2018 07:57:23 +0000 (03:57 -0400)]
Clarify proxy configuration

6 years agoHint about none common PREFIX on build stage.
Daniel Carl [Wed, 26 Sep 2018 21:59:15 +0000 (23:59 +0200)]
Hint about none common PREFIX on build stage.

6 years agoCheck webextension at startup by default.
Daniel Carl [Mon, 27 Aug 2018 21:05:53 +0000 (23:05 +0200)]
Check webextension at startup by default.

Also fail with error if webextension could not be read.

6 years agoAdapt the min webkit version in config.mk #513.
Daniel Carl [Sun, 26 Aug 2018 19:16:19 +0000 (21:16 +0200)]
Adapt the min webkit version in config.mk #513.

This patch fixes missed version from #415.

6 years agoAdded missed description for yank
Daniel Carl [Wed, 8 Aug 2018 19:04:23 +0000 (21:04 +0200)]
Added missed description for yank

6 years agoUpdate hints also on scrolling within frames.
Daniel Carl [Mon, 6 Aug 2018 21:59:57 +0000 (23:59 +0200)]
Update hints also on scrolling within frames.

6 years agoFix wrong hint label in case of scrolling.
Daniel Carl [Mon, 6 Aug 2018 21:38:29 +0000 (23:38 +0200)]
Fix wrong hint label in case of scrolling.

Also moved style for hintcontainer from user style to hints.js because
there is no styling set at the moment the user should change.

6 years agoAdded webkit setting for file uri handling.
Daniel Carl [Mon, 6 Aug 2018 20:46:36 +0000 (22:46 +0200)]
Added webkit setting for file uri handling.

6 years agoRemoved possible wrong test case #507.
Daniel Carl [Sat, 4 Aug 2018 21:00:58 +0000 (23:00 +0200)]
Removed possible wrong test case #507.

The links on exherbo are set to margin: -10em and padding: 10em so they
have indeed a big bounding box which is returned by
e.getBoundlingClientRect().

6 years agoAdded manual test case for #507.
Daniel Carl [Fri, 3 Aug 2018 22:43:57 +0000 (00:43 +0200)]
Added manual test case for #507.

6 years agoMove manual hint tests into own directory.
Daniel Carl [Fri, 3 Aug 2018 22:34:19 +0000 (00:34 +0200)]
Move manual hint tests into own directory.

6 years agoFix wrong hint label position on xkcd.com.
Daniel Carl [Fri, 3 Aug 2018 21:58:20 +0000 (23:58 +0200)]
Fix wrong hint label position on xkcd.com.

On some pages which set the body to fixed position the hint labels where
placed far away from the hinted element. This patch fixes this issue by
setting the position of the label to fixed instead of absolute.
This fixes #506.

6 years agoMerge branch 'cdom' of https://github.com/hsoft/vimb
Daniel Carl [Tue, 31 Jul 2018 22:05:11 +0000 (00:05 +0200)]
Merge branch 'cdom' of https://github.com/hsoft/vimb

6 years agoConvert focus_element_by_id.js to C
Virgil Dupras [Fri, 27 Jul 2018 15:41:45 +0000 (11:41 -0400)]
Convert focus_element_by_id.js to C

6 years agoAdded tests for the uri handlers #357.
Daniel Carl [Mon, 30 Jul 2018 21:04:20 +0000 (23:04 +0200)]
Added tests for the uri handlers #357.

6 years agoGet page size from body as well as the documentElement #501.
Daniel Carl [Sat, 14 Jul 2018 22:12:44 +0000 (00:12 +0200)]
Get page size from body as well as the documentElement #501.

6 years agoImprove scripts change detection in Makefile
Virgil Dupras [Wed, 18 Jul 2018 12:14:41 +0000 (08:14 -0400)]
Improve scripts change detection in Makefile

When changing a script in `src/scripts`, `make` would need to be invoked
twice for a proper build: once for `scripts.h` and once for the `.o`
files depending on it.

This commit fixes this by integrating `src/scripts/Makefile` into
`src/Makefile` to allow for proper dependency update detection.

6 years agoTest also with gcc.
Daniel Carl [Thu, 28 Jun 2018 09:53:29 +0000 (11:53 +0200)]
Test also with gcc.

6 years agoPut the linker flags after the source files.
Daniel Carl [Thu, 28 Jun 2018 09:52:43 +0000 (11:52 +0200)]
Put the linker flags after the source files.

6 years agoAdded gtk+-3.0 to the dependencies.
Daniel Carl [Thu, 28 Jun 2018 06:20:43 +0000 (08:20 +0200)]
Added gtk+-3.0 to the dependencies.

6 years agoShow compile options only once in travis-ci.
Daniel Carl [Wed, 27 Jun 2018 22:43:25 +0000 (00:43 +0200)]
Show compile options only once in travis-ci.

6 years agoUse explicit rules to make test targets.
Daniel Carl [Wed, 27 Jun 2018 22:37:42 +0000 (00:37 +0200)]
Use explicit rules to make test targets.

6 years agoRemove duplicate give compiler option -fPIC.
Daniel Carl [Wed, 27 Jun 2018 22:36:42 +0000 (00:36 +0200)]
Remove duplicate give compiler option -fPIC.

6 years agoAdd build status icon.
Daniel Carl [Wed, 27 Jun 2018 11:16:12 +0000 (13:16 +0200)]
Add build status icon.

6 years agoUse travis-ci for testing.
Daniel Carl [Wed, 27 Jun 2018 09:53:00 +0000 (11:53 +0200)]
Use travis-ci for testing.

6 years agoMerge branch 'master' of https://github.com/cdlscpmv/vimb.
Daniel Carl [Wed, 20 Jun 2018 18:49:50 +0000 (20:49 +0200)]
Merge branch 'master' of https://github.com/cdlscpmv/vimb.

6 years agoCorrect the man page
Konst Mayer [Tue, 19 Jun 2018 05:36:24 +0000 (12:36 +0700)]
Correct the man page

Related to the introduction of the new `vimbhint` attribute.

6 years agoMakefile: add dependency on scripts.h to input.o
Patrick Steinhardt [Mon, 18 Jun 2018 06:01:12 +0000 (08:01 +0200)]
Makefile: add dependency on scripts.h to input.o

While "input.c" includes "scripts/scripts.h", which is generated
dynamically by the build system, the Makefile does not state a
dependency of "input.c" on "scripts/scripts.h". Add the dependency to
fix broken builds.

6 years agoFixed -Werror=format-security issue.
Daniel Carl [Sun, 17 Jun 2018 22:15:26 +0000 (00:15 +0200)]
Fixed -Werror=format-security issue.

This fixes #495.

6 years agoReleased version 3.2.0.
Daniel Carl [Sat, 16 Jun 2018 20:47:57 +0000 (22:47 +0200)]
Released version  3.2.0.

6 years agoFix missing string.h include
Yutao Yuan [Sat, 16 Jun 2018 10:28:16 +0000 (18:28 +0800)]
Fix missing string.h include

6 years agoAdd new setting show-titlebar to CHANGELOG.
Daniel Carl [Thu, 14 Jun 2018 21:42:52 +0000 (23:42 +0200)]
Add new setting show-titlebar to CHANGELOG.

6 years agoMake function static.
Daniel Carl [Thu, 14 Jun 2018 21:16:16 +0000 (23:16 +0200)]
Make function static.

This is only use within main.c so we can make it static and leaf the vb_
prefix.

6 years agoMerge branch 'fix-url-detection' of https://github.com/GKFX/vimb.
Daniel Carl [Thu, 14 Jun 2018 21:07:15 +0000 (23:07 +0200)]
Merge branch 'fix-url-detection' of https://github.com/GKFX/vimb.

6 years agoAdded tests for shortcuts #357.
Daniel Carl [Wed, 13 Jun 2018 22:55:45 +0000 (00:55 +0200)]
Added tests for shortcuts #357.

6 years agoMake URL detection more robust
George Bateman [Wed, 13 Jun 2018 22:38:10 +0000 (23:38 +0100)]
Make URL detection more robust

6 years agoDo not damage utf8 string on escape.
Daniel Carl [Wed, 13 Jun 2018 22:29:24 +0000 (00:29 +0200)]
Do not damage utf8 string on escape.

This fixes #492.

6 years agoAdded first test for the util functions #357.
Daniel Carl [Sat, 14 Apr 2018 19:03:08 +0000 (21:03 +0200)]
Added first test for the util functions #357.

6 years agoFixed indentation.
Daniel Carl [Wed, 13 Jun 2018 20:29:44 +0000 (22:29 +0200)]
Fixed indentation.

6 years agoDocument :set show-titlebar
George Bateman [Wed, 13 Jun 2018 09:40:49 +0000 (10:40 +0100)]
Document :set show-titlebar

6 years agoDetect localhost and IPv6 as valid URLs. Fixes #478.
George Bateman [Tue, 12 Jun 2018 14:26:16 +0000 (15:26 +0100)]
Detect localhost and IPv6 as valid URLs. Fixes #478.

6 years agoAllow user to hide and show the titlebar on demand. Fixes #439.
George Bateman [Tue, 12 Jun 2018 11:22:48 +0000 (12:22 +0100)]
Allow user to hide and show the titlebar on demand. Fixes #439.

6 years agoFix wrong order of branch names in changelog.
Daniel Carl [Mon, 11 Jun 2018 21:51:28 +0000 (23:51 +0200)]
Fix wrong order of branch names in changelog.

6 years agoUpdate changelog.
Daniel Carl [Mon, 11 Jun 2018 21:49:33 +0000 (23:49 +0200)]
Update changelog.

6 years agoAllow to react on permission-requests.
Daniel Carl [Mon, 11 Jun 2018 21:22:44 +0000 (23:22 +0200)]
Allow to react on permission-requests.

6 years agoClarify :set usage in man page
George Bateman [Mon, 11 Jun 2018 13:53:11 +0000 (14:53 +0100)]
Clarify :set usage in man page

6 years agoRemove not really needed variable.
Daniel Carl [Sat, 2 Jun 2018 20:41:41 +0000 (22:41 +0200)]
Remove not really needed variable.

6 years agoFixed possible memory leak in case of errors.
Daniel Carl [Sat, 2 Jun 2018 20:35:16 +0000 (22:35 +0200)]
Fixed possible memory leak in case of errors.

6 years agoReuse success flag.
Daniel Carl [Sat, 2 Jun 2018 20:11:09 +0000 (22:11 +0200)]
Reuse success flag.

6 years agoFixed some code style issues.
Daniel Carl [Sat, 2 Jun 2018 19:47:46 +0000 (21:47 +0200)]
Fixed some code style issues.

6 years agoMerge branch 'master' of https://github.com/svensp/vimb
Daniel Carl [Sat, 2 Jun 2018 19:37:33 +0000 (21:37 +0200)]
Merge branch 'master' of https://github.com/svensp/vimb

6 years agomoved id to its own variable to adher to IPO model
Sven Speckmaier [Fri, 1 Jun 2018 19:45:54 +0000 (21:45 +0200)]
moved id to its own variable to adher to IPO model

6 years agomulti line javascript used from scripts/scripts.h
Sven Speckmaier [Wed, 30 May 2018 05:19:38 +0000 (07:19 +0200)]
multi line javascript used from scripts/scripts.h

6 years agoUse vimbhint attribute also for styling.
Daniel Carl [Tue, 29 May 2018 21:36:51 +0000 (23:36 +0200)]
Use vimbhint attribute also for styling.

6 years agouse vimb_editor_map when no id is present
Sven Speckmaier [Tue, 29 May 2018 06:58:14 +0000 (08:58 +0200)]
use vimb_editor_map when no id is present

6 years agoassert and free data->element_id in editor return
Sven Speckmaier [Mon, 28 May 2018 14:31:24 +0000 (16:31 +0200)]
assert and free data->element_id in editor return

6 years agofix indentation to adher to the contribution guidlines
Sven Speckmaier [Mon, 28 May 2018 14:05:54 +0000 (16:05 +0200)]
fix indentation to adher to the contribution guidlines

6 years agoRemember element id per open process watch
Sven Speckmaier [Mon, 28 May 2018 13:42:20 +0000 (15:42 +0200)]
Remember element id per open process watch

6 years agoFix wrong search hit count shown on prev/next.
Daniel Carl [Sun, 27 May 2018 22:18:34 +0000 (00:18 +0200)]
Fix wrong search hit count shown on prev/next.

If a search was done the shown number of search hits was right. But on
case of stepping through the list, the match count was updated by 1.
Now use the right signal "counted-matches" to get the real number of
search hits independent from stepping through the list.

6 years agoMoved issue template.
Daniel Carl [Thu, 17 May 2018 09:37:55 +0000 (11:37 +0200)]
Moved issue template.

6 years agoMention similar projects.
Daniel Carl [Wed, 16 May 2018 20:51:30 +0000 (22:51 +0200)]
Mention similar projects.

6 years agoUse g_strescape() to escape editor contents.
Daniel Carl [Tue, 15 May 2018 21:24:02 +0000 (23:24 +0200)]
Use g_strescape() to escape editor contents.

6 years agoMore info when spawning of editor-command fails.
Daniel Carl [Tue, 15 May 2018 20:30:23 +0000 (22:30 +0200)]
More info when spawning of editor-command fails.

6 years agoSet tree model direct to tree view.
Daniel Carl [Tue, 8 May 2018 21:41:01 +0000 (23:41 +0200)]
Set tree model direct to tree view.

6 years agoStart vimb with maximized window #483.
Daniel Carl [Tue, 8 May 2018 20:07:21 +0000 (22:07 +0200)]
Start vimb with maximized window #483.

Set hint to window managers to maximize the browser window.

6 years agoMoved completion_fill to settings.
Daniel Carl [Mon, 7 May 2018 21:38:42 +0000 (23:38 +0200)]
Moved completion_fill to settings.

This function intensional should be used by other components. But there
is only one component using this, so it's better to move this away.

6 years agoRemove none used gui styling for completion.
Daniel Carl [Mon, 7 May 2018 21:13:14 +0000 (23:13 +0200)]
Remove none used gui styling for completion.

6 years agoRemove other missed combat code.
Daniel Carl [Mon, 7 May 2018 21:09:10 +0000 (23:09 +0200)]
Remove other missed combat code.

6 years agoRemove unused code in completion processing.
Daniel Carl [Mon, 7 May 2018 20:10:50 +0000 (22:10 +0200)]
Remove unused code in completion processing.

There is no code calling complete(..., 0) which was used in early days
to stop the completion. So remove the code to handle none given
direction.

6 years agoUse sqlite as cookie storage #470.
Daniel Carl [Wed, 2 May 2018 20:39:24 +0000 (22:39 +0200)]
Use sqlite as cookie storage #470.

There are some reports about randomly cleared cookie file which seems to
be fixed by using sqlite instead of text base cookie storage.

6 years agoClear search on stopping incsearch.
Daniel Carl [Sat, 28 Apr 2018 22:03:59 +0000 (00:03 +0200)]
Clear search on stopping incsearch.

The search highlight was not removed if incsearch was enabled and the
search not commited by <CR> but left by <Esc>.

6 years agoShop the numbers of search matches in status bar.
Daniel Carl [Sat, 28 Apr 2018 21:59:49 +0000 (23:59 +0200)]
Shop the numbers of search matches in status bar.

6 years agoAllow basic motion commands for hinting too.
Daniel Carl [Fri, 27 Apr 2018 22:35:34 +0000 (00:35 +0200)]
Allow basic motion commands for hinting too.

6 years agoRemoved vimb for webkit1 combat code.
Daniel Carl [Fri, 27 Apr 2018 21:17:39 +0000 (23:17 +0200)]
Removed vimb for webkit1 combat code.

6 years agoFixed none cleaned webextension object files.
Daniel Carl [Mon, 16 Apr 2018 21:27:42 +0000 (23:27 +0200)]
Fixed none cleaned webextension object files.

6 years agoInclude dependencies at the end.
Daniel Carl [Mon, 16 Apr 2018 21:27:18 +0000 (23:27 +0200)]
Include dependencies at the end.

6 years agoDon't memory slices for single structs.
Daniel Carl [Mon, 16 Apr 2018 21:00:59 +0000 (23:00 +0200)]
Don't memory slices for single structs.

6 years agoDon not make handler struct public.
Daniel Carl [Mon, 16 Apr 2018 20:13:23 +0000 (22:13 +0200)]
Don not make handler struct public.

6 years agoRemoved unused struct.
Daniel Carl [Mon, 16 Apr 2018 19:50:31 +0000 (21:50 +0200)]
Removed unused struct.

6 years agoDo not propagate the shortcut struct.
Daniel Carl [Sat, 14 Apr 2018 22:11:00 +0000 (00:11 +0200)]
Do not propagate the shortcut struct.

6 years agoDo not give client to util functions.
Daniel Carl [Sat, 14 Apr 2018 20:42:56 +0000 (22:42 +0200)]
Do not give client to util functions.

Give only those information the util functions need to work.

6 years agoUse separate makefile in for scripts.
Daniel Carl [Sat, 14 Apr 2018 19:57:07 +0000 (21:57 +0200)]
Use separate makefile in for scripts.

6 years agoDo not use to many variables in makefiles.
Daniel Carl [Sat, 14 Apr 2018 19:17:42 +0000 (21:17 +0200)]
Do not use to many variables in makefiles.

6 years agoGive CPP and CFLAGS separate to compiler.
Daniel Carl [Fri, 13 Apr 2018 19:43:12 +0000 (21:43 +0200)]
Give CPP and CFLAGS separate to compiler.

Revert "Don't duplicate CFLAGS and CPPFLAGS."
This reverts commit 0cc0db9f7d40fdf9e88f20101a5183e35ba2ea91.

6 years agoUpdate license year.
Daniel Carl [Wed, 28 Mar 2018 10:06:17 +0000 (12:06 +0200)]
Update license year.

6 years ago Released version 3.1.0.
Daniel Carl [Mon, 18 Dec 2017 21:04:16 +0000 (22:04 +0100)]
 Released version 3.1.0.

6 years agoAdd warning when web extension could not be found.
Daniel Carl [Sat, 2 Dec 2017 22:42:02 +0000 (23:42 +0100)]
Add warning when web extension could not be found.

The warning is only shown if compiled with DEBUG. Hope this will helps
users and package managers to check the compilation or installation.

6 years agoSpelling correction (#458)
Docbroke [Fri, 24 Nov 2017 14:43:00 +0000 (20:13 +0530)]
Spelling correction (#458)

6 years agoDo not sanitize uri if this is no needed.
Daniel Carl [Fri, 17 Nov 2017 08:39:22 +0000 (09:39 +0100)]
Do not sanitize uri if this is no needed.

Most of the time uri do not contain credentials, so don't run expensive
uri cleanup if there is not @ char in uri indicating that this might
contain at least a username and possibly also and password.

6 years agoAvoid uninitialized use of uri warning.
Daniel Carl [Wed, 15 Nov 2017 13:03:52 +0000 (14:03 +0100)]
Avoid uninitialized use of uri warning.

6 years agoSanitize uri internally by default.
Daniel Carl [Wed, 15 Nov 2017 09:22:57 +0000 (10:22 +0100)]
Sanitize uri internally by default.

Like Rudis Muiznieks pointed out the password appeared on other channels
too. So we sanitize the uri as soon as possible to ensure the password
is not visible in history, bookmarks, environment variables like
$VIMB_URI or the register '%'.

6 years agoMove sanitize_uri to utils.
Daniel Carl [Wed, 15 Nov 2017 09:22:09 +0000 (10:22 +0100)]
Move sanitize_uri to utils.

This will allow us to used this in other parts too.

6 years agoSanitizing uri with SoupURI instead of regex.
Rudis Muiznieks [Tue, 14 Nov 2017 14:21:47 +0000 (08:21 -0600)]
Sanitizing uri with SoupURI instead of regex.

6 years agoHide username:password@ in urlbar
Rudis Muiznieks [Fri, 10 Nov 2017 04:28:27 +0000 (22:28 -0600)]
Hide username:password@ in urlbar

6 years agoUse suggested file name from uri on :save #449
Daniel Carl [Sun, 5 Nov 2017 21:55:28 +0000 (22:55 +0100)]
Use suggested file name from uri on :save #449

Get some auto suggested download file name if a page is going to be
saved by :save command.

6 years agoMerge pull request #448 from yblein/restart-last-search
Daniel Carl [Sat, 28 Oct 2017 21:51:07 +0000 (23:51 +0200)]
Merge pull request #448 from yblein/restart-last-search

n/N restart the previous search if none is active

6 years agon/N restart the previous search if none is active
Yoann Blein [Sat, 28 Oct 2017 16:22:53 +0000 (18:22 +0200)]
n/N restart the previous search if none is active

vimb no longer ignores n/N if no search is active. Instead, it restarts
a search with the same query that was used in the last search, just like
Vim does. This is very convenient when searching for the same query in
different pages.

6 years agoUpdate changelog for lates fix.
Daniel Carl [Fri, 13 Oct 2017 21:39:11 +0000 (23:39 +0200)]
Update changelog for lates fix.

6 years agoSwitch to input mode on authentication request #444.
Daniel Carl [Fri, 13 Oct 2017 21:22:18 +0000 (23:22 +0200)]
Switch to input mode on authentication request #444.

Webkit shows an default embedded authentication dialog in case of
HTTP-Authentication. But this dialog is neither a GTK dialog nor part of
the DOM. So we are not informed about the any focus changes and vimb
keeps in normal mode and the user cant use all the chars for the
authentication.
This patch listen to the webview authentication signal to force
switching to input mode. On the other had a new flag is set to avoid
switching vimb back to normal mode because of focus changes in the
underlaying DOM (previous opened page).

7 years agoAdded autocmd to commands that can not contain pipe.
Daniel Carl [Thu, 5 Oct 2017 21:33:51 +0000 (23:33 +0200)]
Added autocmd to commands that can not contain pipe.