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

7 years agoRename hint-number-same-length into hint-keys-same-length
Yoann Blein [Sun, 1 Oct 2017 08:02:55 +0000 (10:02 +0200)]
Rename hint-number-same-length into hint-keys-same-length

fix #425

7 years agoFixed typo in man page for auto command event.
Daniel Carl [Thu, 5 Oct 2017 19:43:28 +0000 (21:43 +0200)]
Fixed typo in man page for auto command event.

7 years agoReintroduce autocmd and augroups. Fix #356
Yoann Blein [Sun, 1 Oct 2017 13:39:09 +0000 (15:39 +0200)]
Reintroduce autocmd and augroups. Fix #356

7 years agoFixed none freed memory.
Daniel Carl [Fri, 4 Aug 2017 19:36:01 +0000 (21:36 +0200)]
Fixed none freed memory.

The g_variant format 's' will duplicate the memory of the requested
string. Changed this to '&s' to access the serialized data direct so
there is no need to free it.

7 years agoAdd comment about header caching #411.
Daniel Carl [Tue, 25 Jul 2017 21:22:22 +0000 (23:22 +0200)]
Add comment about header caching #411.

7 years agoUse same sorting or url in tag completion.
Daniel Carl [Mon, 24 Jul 2017 21:30:39 +0000 (23:30 +0200)]
Use same sorting or url in tag completion.

Show matching url in case of `bmr tag<Tab>` as for the open command
`:open tag<Tab>` which is none sorting to keep the url in the sort order
they where added to the bookmarks. This means the last added bookmarks
or ordered first in the completion list.

7 years agoShow --bug-info separate from version.
Daniel Carl [Mon, 24 Jul 2017 21:23:02 +0000 (23:23 +0200)]
Show --bug-info separate from version.

Do not print to much in case the user is only interested in the current
used version. So show vimb version only on options -v, --version and
added the new option --bug-version which shows the currently used libs
and the library versions vimb was compiled against.

7 years agoRemove private PKGBUILD from releases.
Daniel Carl [Mon, 24 Jul 2017 20:41:57 +0000 (22:41 +0200)]
Remove private PKGBUILD from releases.

7 years agoMerge pull request #431 from rti/rti_readme_arch_pkg_update
Daniel Carl [Sun, 23 Jul 2017 17:00:48 +0000 (19:00 +0200)]
Merge pull request #431 from rti/rti_readme_arch_pkg_update

Update arch pkg info in README.md

7 years agoupdates arch pkg info in README.md
Robert Timm [Fri, 21 Jul 2017 07:00:02 +0000 (09:00 +0200)]
updates arch pkg info in README.md

7 years agoUpdate the changelog.
Daniel Carl [Wed, 19 Jul 2017 21:16:37 +0000 (23:16 +0200)]
Update the changelog.

7 years agoAdd bookmark completion for :bmr.
Daniel Carl [Tue, 18 Jul 2017 20:44:06 +0000 (22:44 +0200)]
Add bookmark completion for :bmr.

7 years agoSplit client creation into pieces.
Daniel Carl [Tue, 11 Jul 2017 21:18:42 +0000 (23:18 +0200)]
Split client creation into pieces.

Setup the gui elements only when the webview is ready to be show like
suggested by the webkit developers.

7 years agoDon't duplicate CFLAGS and CPPFLAGS.
Daniel Carl [Mon, 17 Jul 2017 23:38:01 +0000 (01:38 +0200)]
Don't duplicate CFLAGS and CPPFLAGS.

Don't put the CPPFLAGS and CFLAGS duplicate to the compiler which lead
to warnings about redefinition of constants on command line like

    <command-line>:0:0: warning: "EXTENSIONDIR" redefined
    <command-line>:0:0: note: this is the location of the previous
    definition

7 years agoAllow extended hinting g-mode also for ;o.
Daniel Carl [Mon, 17 Jul 2017 22:10:51 +0000 (00:10 +0200)]
Allow extended hinting g-mode also for ;o.

The ';o' hinting was not allowed for extended hinting because it makes no
sense to keep hinting open when opening a link into the same window. But
the ';o' hinting matches also form fields so it is useful to allow it
for extended hinting too. So the user can open the extended hinting by
'g;o' and toggle radio buttons and checkboxes and finally submit the
form.

7 years agoDo not copy variable used only once.
Daniel Carl [Sat, 8 Jul 2017 22:14:15 +0000 (00:14 +0200)]
Do not copy variable used only once.

The copy of variable into a shorter one enlarges the codes size when the
variable is used only once. So don't copy it.

7 years agoFixed none cleared valid hints #427.
Daniel Carl [Sat, 8 Jul 2017 22:13:22 +0000 (00:13 +0200)]
Fixed none cleared valid hints #427.

7 years agoMerge pull request #429 from fanglingsu/issue-427
Daniel Carl [Sat, 8 Jul 2017 21:20:04 +0000 (23:20 +0200)]
Merge pull request #429 from fanglingsu/issue-427

Switch to numeric hint labeling for hint-keys beginning wiht '0'

7 years agoMention numeric hint-keys in man page #427.
Daniel Carl [Sat, 8 Jul 2017 21:16:25 +0000 (23:16 +0200)]
Mention numeric hint-keys in man page #427.

7 years agoUse new numeric hint-keys as default setting #427.
Daniel Carl [Sat, 8 Jul 2017 21:01:05 +0000 (23:01 +0200)]
Use new numeric hint-keys as default setting #427.

7 years agoHandle hintkeys beginning with 0 special #427.
Daniel Carl [Sat, 8 Jul 2017 19:57:21 +0000 (21:57 +0200)]
Handle hintkeys beginning with 0 special #427.

Number hints with hintkeys that begin with '0' as numbers starting from
next hint char. Moved hint labeling logic into separate closure.

7 years agoAdd factory to get hint labeler #427.
Daniel Carl [Wed, 28 Jun 2017 22:38:18 +0000 (00:38 +0200)]
Add factory to get hint labeler #427.

7 years agoFixed alignements.
Daniel Carl [Tue, 27 Jun 2017 22:34:17 +0000 (00:34 +0200)]
Fixed alignements.

7 years agoFixed wrong scroll position calculation #428.
Daniel Carl [Tue, 27 Jun 2017 21:21:16 +0000 (23:21 +0200)]
Fixed wrong scroll position calculation #428.

We use the scrollHeight and the scrollTop of the
document.documentElement. But there are pages where the scrollHeight is
calculated as the same value like the height of the viewport. I can't
identify what causes this issue, but using the document.body
scrollHeight fixes this.

7 years agoAlways create new user content manager.
Daniel Carl [Sat, 24 Jun 2017 23:00:52 +0000 (01:00 +0200)]
Always create new user content manager.

We sett all we need on the user content manager so it's the best to set
it to new related webview too.

7 years agoFixed wrong case of bool values in JS calls.
Daniel Carl [Sat, 24 Jun 2017 22:16:08 +0000 (00:16 +0200)]
Fixed wrong case of bool values in JS calls.

7 years agoUse Uppercase bool value from glib.
Daniel Carl [Sat, 24 Jun 2017 00:29:08 +0000 (02:29 +0200)]
Use Uppercase bool value from glib.