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

7 years agoUse more async script evaluation #421.
Daniel Carl [Sat, 24 Jun 2017 00:10:57 +0000 (02:10 +0200)]
Use more async script evaluation #421.

It's better to block UI less by running the hinting stuff. But there are
some points at the time where we can't avoid running the JavaScript
syncronously e.g. to check if the user typed key was handled by the
hinting script or not. Later means that we let the normal mode decide
what to do with this.

7 years agoEnable JavaScript as long the hinting is done #421.
Daniel Carl [Wed, 21 Jun 2017 22:43:19 +0000 (00:43 +0200)]
Enable JavaScript as long the hinting is done #421.

As another benefit the scroll and resize observer works so that the
hints are redrawn when the window is resized or the top window is
scrolled.

7 years agoAvoid dbus timeout by timeout function in js #421.
Daniel Carl [Wed, 21 Jun 2017 20:50:11 +0000 (22:50 +0200)]
Avoid dbus timeout by timeout function in js #421.

I don't understand why the JavaScript blocks the dbus processing or the
return from JavaScript on case of e.click() or on window.location.href =
href; the later only cause dbus timeout when the url does not change
except of the location hash.

7 years agoRemove event observers in clear().
Daniel Carl [Wed, 21 Jun 2017 20:43:34 +0000 (22:43 +0200)]
Remove event observers in clear().

7 years agoShow extension dir in version output too.
Daniel Carl [Tue, 20 Jun 2017 09:14:04 +0000 (11:14 +0200)]
Show extension dir in version output too.

Hope this helps to identify compilation issues in the future where the
webextension is not found.

7 years agoFixed endless loop on hints with same length.
Daniel Carl [Tue, 20 Jun 2017 22:38:06 +0000 (00:38 +0200)]
Fixed endless loop on hints with same length.

In case hints with same length where generated the loop to get the
number of addressable hints did not end when there was only one single
hintkey defined.
So now do not attempt to run the same length hint label logic in case
there is only one hint key set. In this case normal hint labels are
generated.

7 years agoShortened hint logic a little.
Daniel Carl [Tue, 20 Jun 2017 22:18:59 +0000 (00:18 +0200)]
Shortened hint logic a little.

7 years agoRecalculate and draw hints after resize or scroll.
Daniel Carl [Tue, 20 Jun 2017 20:41:50 +0000 (22:41 +0200)]
Recalculate and draw hints after resize or scroll.

Refresh the hints in case of scrolling or resizing of the window. This
does only work in case JavaScript is enabled, else the timeout function
nor the event listeners work.

7 years agoMore fine grained version info.
Daniel Carl [Mon, 19 Jun 2017 21:36:08 +0000 (23:36 +0200)]
More fine grained version info.

Show the libraries vimb was compiled against and that are used at
runtime. Remove license info from the output for 'version' or '-v'
option.

7 years agohistory: skip adding items if history is disabled
Patrick Steinhardt [Mon, 19 Jun 2017 05:41:49 +0000 (07:41 +0200)]
history: skip adding items if history is disabled

Previous to the migration to webkit2gtk, history items were not added
when either "history-max-items" was set to "0" or if a command was not
inserted by typing, but for example triggered by "au" commands. Right
now, though, this code is #ifdef'd out, so we'll always add items to the
history.

While we currently have no easy way of determining whether a command was
typed or not, we should still refuse adding history items whenever the
"history-max-items" variable is set to "0". As "au"-triggered commands
are not yet supported again, we do not even have to worry about this
case right now, but only later on when it is added. So we fix the issue
now by returning early when `history_max` is not set.

7 years agoShortened variables.
Daniel Carl [Sun, 18 Jun 2017 19:17:05 +0000 (21:17 +0200)]
Shortened variables.

7 years agoMerge branch 'improve_hint_char_selection' of https://github.com/rti/vimb.
Daniel Carl [Sun, 18 Jun 2017 18:04:34 +0000 (20:04 +0200)]
Merge branch 'improve_hint_char_selection' of https://github.com/rti/vimb.

7 years agoadds hints.html manual test page
Robert Timm [Thu, 15 Jun 2017 21:17:13 +0000 (23:17 +0200)]
adds hints.html manual test page

7 years agoimproves hint char selection
Robert Timm [Thu, 15 Jun 2017 21:16:53 +0000 (23:16 +0200)]
improves hint char selection

7 years agoHelp contributors to find something to work on.
Daniel Carl [Thu, 15 Jun 2017 12:57:59 +0000 (14:57 +0200)]
Help contributors to find something to work on.

7 years agoRemove TODO which is now available as issue.
Daniel Carl [Thu, 15 Jun 2017 12:42:33 +0000 (14:42 +0200)]
Remove TODO which is now available as issue.

7 years agoAdded goals to CONTRIBUTING file.
Daniel Carl [Wed, 14 Jun 2017 21:53:18 +0000 (23:53 +0200)]
Added goals to CONTRIBUTING file.

7 years agoRenamed CONTRIBUTING file because github likes that.
Daniel Carl [Wed, 14 Jun 2017 21:35:22 +0000 (23:35 +0200)]
Renamed CONTRIBUTING file because github likes that.

7 years agoFix O after searching caused empty inputbox.
Daniel Carl [Wed, 14 Jun 2017 21:21:28 +0000 (23:21 +0200)]
Fix O after searching caused empty inputbox.

In case a searching is active vimb is still in normal mode. So
'O'-keypress should write ':open URL' to the inputbox and switch vimb
into command mode. But during the switching of the modes, the already
written ':open ..' string was immediately overwritten by empty string.
So the user was left with cursor in empty inputbox.

Now the input is only cleared on stopping searching when a links was
fired during searching which is done in code during
WEBKIT_LOAD_COMMITTED event processing.

7 years agoDon't allocate memory for none shown messages.
Daniel Carl [Wed, 14 Jun 2017 20:59:08 +0000 (22:59 +0200)]
Don't allocate memory for none shown messages.

The logic that decided if a message could be written to input box was in
input_print() which is called with newly allocated and prepared message
string. But in case the widget is focused and we do not intend a forced
update the string preparation was in vain.
So do the check if the input could be written before allocating any
memory.

7 years agoUse web context of the webview instead of default.
Daniel Carl [Wed, 14 Jun 2017 20:10:04 +0000 (22:10 +0200)]
Use web context of the webview instead of default.

This should not make any difference at the time but we are free to use
custom web context later.

7 years agoKeep xid generation and setting to env close together.
Daniel Carl [Tue, 13 Jun 2017 20:41:27 +0000 (22:41 +0200)]
Keep xid generation and setting to env close together.

7 years agoDon't set window size if embedded #417.
Daniel Carl [Tue, 13 Jun 2017 20:22:19 +0000 (22:22 +0200)]
Don't set window size if embedded #417.

In case vimb is embedded the window size is determined by the embedding
application. Setting the default window size in this case caused screen
redraw issue so that statusbar was not updated properly.

7 years agoLower required webkit version #415.
Daniel Carl [Thu, 8 Jun 2017 22:26:24 +0000 (00:26 +0200)]
Lower required webkit version #415.

7 years agoDon't limit web processes to one.
Daniel Carl [Thu, 8 Jun 2017 22:05:41 +0000 (00:05 +0200)]
Don't limit web processes to one.

7 years agoFixed unused function parameter.
Daniel Carl [Mon, 5 Jun 2017 22:14:06 +0000 (00:14 +0200)]
Fixed unused function parameter.

7 years agoDon't recompile all objects in scripts change.
Daniel Carl [Fri, 2 Jun 2017 22:48:27 +0000 (00:48 +0200)]
Don't recompile all objects in scripts change.

7 years agoRemove also desktop file on uninstall.
Daniel Carl [Fri, 2 Jun 2017 21:22:19 +0000 (23:22 +0200)]
Remove also desktop file on uninstall.

7 years agoAdapt comment to fit the js2h logic.
Daniel Carl [Fri, 2 Jun 2017 21:17:44 +0000 (23:17 +0200)]
Adapt comment to fit the js2h logic.

7 years agoRemove duplicate call to webkit_uri_request_get_uri.
Daniel Carl [Tue, 30 May 2017 21:22:36 +0000 (23:22 +0200)]
Remove duplicate call to webkit_uri_request_get_uri.

7 years agoRemove function parameter to embed new spawned instances.
Daniel Carl [Tue, 30 May 2017 21:18:39 +0000 (23:18 +0200)]
Remove function parameter to embed new spawned instances.

All calls used the embed flag so this can be removed.

7 years agoFree memory of pid string.
Daniel Carl [Tue, 30 May 2017 21:14:45 +0000 (23:14 +0200)]
Free memory of pid string.

7 years agoReleased version 3.0-alpha.
Daniel Carl [Fri, 26 May 2017 21:56:23 +0000 (23:56 +0200)]
Released version 3.0-alpha.

7 years agoMerge branch 'webkit2'.
Daniel Carl [Fri, 26 May 2017 22:11:00 +0000 (00:11 +0200)]
Merge branch 'webkit2'.

7 years agoUpdate license year.
Daniel Carl [Fri, 26 May 2017 21:54:51 +0000 (23:54 +0200)]
Update license year.

7 years agoRemoved no_proxy from man.
Daniel Carl [Fri, 26 May 2017 21:34:17 +0000 (23:34 +0200)]
Removed no_proxy from man.

This is not done by vimb at the time because the proxy stuff is done by
webkit itself.

7 years agoSet window default size.
Daniel Carl [Wed, 24 May 2017 19:43:02 +0000 (21:43 +0200)]
Set window default size.

7 years agoAdd :clearcache command.
Daniel Carl [Wed, 24 May 2017 19:04:32 +0000 (21:04 +0200)]
Add :clearcache command.

This allows to discard all caches currently used by webkit.

7 years agoRemoved hard coded tls policy.
Daniel Carl [Wed, 24 May 2017 18:42:30 +0000 (20:42 +0200)]
Removed hard coded tls policy.

The policy is already set during setting initialization.

7 years agoSort changed settings.
Daniel Carl [Tue, 23 May 2017 21:17:40 +0000 (23:17 +0200)]
Sort changed settings.

7 years agoAdded hardware acceleration to man page.
Daniel Carl [Tue, 23 May 2017 21:09:57 +0000 (23:09 +0200)]
Added hardware acceleration to man page.

7 years agoUse dashed naming for user-agent too.
Daniel Carl [Tue, 23 May 2017 20:45:06 +0000 (22:45 +0200)]
Use dashed naming for user-agent too.