vimb.git
5 years agoAdd support for marks, based on vimb-2.12
Leonardo Taccari [Mon, 15 Oct 2018 01:27:19 +0000 (03:27 +0200)]
Add support for marks, based on vimb-2.12

 - Introduce a scroll_top field in State, similar to scroll_percent but in pixel
 - Adjust the webextension to communicate and update scroll_top
 - Implement normal_map(), mostly based on vimb-2.12

5 years agoAlways use curly braces for if and else.
Daniel Carl [Thu, 11 Oct 2018 22:10:48 +0000 (00:10 +0200)]
Always use curly braces for if and else.

5 years agoUse stat(2) to retrieve the file permissions mode
Leonardo Taccari [Thu, 11 Oct 2018 20:37:39 +0000 (22:37 +0200)]
Use stat(2) to retrieve the file permissions mode

Remove the mode arguments from util_file_prepend_line(),
util_file_pop_line() and util_file_set_content().

Both util_file_prepend_line() and util_file_pop_line() just calls
util_file_set_content() so stat(2) can be used there and if it
fails the 0600 is used as a fallback.

Thanks to @fanglingsu for reviews and suggestions!

5 years agoFix a typo
Leonardo Taccari [Thu, 11 Oct 2018 20:55:52 +0000 (22:55 +0200)]
Fix a typo

5 years agoFix a copypasto regarding user-scripts option
Leonardo Taccari [Thu, 11 Oct 2018 12:53:13 +0000 (14:53 +0200)]
Fix a copypasto regarding user-scripts option

5 years agoReplace g_file_set_contents().
Daniel Carl [Wed, 10 Oct 2018 22:41:02 +0000 (00:41 +0200)]
Replace g_file_set_contents().

The g_file_set_contents performs atomic write to file by creating a
temporary file, writing to it and renaming it. But during the creation
of the temporary file, the mode is set hard to 0666. So our files will
silently always change their mode in case we processed their content.

This patch adds the util_file_set_content() function which follows the
same approach, but allows to set the mode that is used to create the
temporary file. So the file is created with the right permissions.

5 years agoAdd a mode (in chmod(2) context) argument to util_get_filepath()
Leonardo Taccari [Wed, 10 Oct 2018 11:03:10 +0000 (13:03 +0200)]
Add a mode (in chmod(2) context) argument to util_get_filepath()

Add a mode argument to util_get_filepath() in order to adjust file
permissions when creating file.  Adjust all util_get_filepath()
call and file permissions making them readable and writable only
by the user.

5 years agoShow warning if peer dbus connection does not provide credentials #438.
Daniel Carl [Wed, 10 Oct 2018 07:47:49 +0000 (09:47 +0200)]
Show warning if peer dbus connection does not provide credentials #438.

6 years agoRemove trialing tabs.
Daniel Carl [Tue, 9 Oct 2018 21:36:47 +0000 (23:36 +0200)]
Remove trialing tabs.

6 years agoUse glib example code for dbus auth observer #438.
Daniel Carl [Mon, 8 Oct 2018 21:31:10 +0000 (23:31 +0200)]
Use glib example code for dbus auth observer #438.

6 years agoSetup dbus server before the webextension #438.
Daniel Carl [Mon, 8 Oct 2018 21:07:18 +0000 (23:07 +0200)]
Setup dbus server before the webextension #438.

Not sure if this changes anything, but it's a good choice to setup the
server before telling webkit where to look for webextensions.

6 years agoDo not stale bug labeled issues.
Daniel Carl [Mon, 8 Oct 2018 20:26:14 +0000 (22:26 +0200)]
Do not stale bug labeled issues.

6 years agoAdd stale bot configuration.
Daniel Carl [Tue, 2 Oct 2018 20:54:13 +0000 (22:54 +0200)]
Add stale bot configuration.

6 years agoMove github stuff into .github directory.
Daniel Carl [Tue, 2 Oct 2018 20:53:21 +0000 (22:53 +0200)]
Move github stuff into .github directory.

6 years agoRemove also shared object on make clean.
Daniel Carl [Fri, 28 Sep 2018 21:50:44 +0000 (23:50 +0200)]
Remove also shared object on make clean.

6 years agoReplace tabs by spaces.
Daniel Carl [Fri, 28 Sep 2018 21:48:51 +0000 (23:48 +0200)]
Replace tabs by spaces.

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.