Daniel Carl [Mon, 21 Oct 2013 17:23:52 +0000 (19:23 +0200)]
Removed the filtering for favicons.
This should be solved in webkit itself or in a generic way with soup session.
But at the moment it looks like this costs more cpu cycles instead of having a
noticeable benefit.
Daniel Carl [Mon, 21 Oct 2013 10:37:10 +0000 (12:37 +0200)]
Removed cookie policy setting.
This does not work without setting the first party url and needs much more
implementation to get it work. So we should do this later and make this
behaviour configurable for the user too.
Daniel Carl [Sun, 20 Oct 2013 12:25:31 +0000 (14:25 +0200)]
Merge branch 'new-key-handling'
Conflicts:
src/command.c
src/main.c
Daniel Carl [Sat, 19 Oct 2013 18:24:35 +0000 (20:24 +0200)]
Removed useless --dump-config option.
This allowed to print only those options, that where defined in default.h, but
this isn't the whole default config (lags the webkit settings) so it might not
be very useful. Maybe it will be readded later together with new ex command
:set all.
Daniel Carl [Sat, 19 Oct 2013 18:11:11 +0000 (20:11 +0200)]
Added noremap counterparts for the xmap commands.
Daniel Carl [Sat, 19 Oct 2013 16:23:25 +0000 (18:23 +0200)]
Remove old mapping if the lhs is mapped new.
Daniel Carl [Sat, 19 Oct 2013 16:02:38 +0000 (18:02 +0200)]
Added new ex command :hardcopy to open print dialog.
Daniel Carl [Sat, 19 Oct 2013 15:40:29 +0000 (17:40 +0200)]
Documented shot ex commands in manual page.
Remove the :source command from manual page, because this command does not
exist.
Daniel Carl [Sat, 19 Oct 2013 14:45:06 +0000 (16:45 +0200)]
Use SHOWCMD_LEN to be the number of chars without NULL byte.
Daniel Carl [Sat, 19 Oct 2013 14:44:37 +0000 (16:44 +0200)]
Moved key mapping and label mapping array together.
Daniel Carl [Sat, 19 Oct 2013 14:23:46 +0000 (16:23 +0200)]
Simplified CSI processing a little.
Daniel Carl [Tue, 15 Oct 2013 21:49:10 +0000 (23:49 +0200)]
Removed the git version stuff.
The git version could lead to cases where the version seems to be wrong, in
the case where no tags are pulled from upstream. So I decided to throw this
away. Bay the was the none posix sed command to convert project name to word
starting with upper case char, was replaces by a awk call.
Daniel Carl [Tue, 15 Oct 2013 20:56:07 +0000 (22:56 +0200)]
Changed CR key from 0x0a -> 0x0d like vim does.
Change order of key processing parts. Use fix keyvalue mapping before running
the gdk_keyval_to_unicode(). This should be a little faster and avoids bugs,
when compiled against the GTK3 libs, where the GDK_Return is handled by
gdk_keyval_to_unicode() which wasn't th fact with GDK2.
Daniel Carl [Tue, 15 Oct 2013 20:02:56 +0000 (22:02 +0200)]
Fixed none applied completion active colors.
Daniel Carl [Tue, 15 Oct 2013 19:33:48 +0000 (21:33 +0200)]
Moved ex command expansion to parsing.
By the way the expansion for '~/' to home dir was added.
Daniel Carl [Sun, 13 Oct 2013 19:44:02 +0000 (21:44 +0200)]
Released version 0.1.10.
Daniel Carl [Sun, 13 Oct 2013 19:06:04 +0000 (21:06 +0200)]
Added ':normal' command to run normal mode commands from input box.
This allows to run normal mode commands from input box, for example after
setting some options like ':set scripts!|no! R'.
Daniel Carl [Sun, 13 Oct 2013 18:52:02 +0000 (20:52 +0200)]
Allow to have commands with bang.
Daniel Carl [Sun, 13 Oct 2013 16:44:57 +0000 (18:44 +0200)]
Added strict-focus setting.
This allows to ignore possible focused form fields on pages that forces vimb
into input mode. If 'strict-focus' is on, vimb removes the focus from form
fields event if the page say that say should be focussed,
Daniel Carl [Sun, 13 Oct 2013 15:52:50 +0000 (17:52 +0200)]
Added CTRL-V to pass the next key without mapping.
Daniel Carl [Sat, 12 Oct 2013 23:41:30 +0000 (01:41 +0200)]
Use index of hints internal instead or number.
This fastens the hint processing a little and uses less code than searching
for the hint with a given number in the internals of the hinting javascript.
Daniel Carl [Sat, 12 Oct 2013 20:41:07 +0000 (22:41 +0200)]
Don't use GNU extension in sed script.
Simplified the rules to match only comments used in the hints scripts.
Daniel Carl [Sat, 12 Oct 2013 20:41:07 +0000 (22:41 +0200)]
Don't use GNU extension in sed script.
Simplified the rules to match only comments used in the hints scripts.
Daniel Carl [Sat, 12 Oct 2013 11:15:32 +0000 (13:15 +0200)]
Changed hinting visibility check.
Don't even check if the point in the center of the element is the element
itself, because this caused broken links to be not hintable, if the second
link line didn't reach the center of the above line. So now the element is
checked for the upper left corner too.
Daniel Carl [Sat, 12 Oct 2013 11:15:32 +0000 (13:15 +0200)]
Changed hinting visibility check.
Don't even check if the point in the center of the element is the element
itself, because this caused broken links to be not hintable, if the second
link line didn't reach the center of the above line. So now the element is
checked for the upper left corner too.
Daniel Carl [Mon, 7 Oct 2013 22:24:35 +0000 (00:24 +0200)]
Moved show command to normal.c.
We don't generate the show command for non bound mappings. This might save cpu
cycles. The show commands for the normal mode are set from the keypress
handler. So we can handle show commands like vim where an incomplete mapped
command like ':nmap foo 12g', where the '12g' should appear in show command as
incomplete command.
Now the show commands keys are displayed like in vim with <hex> for none
printable keys.
Daniel Carl [Sun, 6 Oct 2013 20:57:03 +0000 (22:57 +0200)]
Allow utf8 for keybinds.
Used some key processing stuff from vim.
Daniel Carl [Thu, 3 Oct 2013 18:50:51 +0000 (20:50 +0200)]
Removed mode_input_focusout callback.
This breaks the switching to input mode via hinting, because if the hints
caused entering the input mode we move the focus from inputbox, that called
the callback that forced switching to normal mode.
Daniel Carl [Thu, 3 Oct 2013 18:23:19 +0000 (20:23 +0200)]
Added include to ex.c.
<sys/wait.h> is needed for WIFEXITED and WEXITSTATUS macros.
Thanks Leonardo Taccari for this patch.
Daniel Carl [Thu, 3 Oct 2013 18:16:46 +0000 (20:16 +0200)]
Added missed include to compile on NetBSD.
<sys/wait.h> is needed for WIFEXITED and WEXITSTATUS macros.
Thanks Leonardo Taccari for this patch.
Daniel Carl [Thu, 3 Oct 2013 18:11:57 +0000 (20:11 +0200)]
Don't remove whitespace from lines in config file.
g_strstrip() removes leading and trailing whitespace from the lines in the
config file. This behaviour is not desiderable for lines that use the input
command.
Thanks Leonardo Taccari for this patch.
Daniel Carl [Mon, 30 Sep 2013 21:17:45 +0000 (23:17 +0200)]
Removed prefixes from some static functions.
Daniel Carl [Mon, 30 Sep 2013 21:12:50 +0000 (23:12 +0200)]
Moved stateful history processing to ex.c.
Daniel Carl [Mon, 30 Sep 2013 20:05:01 +0000 (22:05 +0200)]
Fixed non shown keys if keystroke where not ambiguous.
If a keybinding was used, that contained of multiple keys, but had no prefix
in common with another keybinding, the typed keys where not shown to the user.
Daniel Carl [Sat, 28 Sep 2013 23:24:06 +0000 (01:24 +0200)]
Don't observe input change in completion mode.
This patch prevents slow and unsmooth completions caused by logic that
observes the change content in the inputbox. This was the case mainly for the
search completion, every step in the completion list started a new search.
Daniel Carl [Sat, 28 Sep 2013 23:09:47 +0000 (01:09 +0200)]
Fixed wrong ex command code in completion.
Daniel Carl [Sat, 28 Sep 2013 23:02:54 +0000 (01:02 +0200)]
Used typed input for completions.
No the completion does not write the full command name into inputbox if the
command was found. Instead write the prefix like it was typed by the user like
in vim. That means if an abbreviated command is completed, the abbreviated
version is shown for example for ':o !<Tab>'.
Daniel Carl [Sat, 28 Sep 2013 22:26:24 +0000 (00:26 +0200)]
Moved command_history to ex.c
Daniel Carl [Sat, 28 Sep 2013 21:53:05 +0000 (23:53 +0200)]
Moved parts of completion logic to ex.c.
This change makes it easier to control the found matches and it allowed to
complete also abbreviated commands like ':o !tag'.
Daniel Carl [Sat, 28 Sep 2013 17:44:09 +0000 (19:44 +0200)]
Added missed freeing for vb_get_input_text in compltion.
Daniel Carl [Sat, 28 Sep 2013 17:05:43 +0000 (19:05 +0200)]
Don't built completion if there is only one item.
Instead we print the item direct to the inputbox instead.
Daniel Carl [Sat, 28 Sep 2013 15:33:41 +0000 (17:33 +0200)]
Fixed wrong display for ambiguous maps.
If there exist maps for 'a', 'aa' and 'aaa' the 'aaa' was displayed to the
user after the first typed 'a'.
Daniel Carl [Sat, 28 Sep 2013 15:24:28 +0000 (17:24 +0200)]
Allow to configure the timeoutlen.
Timeoutlen is the time in milliseconds that is waited for a key code or
mapped key sequence to complete.
Daniel Carl [Fri, 27 Sep 2013 23:22:07 +0000 (01:22 +0200)]
Simplified a function a little.
Daniel Carl [Fri, 27 Sep 2013 23:01:30 +0000 (01:01 +0200)]
Added missed null byte to string.
Daniel Carl [Fri, 27 Sep 2013 22:38:42 +0000 (00:38 +0200)]
Simplified the command_search function.
Daniel Carl [Fri, 27 Sep 2013 22:14:22 +0000 (00:14 +0200)]
Removed nor more used count.
Daniel Carl [Fri, 27 Sep 2013 22:01:09 +0000 (00:01 +0200)]
Remove no more used enum and macros.
Daniel Carl [Fri, 27 Sep 2013 21:51:28 +0000 (23:51 +0200)]
Don't allow to paste multline content from clipboard.
If the pasted contents leads to multiple input box lines, we remove everything
out of the buffer except of the first line.
Daniel Carl [Fri, 27 Sep 2013 21:04:34 +0000 (23:04 +0200)]
Removed g commands from map.
Is is easier to call the g commands like the other commands that needs
multiple chars instead of setting the 8th bit of the char.
Daniel Carl [Thu, 26 Sep 2013 23:57:22 +0000 (01:57 +0200)]
Fixed wrong mapped 'T' and 'O' commands.
Daniel Carl [Thu, 26 Sep 2013 23:54:23 +0000 (01:54 +0200)]
Removed announcement about changed history file format.
Daniel Carl [Thu, 26 Sep 2013 23:50:19 +0000 (01:50 +0200)]
Set mode according to current focused widget.
Daniel Carl [Thu, 26 Sep 2013 23:22:44 +0000 (01:22 +0200)]
Removed string length restriction of vb_echo functions.
Daniel Carl [Thu, 26 Sep 2013 23:08:21 +0000 (01:08 +0200)]
If possible use g_strconcat instead of g_strdup_printf.
Daniel Carl [Thu, 26 Sep 2013 22:57:33 +0000 (00:57 +0200)]
Leave input mode if a form submit loads a page.
Also remove the old vb_set_mode function that become obsolete.
Daniel Carl [Thu, 26 Sep 2013 22:30:47 +0000 (00:30 +0200)]
Added missed normal commands 'O' and 'T'.
Daniel Carl [Sun, 22 Sep 2013 16:59:59 +0000 (18:59 +0200)]
Adapted the README file.
Daniel Carl [Sun, 22 Sep 2013 16:53:10 +0000 (18:53 +0200)]
Adapted manual page to the new key handling.
Daniel Carl [Sat, 21 Sep 2013 20:36:00 +0000 (22:36 +0200)]
Show the last keys of keysequence in statusbar.
Daniel Carl [Sat, 21 Sep 2013 19:03:54 +0000 (21:03 +0200)]
Added cursor to default key bindings.
Removed those cursor keybindings that where introduced to fix an issue that
does not exist anymore.
Daniel Carl [Sat, 21 Sep 2013 17:04:25 +0000 (19:04 +0200)]
Removed all default webkit settings from default.h.
This makes the startup a little faster. By they way, a typo in a configuration
was fixed.
Daniel Carl [Sat, 21 Sep 2013 16:27:02 +0000 (18:27 +0200)]
Cleaned the code a little.
Remove already solved tasks and changed most of the *var == '\0' into !*var
expressions.
Daniel Carl [Sat, 21 Sep 2013 16:00:01 +0000 (18:00 +0200)]
Allow to run multiple ex commands.
Ex commands can be joined with | like following example:
:set scripts!|set plugins!
Or bound to a key sequence:
:nmap <C-F1> :set scripts<CR>:set plugins!<CR>:open !tag<Tab>
Daniel Carl [Fri, 20 Sep 2013 23:38:00 +0000 (01:38 +0200)]
Allow to bind also function keys.
Daniel Carl [Wed, 14 Aug 2013 18:15:06 +0000 (20:15 +0200)]
Changed the way keys are processed.
Until today vimb mapped two-part keybindings to commands. This patch changed
this paradigm into a more vi like way. The commands are separated into normal
mode commands that mainly consists of a single char and ex commands that can
by typed into the inputbox like ':open'. This change allows us to adapt also
the way keypresses and mapping are handled. Now every keypress is converted
into a unsigned char and collected into a typeahead queue. The mappings are
applied on the queue. So now we can use also long keymaps and run multiple
commands for different modes with them like ':nmap abcdef :set
scripts!<CR>:open search query<CR>50G'.
Daniel Carl [Fri, 6 Sep 2013 20:41:52 +0000 (22:41 +0200)]
Added completion for bookmark tags.
This allows to get already used bookmark tags for new bookmarks ':bma <tab>'
or ':bookmark-add <tab>'.
Daniel Carl [Tue, 27 Aug 2013 13:57:45 +0000 (15:57 +0200)]
Revert "Show if the proxy could not be set."
This reverts commit
87c48feca23acf755558ef8bb766eff3582a40da.
This causes irritating error messages on startup, because we have enabled
proxy by default. So every time a new window is opened we get the error
message that the proxy could not be set, because of a none set environment
variable. If the user adds 'set proxy=off' to his config file would not cause
vimb from throwing this error, because the default config is processed before
the users config and the error has already be thrown.
At the moment I think, this error message isn't required so we can remove it.
Daniel Carl [Fri, 23 Aug 2013 13:48:50 +0000 (15:48 +0200)]
Show if the proxy could not be set.
Daniel Carl [Fri, 23 Aug 2013 10:49:20 +0000 (12:49 +0200)]
Dirty fix for none working <cr> in hint mode.
We catch all return pressed to simulate the input activate callback, and stop
further processing of the key event. But the hinting uses it's own key event
callback that was never called if return was pressed.
Daniel Carl [Wed, 14 Aug 2013 12:14:04 +0000 (14:14 +0200)]
Cleaned code a little.
Removed typedefs from header files where they are only used internal.
Removed none used macros and changed all macro names to upper case.
Daniel Carl [Wed, 14 Aug 2013 11:44:52 +0000 (13:44 +0200)]
Observe input change events only in command mode.
Daniel Carl [Wed, 14 Aug 2013 11:18:31 +0000 (13:18 +0200)]
Adapt the function return type of callback.
Daniel Carl [Wed, 14 Aug 2013 06:50:13 +0000 (08:50 +0200)]
Allow to clear the inputbox on <esc> also if it's focused.
Daniel Carl [Tue, 13 Aug 2013 18:13:06 +0000 (20:13 +0200)]
Allow the inputbox to show multiple lines.
Daniel Carl [Tue, 6 Aug 2013 20:07:29 +0000 (22:07 +0200)]
Remove PROJECT placeholders from manual page.
Daniel Carl [Tue, 6 Aug 2013 19:24:28 +0000 (21:24 +0200)]
Renamed the insert mode to input mode.
This reflects better what we are doing and we used both terms in the manual
page which was confusing. So now the mode is called 'Input Mode'.
Daniel Carl [Tue, 6 Aug 2013 19:10:32 +0000 (21:10 +0200)]
Added new kebinding ctrl-z to manual page (#48).
Daniel Carl [Tue, 6 Aug 2013 19:05:47 +0000 (21:05 +0200)]
Made pass through mode to a submode (#48).
This allows to use pass through mode together with insert mode. There where
also some bugs around the vb_set_mode()'s handling for insert mode, that are
now fixed.
Daniel Carl [Tue, 6 Aug 2013 18:32:47 +0000 (20:32 +0200)]
Focus only visible items with 'focus-input' (#47).
Daniel Carl [Tue, 6 Aug 2013 14:38:11 +0000 (16:38 +0200)]
Fixed none cleared inputbox after hinting.
Daniel Carl [Mon, 5 Aug 2013 22:37:32 +0000 (00:37 +0200)]
Added command focus-input and new keybinding 'g-i'.
The new command and keybinding are use to focus the first editable element on
the page and to switch vimb into insert mode.
Daniel Carl [Mon, 5 Aug 2013 21:54:40 +0000 (23:54 +0200)]
Remove unneeded focus switching in inputbox_activate_cb.
I don't know why I've added this, but at the moment I can't find any reason or
use case where this might be required. Instead this make the ':input' command
called from inputbox hard to use, because the focus is removed from inputbox.
Daniel Carl [Mon, 5 Aug 2013 21:34:18 +0000 (23:34 +0200)]
Fixed non working hinting mode for ;o and ;t.
If the hint-input-* commands where used and the hinted elements where selected
by number, the input box was cleared immediately after it where filled,
because of the to late deactivation of hint mode in command_input.
Daniel Carl [Mon, 5 Aug 2013 19:10:30 +0000 (21:10 +0200)]
Added command pass-through to switch to pass through mode.
The pass-through mode allows to skip all keybindings accept of <esc> and
<ctrl-c> in vimb to let the webview handle them.
Daniel Carl [Mon, 5 Aug 2013 19:42:26 +0000 (21:42 +0200)]
Fixed none working keybindings with <ctrl-x> whene x is a modkey.
If a keybinding exists with a modekey 'x' no keybinding with 'x' and
additional modifiers worked.
Daniel Carl [Mon, 5 Aug 2013 17:43:55 +0000 (19:43 +0200)]
Added new hinting mode to hint element to the beginning of queue.
Daniel Carl [Mon, 5 Aug 2013 17:35:12 +0000 (19:35 +0200)]
Added command queue-unshift.
New command allows to push new uri to the beginning of read it later list.
Daniel Carl [Thu, 1 Aug 2013 18:29:35 +0000 (20:29 +0200)]
Added new command :queue-clear.
Daniel Carl [Thu, 1 Aug 2013 16:52:10 +0000 (18:52 +0200)]
Changed sort order in bookmark completion.
Now the latest added items of the bookmarks file are shown first, so it's
similar to the history completion.
Daniel Carl [Thu, 1 Aug 2013 16:22:49 +0000 (18:22 +0200)]
Renamed queue related commands.
For later commands and possible more commands for the queue the commands are
now prefixed with 'queue-'.
Daniel Carl [Wed, 31 Jul 2013 21:33:17 +0000 (23:33 +0200)]
Used lighter red inputbox background for errors.
Daniel Carl [Wed, 31 Jul 2013 20:56:07 +0000 (22:56 +0200)]
Added feedback about number of left queue items.
Daniel Carl [Wed, 31 Jul 2013 00:01:34 +0000 (02:01 +0200)]
Fixed duplicate history writing.
Daniel Carl [Tue, 30 Jul 2013 23:53:38 +0000 (01:53 +0200)]
Changed default duckduckgo searchenigne.
The html version, which works without JavaScript is lite enough and much more
comfortable to use than the lite version, and at the moment it feels also more
responsive to me.
Daniel Carl [Tue, 30 Jul 2013 23:43:35 +0000 (01:43 +0200)]
Show the version in the default window title.
Daniel Carl [Tue, 30 Jul 2013 23:32:10 +0000 (01:32 +0200)]
Use git describe to get a better version number.
Daniel Carl [Tue, 30 Jul 2013 23:12:09 +0000 (01:12 +0200)]
Fixed use of default config for possible none available feature.
Daniel Carl [Tue, 30 Jul 2013 21:39:18 +0000 (23:39 +0200)]
Fixed syntax error in manual page.
Daniel Carl [Tue, 30 Jul 2013 21:12:47 +0000 (23:12 +0200)]
Allow to switch off queue feature via config.h.