Daniel Carl [Wed, 1 Jun 2016 21:12:39 +0000 (23:12 +0200)]
Update license year.
NotSpooky [Thu, 26 May 2016 14:16:51 +0000 (08:16 -0600)]
Fix typo
Daniel Carl [Fri, 15 Apr 2016 11:10:01 +0000 (13:10 +0200)]
Do ssl check also when the load failed #281.
In case strict-ssl where enabled the load commited with our logic to check for
certificate errors was not called.
So the check is also done when the load failed, to show the state in case the
page could not be loaded because of an untrusted certificate.
Daniel Carl [Fri, 15 Apr 2016 11:08:29 +0000 (13:08 +0200)]
Write soup cache to disk after each page load.
This allows new instances of vimb to pickup latest cache entries.
Frederic Cambus [Mon, 11 Apr 2016 10:03:16 +0000 (12:03 +0200)]
Add URI to the OpenBSD Port in README
Yutao Yuan [Mon, 28 Mar 2016 11:11:19 +0000 (19:11 +0800)]
Use the beginning position of links for hinting
Daniel Carl [Wed, 24 Feb 2016 09:54:05 +0000 (10:54 +0100)]
Add license info to --version output.
Daniel Carl [Sat, 30 Jan 2016 22:27:29 +0000 (23:27 +0100)]
Update the URI to the NetBSD port.
Daniel Carl [Sun, 24 Jan 2016 19:03:15 +0000 (20:03 +0100)]
Fixed wrong path for the sockets.
Daniel Carl [Wed, 6 Jan 2016 09:43:16 +0000 (10:43 +0100)]
Remove element transitions for hinted elements.
Daniel Carl [Thu, 17 Dec 2015 18:17:46 +0000 (19:17 +0100)]
Released version 2.11.
Yutao Yuan [Thu, 26 Nov 2015 04:28:36 +0000 (12:28 +0800)]
Added closed-max-items option
Daniel Carl [Sun, 22 Nov 2015 21:30:05 +0000 (22:30 +0100)]
Use sorting for completion by default.
This makes the codes easeir to read, because the most completions should
be sorted.
Daniel Carl [Sun, 22 Nov 2015 21:17:25 +0000 (22:17 +0100)]
Show typed text as last completion entry (#253).
This patch adapts the vim behaviour. If you reach the end of the
possible completion items, the initial content is written to the
inputbox. This makes it easier to change the filter string to reduce the
completion by simply step right to the very last entry with <S-Tab>.
Daniel Carl [Tue, 17 Nov 2015 22:29:17 +0000 (23:29 +0100)]
Merge branch 'build-pre-flock' of https://github.com/plredmond/vimb.
PLR [Tue, 17 Nov 2015 18:42:06 +0000 (10:42 -0800)]
fix ignored `echo -n ..` by piping through `tr -d ..`
PLR [Tue, 17 Nov 2015 03:08:13 +0000 (19:08 -0800)]
fix conflict with /usr/include/MacTypes.h `Style` type
Daniel Carl [Sun, 1 Nov 2015 21:50:12 +0000 (22:50 +0100)]
Merge branch 'fix-file-locking'.
Daniel Carl [Sun, 25 Oct 2015 19:18:20 +0000 (20:18 +0100)]
Merge branch 'fix_typo' of https://github.com/shioyama/vimb
Chris Salzberg [Sun, 25 Oct 2015 01:16:38 +0000 (10:16 +0900)]
Fix small grammar typo.
Chris Salzberg [Thu, 22 Oct 2015 15:16:52 +0000 (00:16 +0900)]
Refactor WebKitWebFrame assignment
Chris Salzberg [Thu, 22 Oct 2015 15:05:31 +0000 (00:05 +0900)]
Install focus/blue callbacks when load finished
Daniel Carl [Wed, 21 Oct 2015 17:46:50 +0000 (19:46 +0200)]
Use flock instead of fcntl for file locking (#235).
Yutao Yuan [Mon, 12 Oct 2015 05:11:51 +0000 (13:11 +0800)]
Fixed file locking using fcntl.
Daniel Carl [Mon, 21 Sep 2015 18:20:29 +0000 (20:20 +0200)]
Allow to show profile name in url bar.
Daniel Carl [Mon, 21 Sep 2015 09:00:45 +0000 (11:00 +0200)]
Fixed none shown command error if used by :source command.
Also clear the input after successful sourcing of a file.
Daniel Carl [Mon, 21 Sep 2015 08:09:30 +0000 (10:09 +0200)]
Added path completion for :save command too.
Daniel Carl [Mon, 21 Sep 2015 08:00:56 +0000 (10:00 +0200)]
Added manual page section for :source command.
Yutao Yuan [Sun, 13 Sep 2015 16:41:22 +0000 (00:41 +0800)]
Add :source command
Daniel Carl [Sun, 23 Aug 2015 20:06:33 +0000 (22:06 +0200)]
Added ^ as normal mode alias of 0 (#236).
Use the ^ to scroll to the absolute left of the document like
pentadactyl does.
Daniel Carl [Sun, 23 Aug 2015 07:24:38 +0000 (09:24 +0200)]
Added manual test for contenteditable element (#237).
Jiri Marsicek [Sat, 22 Aug 2015 19:58:25 +0000 (21:58 +0200)]
Adds support for contenteditable attribute as input mode trigger
fanglingsu/vimb#237
Benjamin Petrenko [Sun, 2 Aug 2015 09:53:54 +0000 (12:53 +0300)]
Do not blur the focused element after alt-tabbing.
Jiri Marsicek [Wed, 29 Jul 2015 18:29:24 +0000 (20:29 +0200)]
Support for multiple configuration profiles (#129)
New parameter is introduced to allow multiple configuration profiles per
user.
If vimb is started with this parameter new configuration directory
is created under default configuration directory. Cache and socket file
are kept separate per profile as well.
If vimb is started without this parameter, behaviour is unchanged.
Resolves fanglingsu/vimb#129
Daniel Carl [Tue, 28 Jul 2015 06:16:34 +0000 (08:16 +0200)]
Fixed misplaced hint labels on some sites (#232).
Benjamin Petrenko [Mon, 20 Jul 2015 17:55:00 +0000 (20:55 +0300)]
give the focus to the text box after it's closed in an external editor
Benjamin Petrenko [Mon, 20 Jul 2015 11:48:33 +0000 (14:48 +0300)]
stop the focus from appearing to be on the input box after closing an external editor
Daniel Carl [Mon, 20 Jul 2015 10:54:26 +0000 (12:54 +0200)]
Removed function from public scope.
The function dom_auto_insert_unless_strict_focus was only used internal and
was really small, so the content was moved to the only placed where it was
called.
Also added a missed comment that might still be interesting.
Benjamin Petrenko [Mon, 20 Jul 2015 07:49:31 +0000 (10:49 +0300)]
give the focus to an iframe when needed
Benjamin Petrenko [Mon, 20 Jul 2015 07:08:02 +0000 (10:08 +0300)]
respect the strict-focus variable
Benjamin Petrenko [Sun, 19 Jul 2015 08:00:52 +0000 (11:00 +0300)]
Enter the input mode at the right time
Benjamin Petrenko [Sat, 18 Jul 2015 07:48:32 +0000 (10:48 +0300)]
ESC deselects
Benjamin Petrenko [Fri, 17 Jul 2015 13:45:53 +0000 (16:45 +0300)]
fix title after going back to a local file
Daniel Carl [Fri, 17 Jul 2015 12:16:19 +0000 (14:16 +0200)]
More consistent use of title and url (#224).
There where cases where the title and the shown current url did not match the
expectations. For example if a page is opened the right title and url where
shown.
In case a none existing page was opened and another none existing page was
opened the title was set to the failed url. But if the user went back in
history the last failed url was still shown as title.
Daniel Carl [Thu, 16 Jul 2015 21:13:50 +0000 (23:13 +0200)]
Fixed unset of current url on stop loading (#224).
If and url is loaded and the real url is already available in the webview the
provisional data sour seems to be not available anymore. This caused '(null)'
be shown in url bar in case a page loading was aborted by CTRL-C.
To fix this the provisional data source is used to get the current url as long
as it exists, else the webview's url is taken.
Daniel Carl [Thu, 16 Jul 2015 20:40:06 +0000 (22:40 +0200)]
Use provisional uri if page could not be loaded (#224).
In case an uri could not be loaded the uri of the webview is still the
previous one. That means the url shown in the url bar is not the user
requested and the 'O' command would also use the wrong url.
To fix this the provisional uri is used for the url bar as well as for the
autocmd call if the load of the uri failed.
Daniel Carl [Sat, 27 Jun 2015 17:50:37 +0000 (19:50 +0200)]
Fixed wrong order of blocks within ifeq-endif.
Dmitrij D. Czarkoff [Thu, 25 Jun 2015 20:27:47 +0000 (22:27 +0200)]
Wrong order of blocks within ifeq-endif
Dmitrij D. Czarkoff [Thu, 25 Jun 2015 20:06:48 +0000 (22:06 +0200)]
Replaced "-Wpedantic" with "-pedantic"
for compatibility with older GCC versions.
Dmitrij D. Czarkoff [Thu, 25 Jun 2015 10:43:24 +0000 (12:43 +0200)]
Made build process more user-friendly
Set CFLAGS that are not absolutely required with CFLAGS?=..., so that
user-defined CFLAGS take precedence. Made VERBOSE option that would toggle
between silent (previous) and verbose mode of CC directive processing.
Yutao Yuan [Sat, 20 Jun 2015 13:34:53 +0000 (21:34 +0800)]
Added hint-number-same-length option
Daniel Carl [Mon, 15 Jun 2015 13:44:26 +0000 (15:44 +0200)]
Fixed Makefile install target using -D.
Tanks to Leonardo Taccari for this patch. The -D option of install has a
different meaning in BSD, so we avoid it here.
Daniel Carl [Sat, 13 Jun 2015 15:29:55 +0000 (17:29 +0200)]
Released version 2.10.
Daniel Carl [Sat, 23 May 2015 19:03:17 +0000 (21:03 +0200)]
Merge branch 'master' of https://github.com/jasonwryan/vimb
Conflicts:
README.md
Jason Ryan [Fri, 22 May 2015 22:46:52 +0000 (10:46 +1200)]
Cleaned up typos and grammar in man page
Jason Ryan [Fri, 22 May 2015 21:50:45 +0000 (09:50 +1200)]
Grammar and formatting cleanup in README
Serge Hallyn [Sat, 9 May 2015 13:16:44 +0000 (08:16 -0500)]
README.md: config.h is under src/
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Daniel Carl [Mon, 27 Apr 2015 21:39:11 +0000 (23:39 +0200)]
Allow to focus editable element in iframes (#201).
This allows to use gi normal mode command to focus also editable element
within iframes in case the current document contains no editable element.
Daniel Carl [Mon, 27 Apr 2015 21:02:08 +0000 (23:02 +0200)]
Fixed regression of ignored strict focus in frames (#201).
Daniel Carl [Sun, 26 Apr 2015 21:30:36 +0000 (23:30 +0200)]
Check for dom focus/blur event on window object cleared (#201).
This allows us to track also focus changes within frames and iframes also if
they are loaded dynamically. The previous logic added the event listeners to
the document on WEBKIT_LOAD_FINISHED, but if there where later created iframes
in the dom, these where not observers for focus events.
This is only a first attempt to fix the focus issue and does break the logic
behind `set strict-focus=on`.
Sébastien Marie [Sun, 26 Apr 2015 10:39:44 +0000 (12:39 +0200)]
add HTML5 input type to dom_focus_input
Allow new HTML input type to be found by dom_focus_input as editable
field.
Reformat a little the xpath expression in order to have a lisible
string.
Close: #204
Daniel Carl [Thu, 23 Apr 2015 07:14:50 +0000 (09:14 +0200)]
Allow to use formfiller also for new html5 input types.
Daniel Carl [Wed, 22 Apr 2015 18:11:47 +0000 (20:11 +0200)]
Fixed trailing whitespace.
Sébastien Marie [Wed, 22 Apr 2015 04:27:59 +0000 (06:27 +0200)]
support html5 new input types
mark new input types as editable, according to the way of webkit handle
these.
Daniel Carl [Mon, 20 Apr 2015 20:35:18 +0000 (22:35 +0200)]
Set focus also on htm5 input type="search".
Allow to focus input type search on running normal mode command 'gi'.
Sébastien Marie [Mon, 20 Apr 2015 15:46:29 +0000 (17:46 +0200)]
enable input-mode on input.search element
HTML5 define a new input type="search":
http://www.w3.org/TR/html-markup/input.search.html
declare this element to be editable, in order to switch in input-mode
when use it.
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.
Daniel Carl [Sat, 18 Apr 2015 20:36:02 +0000 (22:36 +0200)]
Suppress redefinition warning caused by glib.
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.
Daniel Carl [Sun, 5 Apr 2015 21:43:49 +0000 (23:43 +0200)]
Fixed regression against 112-editable-focus.html test (#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.
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.
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.
Daniel Carl [Thu, 2 Apr 2015 20:37:39 +0000 (22:37 +0200)]
Use case insensitive xpath for focus input (#198).
Daniel Carl [Thu, 19 Mar 2015 20:45:12 +0000 (21:45 +0100)]
Adapted formfiller code style.
Artymort [Thu, 19 Mar 2015 13:29:36 +0000 (13:29 +0000)]
-z "$var" and not -z $var it would seem
Artymort [Thu, 19 Mar 2015 13:15:32 +0000 (13:15 +0000)]
Space between l and 7 + default value for $XDG...
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.
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.
Daniel Carl [Tue, 10 Mar 2015 20:56:58 +0000 (21:56 +0100)]
Added hint for bookmark file format (#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.
Daniel Carl [Mon, 9 Mar 2015 23:33:23 +0000 (00:33 +0100)]
Removed duplicate style override for GTK3.
Daniel Carl [Mon, 9 Mar 2015 21:01:56 +0000 (22:01 +0100)]
Restore alphabetical order of settings in man page.
Daniel Carl [Mon, 9 Mar 2015 20:55:01 +0000 (21:55 +0100)]
Fixed shown scrollbars on some sites (#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.
Daniel Carl [Sun, 8 Mar 2015 20:21:23 +0000 (21:21 +0100)]
Update man page for hint-follow-last setting (#186).
Micha Gorelick [Sun, 8 Mar 2015 17:05:22 +0000 (13:05 -0400)]
Added hint-follow-last option
Daniel Carl [Sun, 8 Mar 2015 20:04:51 +0000 (21:04 +0100)]
Added hint for install on ubuntu (#185).
Craig Roy [Fri, 27 Feb 2015 02:47:50 +0000 (02:47 +0000)]
Added <BS> to list of special characters in man page
Craig Roy [Fri, 27 Feb 2015 02:41:42 +0000 (02:41 +0000)]
Added backspace as a special character for mapping
Daniel Carl [Mon, 23 Feb 2015 23:08:56 +0000 (00:08 +0100)]
Remove example files also on uninstall.
Daniel Carl [Mon, 23 Feb 2015 22:40:11 +0000 (23:40 +0100)]
Install the sample scripts too.
Daniel Carl [Sat, 21 Feb 2015 22:02:08 +0000 (23:02 +0100)]
Merged code from mode.c into main.c
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.
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.
Daniel Carl [Fri, 13 Feb 2015 21:15:26 +0000 (22:15 +0100)]
Fixed the code style a little.
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
Daniel Carl [Fri, 13 Feb 2015 11:09:08 +0000 (12:09 +0100)]
Fixed code style.
Daniel Carl [Tue, 10 Feb 2015 22:44:25 +0000 (23:44 +0100)]
Use left justified text in man page.
Daniel Carl [Tue, 10 Feb 2015 21:26:44 +0000 (22:26 +0100)]
Removed unneeded micro seconds from timer.