vimb.git
9 years agoMoved default hint css from js to config.def.h file (#199).
Daniel Carl [Sat, 18 Apr 2015 21:52:04 +0000 (23:52 +0200)]
Moved default hint css from js to config.def.h file (#199).

This makes it easier for user to adapt the hinting theme without the need to
overrule the style by style.css file or to patch the hints.js file.

9 years agoSuppress redefinition warning caused by glib.
Daniel Carl [Sat, 18 Apr 2015 20:36:02 +0000 (22:36 +0200)]
Suppress redefinition warning caused by glib.

9 years agoRemoved code to track clicks to input elements.
Daniel Carl [Mon, 6 Apr 2015 20:09:48 +0000 (22:09 +0200)]
Removed code to track clicks to input elements.

This was added to switch between input mode and normal mode, depending on the
clicked element. But the mode switching is done mainly by observing DOM
focus/blur events. So this duplicate logic become obsolete.

9 years agoFixed regression against 112-editable-focus.html test (#197).
Daniel Carl [Sun, 5 Apr 2015 21:43:49 +0000 (23:43 +0200)]
Fixed regression against 112-editable-focus.html test (#197).

9 years agoCheck for DOM focus/blur events as soon as possible (#197).
Daniel Carl [Sun, 5 Apr 2015 11:04:40 +0000 (13:04 +0200)]
Check for DOM focus/blur events as soon as possible (#197).

This is required to remove focus in strict-focus=true even when the focus is
set to an editable element before the page is completely loaded. The previous
logic caused the cursor to be visible in form filed but vimb where still in
normals mode.

9 years agoLeave input mode after submitting a form (#197).
Daniel Carl [Fri, 3 Apr 2015 21:15:48 +0000 (23:15 +0200)]
Leave input mode after submitting a form (#197).

This is required in cases where no focus/blur events are triggered after a
form was submitted. Else we'd end up with vimb keeping in input mode but none
focused editable element.

9 years agoFixed not leaved input mode on form submit (#197).
Daniel Carl [Fri, 3 Apr 2015 20:56:55 +0000 (22:56 +0200)]
Fixed not leaved input mode on form submit (#197).

The previous logic of switching back to normal mode in
webview_load_status_cb() does only work for google search or if the place
where we switch back to normal mode is change for translate.google.com. But
this would have never been working for both sites.

This patch tries another approach and doe the switching back to normal mode
also by observing dom events. In case the strict-focus is enabled the focus
event callback blur the active element to keep vimb in it's current mode. If
vimb is in input mode the focus is not removed from the element, which allows
to to keep in input mode if this was started by user interaction like 'gi'
normal mode command, hinting or click to editable element.

There are two way's to obtain the input mode.
1. By user interaction: where vimb is set to input mode and after that the
   form element is focused, or where the input mode is set right after the dom
   event observer took their decision.
2. By the page: Only the focus/blur state of the editable active element
   changes and vimb pick this state changes up and follows this, or remove the
   focus in case of enabled strict-focus.

9 years agoUse case insensitive xpath for focus input (#198).
Daniel Carl [Thu, 2 Apr 2015 20:37:39 +0000 (22:37 +0200)]
Use case insensitive xpath for focus input (#198).

9 years agoAdapted formfiller code style.
Daniel Carl [Thu, 19 Mar 2015 20:45:12 +0000 (21:45 +0100)]
Adapted formfiller code style.

9 years ago-z "$var" and not -z $var it would seem
Artymort [Thu, 19 Mar 2015 13:29:36 +0000 (13:29 +0000)]
-z "$var" and not -z $var it would seem

9 years agoSpace between l and 7 + default value for $XDG...
Artymort [Thu, 19 Mar 2015 13:15:32 +0000 (13:15 +0000)]
Space between l and 7 + default value for $XDG...

9 years agoAllow to escape escape char to in commands (#191).
Daniel Carl [Mon, 16 Mar 2015 21:13:20 +0000 (22:13 +0100)]
Allow to escape escape char to in commands (#191).

This patch fixes a misbehaviour in the way the escaping is done for commands
given via inputbox or config file. The previous logic for the lhs of a command
used '\' to escape the ' '. But to get a single '\' it's needed to use '\\'.
But the '\\' was not taken as a single backslash.
Now the backslash escapes ' ' as well as '\'. A backslash followed by any
other char is taken as is.

9 years agoUse URL for bookmark completion too (#189).
Daniel Carl [Wed, 11 Mar 2015 21:15:22 +0000 (22:15 +0100)]
Use URL for bookmark completion too (#189).

In case the bookmark has no tags, it was not possible to filter the generated
completion list. This patch allows to use the URL of the bookmark for the tag
matching in case no tags are available. This is done by splitting the URL on
'.' and '/' characters.

9 years agoAdded hint for bookmark file format (#189).
Daniel Carl [Tue, 10 Mar 2015 20:56:58 +0000 (21:56 +0100)]
Added hint for bookmark file format (#189).

9 years agoFix segfault on bookmark completion (#189).
Daniel Carl [Tue, 10 Mar 2015 20:41:11 +0000 (21:41 +0100)]
Fix segfault on bookmark completion (#189).

If the bookmark file contained lines without any tab char, the completion
caused a segfault.

9 years agoRemoved duplicate style override for GTK3.
Daniel Carl [Mon, 9 Mar 2015 23:33:23 +0000 (00:33 +0100)]
Removed duplicate style override for GTK3.

9 years agoRestore alphabetical order of settings in man page.
Daniel Carl [Mon, 9 Mar 2015 21:01:56 +0000 (22:01 +0100)]
Restore alphabetical order of settings in man page.

9 years agoFixed shown scrollbars on some sites (#188).
Daniel Carl [Mon, 9 Mar 2015 20:55:01 +0000 (21:55 +0100)]
Fixed shown scrollbars on some sites (#188).

9 years agoFix segfault on config file with invalid commands (#188).
Daniel Carl [Mon, 9 Mar 2015 20:43:37 +0000 (21:43 +0100)]
Fix segfault on config file with invalid commands (#188).

In case the file contained invalid commands, this was shown to the user by
using vb_echo() which writes the error message into the inpubox. But this
triggered the already buffer_changed_cb that delegated the changed buffer
event to the current mode.
Long story short, there was no current mode set before which caused the
segfault.

9 years agoUpdate man page for hint-follow-last setting (#186).
Daniel Carl [Sun, 8 Mar 2015 20:21:23 +0000 (21:21 +0100)]
Update man page for hint-follow-last setting (#186).

9 years agoAdded hint-follow-last option
Micha Gorelick [Sun, 8 Mar 2015 17:05:22 +0000 (13:05 -0400)]
Added hint-follow-last option

9 years agoAdded hint for install on ubuntu (#185).
Daniel Carl [Sun, 8 Mar 2015 20:04:51 +0000 (21:04 +0100)]
Added hint for install on ubuntu (#185).

9 years agoAdded <BS> to list of special characters in man page
Craig Roy [Fri, 27 Feb 2015 02:47:50 +0000 (02:47 +0000)]
Added <BS> to list of special characters in man page

9 years agoAdded backspace as a special character for mapping
Craig Roy [Fri, 27 Feb 2015 02:41:42 +0000 (02:41 +0000)]
Added backspace as a special character for mapping

9 years agoRemove example files also on uninstall.
Daniel Carl [Mon, 23 Feb 2015 23:08:56 +0000 (00:08 +0100)]
Remove example files also on uninstall.

9 years agoInstall the sample scripts too.
Daniel Carl [Mon, 23 Feb 2015 22:40:11 +0000 (23:40 +0100)]
Install the sample scripts too.

9 years agoMerged code from mode.c into main.c
Daniel Carl [Sat, 21 Feb 2015 22:02:08 +0000 (23:02 +0100)]
Merged code from mode.c into main.c

9 years agoCleanup for manual page.
Daniel Carl [Sat, 21 Feb 2015 20:39:47 +0000 (21:39 +0100)]
Cleanup for manual page.

Rationale, major points:

- Esr's man-ext .SY macro is not portable.
  Even esr himself recommends to copy the implementation
  into the manual page itself if you *must* use it.
  But in the case at hand, it does almost nothing,
  so just use the portable .B instead.
- The glyph names \[char34] and \[char92] are not portable
  at all, but internal, undocumented groff features at best,
  and i'm surprised they work at all even with groff.
  Better use the portable \(dq and \e.

Rationale, minor points:

- The first .TH argument is by convention ALL CAPS.
- Use .PP and .sp as appropriate rather than blank lines.
- Drop useless .RS 0.
- New sentence, new line (sorry, that causes some churn).
- Some typos.

Thanks Ingo Schwarze for this patch.

9 years agoAdd <Space> as special map key name (#176).
Daniel Carl [Sat, 14 Feb 2015 20:41:33 +0000 (21:41 +0100)]
Add <Space> as special map key name (#176).

Normally the literal space char ' ' can be used for mappings. In case this is
part of the lhs it can be given escaped by '\'. But this does not work on the
rhs, because there is no evaluation of escaping for space like in vim. On the
other hand the rhs starts with the first none whitespace char after the lhs.
So it wasn't possible to apply mapping to sequences that starts with one or
more spaces.
This patch adds the new special key name '<Space>' to be used in this cases.

9 years agoFixed the code style a little.
Daniel Carl [Fri, 13 Feb 2015 21:15:26 +0000 (22:15 +0100)]
Fixed the code style a little.

9 years agohsts: reload only the main frame
Sébastien Marie [Fri, 13 Feb 2015 13:02:27 +0000 (14:02 +0100)]
hsts: reload only the main frame

HSTS in done using requeueing. But due to a bug in webkit, a reload of
the frame could be required in order to display the redirected URI (and
not the original one).

The patch force this reload only for the mainframe (where the correct
URI is need), and not for the subframe (where the HSTS stuff is done by
requeueing).

Original idea from @fanglingsu

9 years agoFixed code style.
Daniel Carl [Fri, 13 Feb 2015 11:09:08 +0000 (12:09 +0100)]
Fixed code style.

9 years agoUse left justified text in man page.
Daniel Carl [Tue, 10 Feb 2015 22:44:25 +0000 (23:44 +0100)]
Use left justified text in man page.

9 years agoRemoved unneeded micro seconds from timer.
Daniel Carl [Tue, 10 Feb 2015 21:26:44 +0000 (22:26 +0100)]
Removed unneeded micro seconds from timer.

9 years agoDon't remove error message if command is not known.
Daniel Carl [Sun, 8 Feb 2015 21:25:20 +0000 (22:25 +0100)]
Don't remove error message if command is not known.

If an unknown command was typed into inputbox the inputbox was still color in
the error color, but the content was removed so that the user is not informed
about the reason for the error. Even more critical was this in case the
'input-autohide' is enabled. In this case the clearing of the input box caused
the hiding of this, so that the user will never see that the command failed.

9 years agoFixed worng reference in man page.
Daniel Carl [Sun, 8 Feb 2015 21:15:53 +0000 (22:15 +0100)]
Fixed worng reference in man page.

9 years agoEllipsize left status bar text at the middle.
Daniel Carl [Sat, 7 Feb 2015 22:54:35 +0000 (23:54 +0100)]
Ellipsize left status bar text at the middle.

The left part of the statusbar shows the current url or the url under mouse
pointer or focused hint. The previous ellipsize removed the right part of
these URLs which might be interesting. So this is changed to show the left and
right part of the URL to the to domain par as well as the last path or query
part.

9 years agoQuit hinting on mouse click.
Daniel Carl [Sat, 7 Feb 2015 21:59:33 +0000 (22:59 +0100)]
Quit hinting on mouse click.

In case the user starts hinting and clicked with the mouse on a link, the new
page was opened. But after going back in back/forward history, the old page
was shown with the hints, but the browser was in normal mode so that the hints
where disfunctional and could only be removed by reloading the page.
Now vimb switches back to normal mode in case the user does a mouse click.

9 years agoChanged wrong comment.
Daniel Carl [Sat, 7 Feb 2015 12:02:16 +0000 (13:02 +0100)]
Changed wrong comment.

9 years agoAllocate new memory for history items.
Daniel Carl [Sat, 7 Feb 2015 10:55:14 +0000 (11:55 +0100)]
Allocate new memory for history items.

This makes it easier to maintain the code and to avoid memory leaks.

9 years agoFixed memory leak in history generation (#163).
Daniel Carl [Sat, 7 Feb 2015 00:00:50 +0000 (01:00 +0100)]
Fixed memory leak in history generation (#163).

The changes in the way the memory is allocated, cause a memory leak because
all those history items that where read from file but where not put into the
list, could not be freed by the caller.

9 years agoUse hash table for duplicate check of history (#163).
Daniel Carl [Fri, 6 Feb 2015 21:56:34 +0000 (22:56 +0100)]
Use hash table for duplicate check of history (#163).

The previous duplication check where don on the generated list of history
items with callback function which is really slow for large history files. Now
the histories url is put into a hash table for a faster duplicate check.
Additional to this some unneeded memory allocation where removed. This makes
the code a little harder to maintain, but hey we don't want to wast time and
memory here.

9 years agoSetup signals before realizing the window.
Daniel Carl [Fri, 6 Feb 2015 21:05:52 +0000 (22:05 +0100)]
Setup signals before realizing the window.

This is required to properly remove the scrollbars on some pages in case vimb
is compiles with GTK2.

9 years agoShow the widgets before reading the config file (#162).
Daniel Carl [Thu, 5 Feb 2015 20:36:51 +0000 (21:36 +0100)]
Show the widgets before reading the config file (#162).

This is required to open vimb with hidden inputbox in case 'input-autohide' is
enabled. Else the inputbox is marked as hidden but becomes visible again on
call of gtk_widget_show_all().

9 years agoUse more g_string_* function in map processing (#160).
Daniel Carl [Wed, 4 Feb 2015 22:26:44 +0000 (23:26 +0100)]
Use more g_string_* function in map processing (#160).

The use of these function makes it easier to see what's done compared to the
character moving in the loops.

9 years agoUse gstring for map processing (#160).
Daniel Carl [Tue, 3 Feb 2015 23:16:55 +0000 (00:16 +0100)]
Use gstring for map processing (#160).

9 years agoAdd libvimb.so to gitignore.
Daniel Carl [Tue, 3 Feb 2015 21:47:10 +0000 (22:47 +0100)]
Add libvimb.so to gitignore.

9 years agoBetter message if unit test fails.
Daniel Carl [Tue, 3 Feb 2015 21:46:11 +0000 (22:46 +0100)]
Better message if unit test fails.

9 years agoLittle style fix in man page.
Daniel Carl [Sun, 25 Jan 2015 21:57:20 +0000 (22:57 +0100)]
Little style fix in man page.

9 years agoUse own Makefile for src directory.
Daniel Carl [Sat, 24 Jan 2015 23:13:48 +0000 (00:13 +0100)]
Use own Makefile for src directory.

9 years agoRemoved debug target.
Daniel Carl [Sat, 24 Jan 2015 21:59:57 +0000 (22:59 +0100)]
Removed debug target.

It easy to set the CFLAGS and do a make clean, make. So there is no need to
bloat the Makefile for this.

9 years agoDon't end :open command at pipe (#159).
Daniel Carl [Sat, 24 Jan 2015 21:42:29 +0000 (22:42 +0100)]
Don't end :open command at pipe (#159).

The pipe as command separator is now also removed for :open and :tabopen
commands as well as for all mapping commands, like in pendatactyl.

9 years agoReleased version 2.9.
Daniel Carl [Fri, 16 Jan 2015 22:39:50 +0000 (23:39 +0100)]
Released version 2.9.

9 years agoAdded some docs.
Daniel Carl [Thu, 15 Jan 2015 21:58:34 +0000 (22:58 +0100)]
Added some docs.

9 years agoXDG standard conform socket location (#158).
Daniel Carl [Thu, 15 Jan 2015 21:19:00 +0000 (22:19 +0100)]
XDG standard conform socket location (#158).

9 years agoDon't write autocmd to command history.
Daniel Carl [Wed, 14 Jan 2015 12:48:05 +0000 (13:48 +0100)]
Don't write autocmd to command history.

9 years agoFixed compile error when queue feature is disabled.
Daniel Carl [Mon, 5 Jan 2015 22:50:13 +0000 (23:50 +0100)]
Fixed compile error when queue feature is disabled.

9 years agoUse g_signal_connect if there is only one signal connected.
Daniel Carl [Mon, 5 Jan 2015 22:42:47 +0000 (23:42 +0100)]
Use g_signal_connect if there is only one signal connected.

9 years agoDon't end shell cmd at pipe char.
Daniel Carl [Fri, 2 Jan 2015 22:35:06 +0000 (23:35 +0100)]
Don't end shell cmd at pipe char.

9 years agoTrack also inputbox buffer change in kioskmode.
Daniel Carl [Fri, 2 Jan 2015 22:06:10 +0000 (23:06 +0100)]
Track also inputbox buffer change in kioskmode.

Even if there is no inputbox in case vimb is started in kiosk mode we need to
observe the buffer changes to get working hinting if vimb is controlled via
socket.

9 years agoChange year in license block.
Daniel Carl [Thu, 1 Jan 2015 10:29:36 +0000 (11:29 +0100)]
Change year in license block.

9 years agoFixed wrong type given to g_error_free.
Daniel Carl [Wed, 31 Dec 2014 22:58:28 +0000 (23:58 +0100)]
Fixed wrong type given to g_error_free.

9 years agoMoved environment vars to :shellcmd.
Daniel Carl [Wed, 31 Dec 2014 21:42:25 +0000 (22:42 +0100)]
Moved environment vars to :shellcmd.

The VIMB_* env vars are only set for scripts run as :shellcmd.

9 years agoReplaced the fifo by socket to remote control vimb (#144).
Daniel Carl [Tue, 30 Dec 2014 23:31:16 +0000 (00:31 +0100)]
Replaced the fifo by socket to remote control vimb (#144).

9 years agoAllow multiple users per domain in formfiller.
Daniel Carl [Tue, 23 Dec 2014 22:12:21 +0000 (23:12 +0100)]
Allow multiple users per domain in formfiller.

9 years agoFixed no working hints in framesets.
Daniel Carl [Sat, 20 Dec 2014 22:00:03 +0000 (23:00 +0100)]
Fixed no working hints in framesets.

9 years agoAdded example scripts to setup formfiller (#153).
Daniel Carl [Sun, 14 Dec 2014 21:35:33 +0000 (22:35 +0100)]
Added example scripts to setup formfiller (#153).

9 years agoUpdate ex-cmd generals in man page.
Daniel Carl [Fri, 12 Dec 2014 23:26:18 +0000 (00:26 +0100)]
Update ex-cmd generals in man page.

9 years agoExclude ex cmd from history and register.
Daniel Carl [Fri, 12 Dec 2014 23:12:17 +0000 (00:12 +0100)]
Exclude ex cmd from history and register.

If the commands are called with leading ':' or whitespace, the commands are
not written into history or last ex command register ":. This might be useful
if user intend to setup a form filler with over the fifo, to avoid the
credentials to be written unencrypted into vimb's history.

9 years agoRemoved unneeded result overwriting.
Daniel Carl [Thu, 11 Dec 2014 21:34:22 +0000 (22:34 +0100)]
Removed unneeded result overwriting.

9 years agoRemove input timeout if inputbox was changed meanwhile.
Daniel Carl [Thu, 11 Dec 2014 20:59:53 +0000 (21:59 +0100)]
Remove input timeout if inputbox was changed meanwhile.

If the user started a command that failed with error state, the input timeout
was started. In case this was followed by a good command that prints output to
inputbox, the output was cleared by the previous set timeout function.
To fix this behaviour, the timeout is removed if the timer was started and the
inputbox is changed.

9 years agoRecord command history and register after command.
Daniel Carl [Thu, 11 Dec 2014 20:45:39 +0000 (21:45 +0100)]
Record command history and register after command.

The command to run was written to history and ':' register right before it was
run. This caused :register to show always the register command as last ex
command. Now the command is written to history and register after attempt to
run it.

9 years agoDon't clear focus if vimb is in input mode.
Daniel Carl [Thu, 11 Dec 2014 08:23:50 +0000 (09:23 +0100)]
Don't clear focus if vimb is in input mode.

If strict-focus is enabled and the user started typing into form field right
before the page way fully loaded, the focus was cleared, so that vimb switched
back to normal mode and executed the pressed keys as normal mode commands.
No the focus is only cleared if strict-focus is enabled and vimb is not in
input mode.

9 years agoFixed missed ifdefs for fifo feature.
Daniel Carl [Thu, 11 Dec 2014 08:21:27 +0000 (09:21 +0100)]
Fixed missed ifdefs for fifo feature.

9 years agoChanged option --fifo-name into --fifo.
Daniel Carl [Wed, 10 Dec 2014 22:00:35 +0000 (23:00 +0100)]
Changed option --fifo-name into --fifo.

The fifo with given name could not be used for new spawned vimb instances,
because each instance needs it's own fifo. To not make the things to
complicated the fifo is now always named vimb-fifo-{pid}. This allows to use
the fifo also for new spawned instances.
To get the right fifo path on startup the -d or --dump option was added to
print the full fifo path to stdout.

9 years agoUse G_OPTION_ARG_FILENAME for -c option.
Daniel Carl [Wed, 10 Dec 2014 21:55:51 +0000 (22:55 +0100)]
Use G_OPTION_ARG_FILENAME for -c option.

To use G_OPTION_ARG_FILENAME instead of G_OPTION_ARG_STRING is important
according to the glib documentation.

9 years agoFixed normal new window in kiosk mode.
Daniel Carl [Wed, 10 Dec 2014 21:45:44 +0000 (22:45 +0100)]
Fixed normal new window in kiosk mode.

If vimb is started in kiosk mode and a link is opened into new instance, the
new instance was not in kiosk mode because of missed -k option.

9 years agoDon't block search and url history if not typed (#133).
Daniel Carl [Sun, 7 Dec 2014 23:09:59 +0000 (00:09 +0100)]
Don't block search and url history if not typed (#133).

If a command was not typed, it was not stored in history. But this is
irritating if there is a map that opens a URI. In this case the URI was not
written ti URL history, which feels wrong. So now only the ex command history
recording is blocked if the content was not typed by the user or where given
via vimb fifo.

9 years agoDon't save mapped commands in history (#130).
Daniel Carl [Sun, 7 Dec 2014 22:12:24 +0000 (23:12 +0100)]
Don't save mapped commands in history (#130).

If a map causes vimb to run various ex commands or too do a search it's
irritating when these resolved commands are written into history. So a command
is only be written to history, if it's built from typed chars.
At the time the whole history recording is toggled on and off, which is not
what vim does. Maybe it would be better to allow fine gained control which
types of history and also registers are enabled or not.

Now also the command triggered from remote are recorded into history. This
makes sense, because the remote is assumed as normal user input.

9 years agoDon't switch from command to input mode if page says so.
Daniel Carl [Fri, 5 Dec 2014 09:28:15 +0000 (10:28 +0100)]
Don't switch from command to input mode if page says so.

9 years agoDon't give key presses to hint mode if this is off.
Daniel Carl [Thu, 4 Dec 2014 22:33:05 +0000 (23:33 +0100)]
Don't give key presses to hint mode if this is off.

If commands where typed into inputbox, there where javaScript errors written
in case a ';' was typed. The decision when the hinting mode is active was
wrong. Hinting is always started explicit so we can check the mode flag to
decide if the key can be handled by the hinting mode.

9 years agoDon't remove error message if ex cmd is not known.
Daniel Carl [Thu, 4 Dec 2014 22:37:05 +0000 (23:37 +0100)]
Don't remove error message if ex cmd is not known.

9 years agoDon't put remote command into command history.
Daniel Carl [Thu, 4 Dec 2014 22:16:44 +0000 (23:16 +0100)]
Don't put remote command into command history.

9 years agoRemoved lonesome #else.
Daniel Carl [Thu, 4 Dec 2014 21:31:22 +0000 (22:31 +0100)]
Removed lonesome #else.

9 years agoMoved pass through mode functions to normal.c.
Daniel Carl [Thu, 4 Dec 2014 21:13:01 +0000 (22:13 +0100)]
Moved pass through mode functions to normal.c.

9 years agoRemove function declaration that does not exists.
Daniel Carl [Thu, 4 Dec 2014 21:10:26 +0000 (22:10 +0100)]
Remove function declaration that does not exists.

9 years agoAvoid input clear in case autocmd is run.
Daniel Carl [Wed, 3 Dec 2014 20:43:44 +0000 (21:43 +0100)]
Avoid input clear in case autocmd is run.

If a page is opened and the user types the next ex command into inputbox, this
was removed in case there where autocmd triggered. The autocmd started ex
commands that cause the clearing of the inputbox.

9 years agoFixed broken automated test.
Daniel Carl [Tue, 2 Dec 2014 20:49:29 +0000 (21:49 +0100)]
Fixed broken automated test.

9 years agoAllow whitespace around '=' in :set command.
Daniel Carl [Tue, 2 Dec 2014 20:32:52 +0000 (21:32 +0100)]
Allow whitespace around '=' in :set command.

9 years agoDon't add empty modes in kioskmode.
Daniel Carl [Mon, 1 Dec 2014 23:34:11 +0000 (00:34 +0100)]
Don't add empty modes in kioskmode.

It does not disturb to have modes with never called callbacks, so save the
condition and the additional code block and setup the modes like normal.

9 years agoShow mode label in statusbar.
Daniel Carl [Wed, 26 Nov 2014 21:55:19 +0000 (22:55 +0100)]
Show mode label in statusbar.

This avoid often opening inputbox in case 'input-autohide=on' is set.

9 years agoDon't clear inputbox after :normal command.
Daniel Carl [Mon, 1 Dec 2014 22:52:24 +0000 (23:52 +0100)]
Don't clear inputbox after :normal command.

This lead to empty inputbox for example if hinting is started by ':no f', but
the inputbox must contain the ';o'. Without the inputbox content the hinting
does not work.

9 years agoStripped unneeded stuff from test html.
Daniel Carl [Mon, 1 Dec 2014 21:51:40 +0000 (22:51 +0100)]
Stripped unneeded stuff from test html.

9 years agoFixed none working focus event observing (#112).
Daniel Carl [Sun, 30 Nov 2014 21:22:08 +0000 (22:22 +0100)]
Fixed none working focus event observing (#112).

Now the strict-focus=on prevents vimb only from switching to input mode if
focus is on editable element on page load (for example set by a body onload
script). Vimb follow all further focus events.

9 years agoAdded manual test for dom focus changes (#112).
Daniel Carl [Sat, 29 Nov 2014 22:42:11 +0000 (23:42 +0100)]
Added manual test for dom focus changes (#112).

9 years agoChange URI of webframe instead of webview (#146).
Daniel Carl [Fri, 28 Nov 2014 08:18:59 +0000 (09:18 +0100)]
Change URI of webframe instead of webview (#146).

To change to URI of the webview does not work if the page contains a frame
with a URI to a host that will be changed to https for the HSTS. In this case
the frame URI is used as page URL, so that the user does not see the page he
requested.
Instead the URI of the webframe should be changed. Thanks to Sébastien Marie
for pointing this out.

9 years agoRevert "Move hsts check back to resource-request-starting (#146)."
Daniel Carl [Fri, 28 Nov 2014 08:12:43 +0000 (09:12 +0100)]
Revert "Move hsts check back to resource-request-starting (#146)."

This reverts commit 2ce5f3ef904705b813334d7f6183f858e4d6b2ec.

9 years agoRevert "Fixed wrong hsts protocol comparison (#146)."
Daniel Carl [Fri, 28 Nov 2014 08:12:32 +0000 (09:12 +0100)]
Revert "Fixed wrong hsts protocol comparison (#146)."

This reverts commit 279c46e6a2384017fe841bc46c4ce3a9844b5e3e.

9 years agoMove hsts check back to resource-request-starting (#146).
Daniel Carl [Thu, 27 Nov 2014 22:10:53 +0000 (23:10 +0100)]
Move hsts check back to resource-request-starting (#146).

9 years agoAdded manual tests for HSTS uri change in iFrame (#146).
Daniel Carl [Thu, 27 Nov 2014 21:57:27 +0000 (22:57 +0100)]
Added manual tests for HSTS uri change in iFrame (#146).