Daniel Carl [Sun, 7 May 2017 12:19:40 +0000 (14:19 +0200)]
Prefix minified content by file type.
Avoid naming collisions and prefix the minified scripts by JS_ so that
it's obvious what's their content.
Daniel Carl [Sun, 7 May 2017 11:44:05 +0000 (13:44 +0200)]
Inject global hints script during setting.
In case the user disabled user scripts, also the hints script was
removed from the web content manager. So if the page was reloaded the
hinting did not work. To avoid the disabling of vimb internal used
scripts, we set them always during set up of the settings. So they are
readded in case all scripts are removed from the web content manager.
Daniel Carl [Sun, 7 May 2017 00:03:19 +0000 (02:03 +0200)]
Run hint script syncron #349.
When we run the hinting asyn over dbus we can't use the return value
of the hinting to check if the action was done or not. So it was not
possible to undo last number filter on pressing backspace.
Daniel Carl [Sat, 6 May 2017 23:30:16 +0000 (01:30 +0200)]
Fixed missed quotes around filter value #349.
Daniel Carl [Sat, 6 May 2017 22:50:38 +0000 (00:50 +0200)]
Don't fail on same origin policy violations #349.
Daniel Carl [Sat, 6 May 2017 22:39:00 +0000 (00:39 +0200)]
Inject hinting script only in top frame #349.
We can not address sub frame scripts at the time and the hinting script
is able to process also frames, when this is allowed according to the
same origin policy. So there is no need to inject the script into
multiple frames.
Daniel Carl [Sat, 6 May 2017 22:34:51 +0000 (00:34 +0200)]
Allow to quit hint mode via <CTRL-C> #349.
There are some pages where the hinting could not be started and the
input box is filled with ';o'. If the user uses <Esc> this key is also
given to the hinting mode which can't handle this so the user has no way
to get back to normal mode.
Moved the <CTRL-C> case to the beginning of the key handler to make sure
the user can abort the current mode by <CTRL-C>.
Virgil Dupras [Fri, 5 May 2017 14:33:35 +0000 (10:33 -0400)]
Make the ";y" (yanking) hint command work
Virgil Dupras [Tue, 2 May 2017 00:34:53 +0000 (20:34 -0400)]
Make hints wotk in "new window" mode
The old "set target to _blank" trick doesn't work anymore since the
whole "noopener" vulnerability thing
(https://mathiasbynens.github.io/rel-noopener/)
I couldn't find a workaround. We're unfortunately now limited in the
kind of elements we can interact with in "new window" mode.
Virgil Dupras [Sat, 29 Apr 2017 02:24:37 +0000 (22:24 -0400)]
hints: re-enable hints function return value processing
Virgil Dupras [Sat, 29 Apr 2017 02:02:03 +0000 (22:02 -0400)]
hints: Re-enable nearly all call_hint_function invocations
Virgil Dupras [Thu, 27 Apr 2017 02:54:30 +0000 (22:54 -0400)]
Convert old hints.c to the webkit2 era
Lots of it is still disabled, but the basic hint showing happening when
pressing 'f' works.
Virgil Dupras [Mon, 24 Apr 2017 02:47:22 +0000 (22:47 -0400)]
Add hint display
Pressing 'F' will show hints with the old styling from the master
branch.
Virgil Dupras [Mon, 24 Apr 2017 00:53:34 +0000 (20:53 -0400)]
Very preliminary work for bringing hints back
Daniel Carl [Sat, 6 May 2017 21:36:46 +0000 (23:36 +0200)]
Merge branch '375_reject_window_manager_initiated_quit_if_downloads_are_running' of https://github.com/rti/vimb into webkit2
Daniel Carl [Sat, 6 May 2017 21:35:08 +0000 (23:35 +0200)]
Merge branch 'fix_typos' of https://github.com/rti/vimb into webkit2
Daniel Carl [Sat, 6 May 2017 21:32:39 +0000 (23:32 +0200)]
Merge branch '383_download_file_name_postfix' of https://github.com/rti/vimb into webkit2
Daniel Carl [Fri, 5 May 2017 23:55:27 +0000 (01:55 +0200)]
Don't set empty title is none is found.
In case a page without a title or a none html file which can be shown is
opened, webkit informed us about the title change to empty string. But
no window title is no good idea, especial in case vimb runs within
tabbed and there are multiple unnamed tabs.
So we set the webview title only if it's not empty.
Robert Timm [Sun, 23 Apr 2017 19:10:37 +0000 (21:10 +0200)]
Reject window manager quit if downloading
Rejects a window manager initiated quit signal if there are downloads in
progress. This closes #375.
Robert Timm [Thu, 4 May 2017 17:42:50 +0000 (19:42 +0200)]
fixes typos
Robert Timm [Thu, 4 May 2017 17:40:10 +0000 (19:40 +0200)]
fixes download file name postfix (closes #383)
Daniel Carl [Thu, 27 Apr 2017 21:22:33 +0000 (23:22 +0200)]
Changed default-zoom behaviour.
In the previous implementation the default-zoom was only a initial full
content zoom applied to the webview. But in case the user changed the
zooming and reset it back by using 'zz' the webkit zoom level was set to
1.0 (100%) and not to the initial zoom level like on startup of vimb.
This behaviour is strange to under stand and does not fit toe the
setting name 'default-zoom'.
To make the default-zoom to a real default, the zoom is also applied in
case the zoom is reseted by the user via 'zz'.
Daniel Carl [Thu, 27 Apr 2017 20:16:04 +0000 (22:16 +0200)]
Fix some typos.
Daniel Carl [Thu, 27 Apr 2017 20:08:17 +0000 (22:08 +0200)]
Keep all content before command on completion.
If ':: o' was completed, the white space and ':' before the command
where skipped and the user input was changed into ':open'. Vim keeps the
input also during command completion, so we follow this model and keep
it too.
Daniel Carl [Thu, 27 Apr 2017 19:32:48 +0000 (21:32 +0200)]
Allow also completion for whitespace prefixed commands.
We allow to put whitespace or additional ':' before ex commands to avoid
recoding of the commands in the history. But in the completion only the
first ':' was skipped to get the command to apply completion for.
So ': open foo<Tab>' did not start completion, because ' open' is none
known command.
So skip all ':' and whitespace after the first ':' to set the pointer to
the beginning of the command.
Daniel Carl [Thu, 27 Apr 2017 19:13:10 +0000 (21:13 +0200)]
Add bookmark completion to manual page #365.
Daniel Carl [Wed, 26 Apr 2017 22:43:35 +0000 (00:43 +0200)]
Added section for input mode to man page #365.
Daniel Carl [Wed, 26 Apr 2017 22:40:28 +0000 (00:40 +0200)]
Added missed queue file in manual page #365.
Daniel Carl [Wed, 26 Apr 2017 22:37:38 +0000 (00:37 +0200)]
Add queue feature to manual page #365.
Daniel Carl [Wed, 26 Apr 2017 22:13:22 +0000 (00:13 +0200)]
Moved closed file writing to util #379.
Daniel Carl [Wed, 26 Apr 2017 21:43:24 +0000 (23:43 +0200)]
Allow to store multiple closed URLs #379.
Applied changes of
8ae4cadf58e46b3e9951fa89cf084bd2792984c3 in master
branch to new infrastructure.
Daniel Carl [Wed, 26 Apr 2017 20:13:36 +0000 (22:13 +0200)]
Fixed wrongs check of g_mkdir_with_parents #381.
Daniel Carl [Mon, 24 Apr 2017 11:15:15 +0000 (13:15 +0200)]
Don't run input change on stepping through completion.
Robert Timm [Sat, 22 Apr 2017 22:55:48 +0000 (00:55 +0200)]
fixes incsearch history handling
Refactores parts of command_search() (closes #372)
Fixes search using "/ register (type "/<enter>")
Daniel Carl [Sat, 22 Apr 2017 21:04:37 +0000 (23:04 +0200)]
Added missed --config option on spawning new instance.
Daniel Carl [Sat, 22 Apr 2017 20:53:49 +0000 (22:53 +0200)]
Show profile name in url bar #343.
Daniel Carl [Sat, 22 Apr 2017 20:46:11 +0000 (22:46 +0200)]
Add profile option #343.
Daniel Carl [Sat, 22 Apr 2017 20:45:01 +0000 (22:45 +0200)]
Remove FEATURE_HISTORY_INDICATOR.
This does not bring any real benefit to make allow to avoid this but
makes the code hard to maintain.
Daniel Carl [Fri, 21 Apr 2017 21:55:14 +0000 (23:55 +0200)]
Update the license year.
Daniel Carl [Fri, 21 Apr 2017 21:51:14 +0000 (23:51 +0200)]
Create files needed for full feature support.
Create all those files on startup that are needed to provide all the
documented features.
Daniel Carl [Fri, 21 Apr 2017 21:29:50 +0000 (23:29 +0200)]
Don't fail on missing files.
Daniel Carl [Fri, 21 Apr 2017 21:16:46 +0000 (23:16 +0200)]
Don't warn about missing scripts file.
It's not required that the user has a scripts file. So don't attempt to
inject it if it is not present.
Daniel Carl [Fri, 21 Apr 2017 21:10:39 +0000 (23:10 +0200)]
Don not double inject user script file.
The script file is injected in case 'userscripts' setting is enabled. So
there is no need to do this on creating the webview too.
Daniel Carl [Fri, 21 Apr 2017 21:07:54 +0000 (23:07 +0200)]
Removed hsts file because this is not used at the time.
Daniel Carl [Fri, 21 Apr 2017 09:45:32 +0000 (11:45 +0200)]
Fixed none printed :open .. on O.
If the input was filled programmatically and the mode where switched the
already filled input was cleaned by the attempt to stop possible search.
So now the input is only cleared if there is really an active search.
Daniel Carl [Fri, 21 Apr 2017 09:23:45 +0000 (11:23 +0200)]
Merge branch 'fix_incsearch_paste' of https://github.com/rti/vimb into webkit2.
Daniel Carl [Fri, 21 Apr 2017 09:05:05 +0000 (11:05 +0200)]
Clear input after load commited during search.
If a new page is opened during search, the search string was still
present in the input box even if the searching is paused in this case.
So now clear the input box and stop searching in case of a new page
load.
Robert Timm [Mon, 17 Apr 2017 21:22:39 +0000 (23:22 +0200)]
adds TODO for text buffer change warning
Robert Timm [Mon, 17 Apr 2017 20:41:47 +0000 (22:41 +0200)]
adds TODO for deprecated gdkkeysyms
Robert Timm [Mon, 17 Apr 2017 20:41:15 +0000 (22:41 +0200)]
moves incsearch to ex_input_changed (closes #370)
Robert Timm [Mon, 17 Apr 2017 20:40:39 +0000 (22:40 +0200)]
adds call to mode input_changed (closes #369)
Daniel Carl [Thu, 20 Apr 2017 23:07:48 +0000 (01:07 +0200)]
Run js by webextension.
Make sure all the scripts we run internally are also evaluated in case
js is disabled.
Daniel Carl [Thu, 20 Apr 2017 22:03:55 +0000 (00:03 +0200)]
Run js for scrolling from webextension #367.
Daniel Carl [Thu, 20 Apr 2017 20:58:59 +0000 (22:58 +0200)]
Show if directory can't be created.
Daniel Carl [Thu, 20 Apr 2017 20:45:31 +0000 (22:45 +0200)]
Added :save command.
Daniel Carl [Thu, 20 Apr 2017 11:44:41 +0000 (13:44 +0200)]
Add docu for reading from stdin.
Daniel Carl [Thu, 20 Apr 2017 11:41:44 +0000 (13:41 +0200)]
Merge branch '346_html_from_stdin' of https://github.com/rti/vimb into webkit2.
Robert Timm [Fri, 14 Apr 2017 20:37:36 +0000 (22:37 +0200)]
adds reading html from stdin (closes #346)
as already implemented on the master branch
Daniel Carl [Tue, 11 Apr 2017 22:32:29 +0000 (00:32 +0200)]
User scripts don't work when scripts are disabled.
In case the scripts are injected from the ui, they are not processed in
case JavaScript is disabled in vimb. So use the previous dbus logic to
observe dom focus changes and use the script messaging system to inform
the ui process.
Daniel Carl [Tue, 11 Apr 2017 22:03:03 +0000 (00:03 +0200)]
Use script message handler to track elements focus changes.
Use script message handler instead of dbus to track for focused editable
elements to switch vimb into input mode or back to normal mode.
Daniel Carl [Tue, 11 Apr 2017 19:46:44 +0000 (21:46 +0200)]
Merge into changelog entries of 2.12 release.
Daniel Carl [Tue, 11 Apr 2017 11:46:42 +0000 (13:46 +0200)]
Merge branch 'remove_todos_from_readme' of https://github.com/rti/vimb into webkit2.
Daniel Carl [Tue, 11 Apr 2017 10:05:11 +0000 (12:05 +0200)]
Fixed webinspector not opend on second attempt.
If the webinspector was opened and closed via 'gF' it could not be
opened again with this key combination.
Robert Timm [Tue, 11 Apr 2017 09:12:17 +0000 (11:12 +0200)]
removes todos from readme
Daniel Carl [Tue, 11 Apr 2017 07:42:38 +0000 (09:42 +0200)]
Don't verbose the echo lines during make.
The echo lines where a light alternative to the long compiler options
lines, so there is no real benefit on showing the 'echo' itself.
Daniel Carl [Tue, 11 Apr 2017 07:35:18 +0000 (09:35 +0200)]
Put objects before linker flags.
This allows to compile with -Wl,--as-needed option which affects only
those libraries written after that option on the command line.
Daniel Carl [Tue, 11 Apr 2017 07:13:20 +0000 (09:13 +0200)]
Don't show mode label in status bar if not needed.
Daniel Carl [Mon, 10 Apr 2017 22:27:40 +0000 (00:27 +0200)]
Merge branch 'fix_ensure_input_text_view_size' of https://github.com/rti/vimb into webkit2
Robert Timm [Sat, 8 Apr 2017 23:15:29 +0000 (01:15 +0200)]
ensures correct initial input GtkTextView size
Robert Timm [Sat, 8 Apr 2017 21:44:36 +0000 (23:44 +0200)]
adds make option V for verbose builds
Daniel Carl [Mon, 10 Apr 2017 19:47:20 +0000 (21:47 +0200)]
Fix wrong path to extension directory.
Daniel Carl [Mon, 10 Apr 2017 11:35:40 +0000 (13:35 +0200)]
Write url to history on load finished.
Daniel Carl [Mon, 10 Apr 2017 11:13:07 +0000 (13:13 +0200)]
Install the extension in the right directory.
Daniel Carl [Sun, 9 Apr 2017 22:14:18 +0000 (00:14 +0200)]
Open print dialog on :hardcopy.
Daniel Carl [Sun, 9 Apr 2017 21:57:34 +0000 (23:57 +0200)]
Fixed wrong default download path.
Daniel Carl [Sun, 9 Apr 2017 21:44:14 +0000 (23:44 +0200)]
Merge branch 'feature_incsearch' of https://github.com/rti/vimb into webkit2
Daniel Carl [Sun, 9 Apr 2017 21:33:47 +0000 (23:33 +0200)]
Merge branch 'feature_download_display_eta' of https://github.com/rti/vimb into webkit2.
Robert Timm [Sat, 8 Apr 2017 20:40:29 +0000 (22:40 +0200)]
adds incsearch setting
Robert Timm [Sat, 8 Apr 2017 13:16:37 +0000 (15:16 +0200)]
adds download eta display to status bar
Robert Timm [Fri, 7 Apr 2017 22:43:49 +0000 (00:43 +0200)]
changes make target dependencies
technically, the vimb binary does not depend on webext, but the all
target should build vimb and webext
Robert Timm [Fri, 7 Apr 2017 22:41:10 +0000 (00:41 +0200)]
fixes regeneration of scripts.h
without this patch, the make target would keep appending updated js code
to scripts.h and therefor create multiple instances of the C defines.
Robert Timm [Fri, 7 Apr 2017 22:38:58 +0000 (00:38 +0200)]
moves scripts.h make target to src/Makefile
this allows better dependency tracking like regenerate scripts.h only if a
js file changed and only rebuild objects if scripts.h changed
Robert Timm [Fri, 7 Apr 2017 22:34:23 +0000 (00:34 +0200)]
allow directory names in js2h parameters
strips directory names from js2h js file parameters. this allows
calling js2h from directories other than one the js source resides in
Robert Timm [Fri, 7 Apr 2017 22:31:50 +0000 (00:31 +0200)]
use %.subdir-{all,clean} targets in root makefile
- improves consistency: this mechanism is used in other places as well
- fixes dependency tracking: root makefile does not check files directly
but delegates the task to sub makefiles
Daniel Carl [Thu, 23 Mar 2017 20:30:16 +0000 (21:30 +0100)]
Don't use compat mode by default.
Daniel Carl [Thu, 23 Mar 2017 20:23:42 +0000 (21:23 +0100)]
Mentioned changed font style syntax in changelog.
Daniel Carl [Thu, 23 Mar 2017 12:28:00 +0000 (13:28 +0100)]
Call subdir make only for one level #331.
We can't control dependencies in case all the subdirs are processed from
the upper most Makefile. So now the subdir make used to create the
webextension and the script is called from the src/Makefile which knows
somethings more about dependencies.
Daniel Carl [Fri, 10 Mar 2017 22:06:33 +0000 (23:06 +0100)]
Remove webkit version check.
This is already covered by the requirements.
Daniel Carl [Fri, 10 Mar 2017 21:52:11 +0000 (22:52 +0100)]
Don't show webview if it's not ready to be shown.
Robert Timm [Wed, 8 Mar 2017 20:51:06 +0000 (21:51 +0100)]
fixes prompt color after error
Daniel Carl [Fri, 3 Mar 2017 11:16:48 +0000 (12:16 +0100)]
A little bit more silence.
Robert Timm [Thu, 2 Mar 2017 09:06:54 +0000 (10:06 +0100)]
allows shortcuts without parameters
Daniel Carl [Thu, 2 Mar 2017 22:48:12 +0000 (23:48 +0100)]
Marked embed as done.
Daniel Carl [Thu, 2 Mar 2017 20:40:56 +0000 (21:40 +0100)]
Simplified test page javascript.
Daniel Carl [Thu, 2 Mar 2017 20:33:41 +0000 (21:33 +0100)]
Added manual test pages for focus/blur issues.
Daniel Carl [Thu, 2 Mar 2017 00:10:12 +0000 (01:10 +0100)]
Added completion for shortcuts.
Completion for shortcuts are now available for :shortcut-remove and
:shortcut-default.
Daniel Carl [Wed, 1 Mar 2017 23:54:22 +0000 (00:54 +0100)]
Added url file handlers.
Allow to set protocol handlers via :handler-add that process url
protocol like mailto: by using a specific tool.
Daniel Carl [Wed, 1 Mar 2017 23:01:42 +0000 (00:01 +0100)]
Cleanup settings on quit.
Daniel Carl [Wed, 1 Mar 2017 22:24:16 +0000 (23:24 +0100)]
Marked file path completion as done.
Joachim Desroches [Tue, 28 Feb 2017 15:39:38 +0000 (16:39 +0100)]
Add documentation for the :source command back.