vimb.git
11 years agoSet default gtk3 style to disable borders (#40).
Daniel Carl [Mon, 1 Jul 2013 18:01:12 +0000 (20:01 +0200)]
Set default gtk3 style to disable borders (#40).

11 years agoAllow to enable/disable scrollbar to compile time.
Daniel Carl [Mon, 1 Jul 2013 17:39:18 +0000 (19:39 +0200)]
Allow to enable/disable scrollbar to compile time.

11 years agoMerge branch 'treeview-completion'
Daniel Carl [Mon, 1 Jul 2013 17:25:16 +0000 (19:25 +0200)]
Merge branch 'treeview-completion'

11 years agoFixed too small completion box if completion list is small (#39).
Daniel Carl [Sun, 30 Jun 2013 19:40:49 +0000 (21:40 +0200)]
Fixed too small completion box if completion list is small (#39).

If there where only few item in completion list, the completion list where
shrinked under the allow winheight/3 value (only gtk3). Now we set the min
content height of the scrollable window also if this should already fit.

11 years agoRemoved gtk_entry_set_inner_border for gtk3 build (#38).
Daniel Carl [Sun, 30 Jun 2013 17:35:24 +0000 (19:35 +0200)]
Removed gtk_entry_set_inner_border for gtk3 build (#38).

11 years agoFixed broken completion for long uri (#39).
Daniel Carl [Sat, 29 Jun 2013 21:01:34 +0000 (23:01 +0200)]
Fixed broken completion for long uri (#39).

If the completion reached a uri that where longer than 255 chars the
completion reduced to one possible item. The reason was the vb_echo* functions
that used only 255 chars to put into inputbox. If the uri was longer we
considered the current text and the text of completion item as different and
cleaned the completion and created a new list with the current text of 255
chars which normally matched only once.

The buffer size is now set to 512 for all internal used string buffer.

11 years agoFixed none set mode if a unknown command was run.
Daniel Carl [Sat, 29 Jun 2013 17:00:52 +0000 (19:00 +0200)]
Fixed none set mode if a unknown command was run.

If a wrong command was run from inputbox the error message appeared but vimb
kept in command mode so that the normal mode commands did not work. Now the
mode is set to normal mode if a command could not be found.

11 years agoSplit tree model creation from preparing the widget (#39).
Daniel Carl [Sat, 29 Jun 2013 16:15:48 +0000 (18:15 +0200)]
Split tree model creation from preparing the widget (#39).

11 years agoIf completion is started backwards mark the last item (#39).
Daniel Carl [Sat, 29 Jun 2013 15:46:31 +0000 (17:46 +0200)]
If completion is started backwards mark the last item (#39).

If the completion where started in reverse order by <shift-tab> the first item
was marked as active instead of the expected last one.

11 years agoRenamed update into move_cursor.
Daniel Carl [Sat, 29 Jun 2013 15:32:25 +0000 (17:32 +0200)]
Renamed update into move_cursor.

11 years agoFixed non highlighted completion item with gtk3 (#39).
Daniel Carl [Sat, 29 Jun 2013 14:55:11 +0000 (16:55 +0200)]
Fixed non highlighted completion item with gtk3 (#39).

11 years agoPut the completion tree view into scrolled window (#39).
Daniel Carl [Sat, 29 Jun 2013 13:34:09 +0000 (15:34 +0200)]
Put the completion tree view into scrolled window (#39).

11 years agoUse fixed height mode for tree view that's faster (#39).
Daniel Carl [Sat, 29 Jun 2013 12:56:40 +0000 (14:56 +0200)]
Use fixed height mode for tree view that's faster (#39).

11 years agoRemoved completion tree view widget from global scope (#39).
Daniel Carl [Sat, 29 Jun 2013 11:51:34 +0000 (13:51 +0200)]
Removed completion tree view widget from global scope (#39).

11 years agoRemoved direct reading of tree by select function.
Daniel Carl [Fri, 28 Jun 2013 23:06:11 +0000 (01:06 +0200)]
Removed direct reading of tree by select function.

This seems to be the better way to get the text of the current active
completion items instead of moving the cursor to the new item and that try to
get the text of it.

11 years agoUse TreeView to render the completions (#39).
Daniel Carl [Tue, 25 Jun 2013 17:36:07 +0000 (19:36 +0200)]
Use TreeView to render the completions (#39).

This seems to work, but there are some known issues with gtk3 at the moment.
- The tree view widget size could not be set, so that tree items could be
  hidden if there are to many of them in completion
- The active styles are not applied if used with gtk3
- The tree view shrinks to on single item and becomes unusable on some urls of
  the history - seems there are some char in them that break the tree view or
  the column renderer

Not that the configuration for max-completion-items was removed that could not
be applied to show the tree view.

11 years agoRevert "Don't bubble up click events for hints (#17)."
Daniel Carl [Tue, 25 Jun 2013 07:30:33 +0000 (09:30 +0200)]
Revert "Don't bubble up click events for hints (#17)."

This reverts commit 78bfdc4fdee1e84393f268da6ae4d1c24ef291ed.

This patch cause other none usable javascript triggered links. The previous
problem that should be fixed, does also occur if the links are clicked by
mouse so we should try to fix this issue in another place.

It seems that there is a problem if window.open() is triggered in the sites.

11 years agoChanged js2h.sh to also remove spaces around '!' char.
Daniel Carl [Tue, 25 Jun 2013 07:12:07 +0000 (09:12 +0200)]
Changed js2h.sh to also remove spaces around '!' char.

This makes the hints.js.h file 6 bytes smaller, what a gain.

11 years agoFixed wrong clean make target.
Daniel Carl [Tue, 25 Jun 2013 07:11:24 +0000 (09:11 +0200)]
Fixed wrong clean make target.

The file name for the hints.js.h was wrong.

11 years agoAdded @placeholder matching for hinting.
Daniel Carl [Sun, 23 Jun 2013 21:03:34 +0000 (23:03 +0200)]
Added @placeholder matching for hinting.

This allows to hint input elements with html5 placeholder attributes that
holds a dummy content for the input field.

11 years agoFixed wrong xpath syntax.
Daniel Carl [Sat, 22 Jun 2013 23:28:23 +0000 (01:28 +0200)]
Fixed wrong xpath syntax.

Moved the //a[@href] to the front of the xpath expressions in hope this
will speedup the hint processing a little. Also disallowed to hint
disabled or readonly input fields. Fixed wrong replacements of "$C" in xpath
expressions, which only relaces the first occurrence of the needle in the
xpath string.

11 years agoChanged typeof(var) === "undefined" to var === undefined.
Daniel Carl [Sat, 22 Jun 2013 22:08:17 +0000 (00:08 +0200)]
Changed typeof(var) === "undefined" to var === undefined.

This is a little shorter and easier to read.

11 years agoFixed none opening image hints without surrounding link.
Daniel Carl [Sat, 22 Jun 2013 16:51:24 +0000 (18:51 +0200)]
Fixed none opening image hints without surrounding link.

Image hints could not be opened if they where not within a link, because
clicking an image has no effect here. Now the image src is processed within
the c-layer to open it.

11 years agoDon't bubble up click events for hints (#17).
Daniel Carl [Sat, 22 Jun 2013 12:33:53 +0000 (14:33 +0200)]
Don't bubble up click events for hints (#17).

I don't know if this change could break hinting on other sites, but at the
moment this fixes some problems on pages that binds event listener to elements
that stop further processing of the click events.

11 years agoAdapted the libwebkit version in the dependencies.
Daniel Carl [Fri, 21 Jun 2013 22:25:24 +0000 (00:25 +0200)]
Adapted the libwebkit version in the dependencies.

11 years agoFixed missing line in manual page (#37).
Daniel Carl [Thu, 20 Jun 2013 15:59:01 +0000 (17:59 +0200)]
Fixed missing line in manual page (#37).

11 years agoFixed function name typo.
Daniel Carl [Tue, 18 Jun 2013 21:51:12 +0000 (23:51 +0200)]
Fixed function name typo.

Renamed util_buil_path to util_build_path.

11 years agoFixed none set mode of url is opened from inpubox.
Daniel Carl [Mon, 17 Jun 2013 21:01:54 +0000 (23:01 +0200)]
Fixed none set mode of url is opened from inpubox.

11 years agoAllow to set query string for hint commands.
Daniel Carl [Mon, 17 Jun 2013 19:28:06 +0000 (21:28 +0200)]
Allow to set query string for hint commands.

The feature to define only the prefix to be shown in the inputbox to show
which hinting mode is active, we now replace this by a static text in favor to
call the hinting command with a initial query like `:hint-link foo`.

11 years agoRevert "Removed vb_set_mode from the commands."
Daniel Carl [Mon, 17 Jun 2013 19:57:54 +0000 (21:57 +0200)]
Revert "Removed vb_set_mode from the commands."

This reverts commit 97a0fac8fba6fbb958ef3fe20a583f1913b4d1f9.

The setting of the mode, seems to be an essential part of the commands. For
example are some of the commands also used internally and should therefore
also set the right mode after execution. For example the feedback for yanked
uri by hinting where not shown, because after printing the message the hinting
machanism sill observed the inputbox for changed and started hintmode again
which cleared the yank feedback. The same was also seen on ';s' hint-save
command.

11 years agoMade hinting case insensitive (#35).
Daniel Carl [Sat, 15 Jun 2013 22:33:19 +0000 (00:33 +0200)]
Made hinting case insensitive (#35).

11 years agoFixed no more working counts for key commands.
Daniel Carl [Fri, 14 Jun 2013 08:13:06 +0000 (10:13 +0200)]
Fixed no more working counts for key commands.

Another way to avoid access to destroyed widget. Don't destroy the widgets
explicitly, this makes the gtk for us.

11 years agoRemoved vb_set_mode from the commands.
Daniel Carl [Fri, 14 Jun 2013 07:26:45 +0000 (09:26 +0200)]
Removed vb_set_mode from the commands.

This mode switching is only used if the commands are called from inputbox most
of the time and not if called via keybindings. So we can skip the function
calls for keybinds and do it in command_run_string instead.

11 years agoFixed missed g_free in command_run_string.
Daniel Carl [Fri, 14 Jun 2013 07:08:56 +0000 (09:08 +0200)]
Fixed missed g_free in command_run_string.

11 years agoDon't use string for command and params in keybinding.
Daniel Carl [Fri, 14 Jun 2013 00:32:04 +0000 (02:32 +0200)]
Don't use string for command and params in keybinding.

It wasn't a good approach to use string for the command and it's params to
call if a keybinding is used. Now we translate the command string and
parameters to the right command function and a prepared Arg parameter. This
will save system resources during runtime.

11 years agoChanged :?map commands to act like in vim.
Daniel Carl [Thu, 13 Jun 2013 21:56:16 +0000 (23:56 +0200)]
Changed :?map commands to act like in vim.

If a key sequence is added that already where bound to a command, the previous
keybinding will be removed before the new keybinding is created.

11 years agoMoved content of destroy client function to destroy_window_cb (#34).
Daniel Carl [Thu, 13 Jun 2013 11:26:44 +0000 (13:26 +0200)]
Moved content of destroy client function to destroy_window_cb (#34).

11 years agoFixed errors on :quit called by kebinding (#34).
Daniel Carl [Thu, 13 Jun 2013 11:18:21 +0000 (13:18 +0200)]
Fixed errors on :quit called by kebinding (#34).

If vimb was quit by keybinding, we tried to update the status bar after the
widgets where destroyed that lead to errors.

11 years agoFixed leaving input mode on load commit (#33).
Daniel Carl [Wed, 12 Jun 2013 22:13:43 +0000 (00:13 +0200)]
Fixed leaving input mode on load commit (#33).

If a page was loaded and text was typed into the inputbox, the input
mode was left on WEBKIT_LOAD_COMMITED. Now we keep in insert mode also if
the page loads to allow to type in a command into inputbox.

Moved modkey unset to keybind.c where the modkeys are set.

11 years agoAdded macro GET_URI() to shorten the code.
Daniel Carl [Mon, 10 Jun 2013 20:59:08 +0000 (22:59 +0200)]
Added macro GET_URI() to shorten the code.

11 years agoAdded new command :shellcmd to run shell commands (#25).
Daniel Carl [Mon, 10 Jun 2013 20:52:47 +0000 (22:52 +0200)]
Added new command :shellcmd to run shell commands (#25).

This is the first test for this way of working with vimb. There might be
security issues related to this and we should check if the uri is always
proper escaped.

11 years agoBumped to version 0.1.8.
Daniel Carl [Sun, 9 Jun 2013 16:14:43 +0000 (18:14 +0200)]
Bumped to version 0.1.8.

Thanks to foobar142 who spend time to figuring out many issues and initiates
some new useful features.

11 years agoAdded hinting mode to download links (#32).
Daniel Carl [Fri, 7 Jun 2013 22:49:45 +0000 (00:49 +0200)]
Added hinting mode to download links (#32).

There is now a new hinting mode and command :hint-save to download the hinted
links into the configured download directory. This hinting is bound to the
keybinding ';s'.

Also the enums out of the command.c file where moved into the command.h file,
because they would be possible needed from other components that call commands
directly and not from their string representation.

11 years agoAdded command to download current page to given path (#32).
Daniel Carl [Fri, 7 Jun 2013 21:51:37 +0000 (23:51 +0200)]
Added command to download current page to given path (#32).

11 years agoFixed wrong order of history items.
Daniel Carl [Wed, 5 Jun 2013 22:35:53 +0000 (00:35 +0200)]
Fixed wrong order of history items.

The order of the history items available by '/<up>' or ':<up>' was
wrong, the first items should be the latest added command and not the
oldest one.

This patch fixes also wrong ordering of history entries in the files in case
when the number of items in the files is higher than the configured maximum
history items.

11 years agoSimplified the make target 'clean'.
Daniel Carl [Tue, 4 Jun 2013 21:35:38 +0000 (23:35 +0200)]
Simplified the make target 'clean'.

11 years agoFixed keybinding issue with irrelevant modifiers (#6).
Daniel Carl [Tue, 4 Jun 2013 20:57:11 +0000 (22:57 +0200)]
Fixed keybinding issue with irrelevant modifiers (#6).

There are some keys for that some of the modifiers don't matter, for example
is it irrelevant for ';' if it's shifted or not. These irrelevant modifiers
are removed before the keybindings are searched.

11 years agoFixed reordering of history if the browser instance is closed (#31).
Daniel Carl [Sun, 2 Jun 2013 17:07:03 +0000 (19:07 +0200)]
Fixed reordering of history if the browser instance is closed (#31).

11 years agoFixed wrong sorting of url history entries (#31).
Daniel Carl [Sun, 2 Jun 2013 16:58:26 +0000 (18:58 +0200)]
Fixed wrong sorting of url history entries (#31).

In opposition to the function comment the history list contained the latest
entries first.

11 years agoAdded descent command.
Daniel Carl [Sun, 2 Jun 2013 16:09:04 +0000 (18:09 +0200)]
Added descent command.

This command allows to open the parent directory of the current shown.

11 years agoFixed some none more working count for commands.
Daniel Carl [Sun, 2 Jun 2013 16:27:57 +0000 (18:27 +0200)]
Fixed some none more working count for commands.

11 years agoFixed regression in completion for counted commands.
Daniel Carl [Sun, 2 Jun 2013 16:18:41 +0000 (18:18 +0200)]
Fixed regression in completion for counted commands.

The commit d95b20c introduced a regression which made it impossible to
complete commands that have a count set for example `:3b<tab>`.

11 years agoSend language header with requests.
Daniel Carl [Sun, 2 Jun 2013 12:49:00 +0000 (14:49 +0200)]
Send language header with requests.

This will help the webserver to send this right content.

11 years agoMinor code improvements.
Daniel Carl [Sat, 1 Jun 2013 18:32:39 +0000 (20:32 +0200)]
Minor code improvements.

11 years agoChanged default kebinding for quit from 'q' to 'ctrl-q' (#16).
Daniel Carl [Sat, 1 Jun 2013 16:02:22 +0000 (18:02 +0200)]
Changed default kebinding for quit from 'q' to 'ctrl-q' (#16).

11 years agoAdded completion section to manual page (#27).
Daniel Carl [Sat, 1 Jun 2013 12:40:29 +0000 (14:40 +0200)]
Added completion section to manual page (#27).

11 years agoChanged search completion to match only prefixes (#27).
Daniel Carl [Sat, 1 Jun 2013 12:11:23 +0000 (14:11 +0200)]
Changed search completion to match only prefixes (#27).

11 years agoChanged completion of history an bookmarks (#27).
Daniel Carl [Fri, 31 May 2013 15:03:31 +0000 (17:03 +0200)]
Changed completion of history an bookmarks (#27).

Now we distinct between history completion and bookmark completion.

1. Bookmark completion is triggered by ':open !<tab>' to complete all
   bookmarks or by ':open !tag1 tag2' to complete only those bookmarks that
   have tags with the prefixes tag1 and tag2.
2. History completion is changed to split the search query at the space char
   and to search for all given words in the history. Only those history items
   are completed, that match all given words or tags.
3. Search completion works now also tag based like the url and bookmark
   completions.

11 years agoChanged comment style in hint.js.
Daniel Carl [Tue, 28 May 2013 21:47:30 +0000 (23:47 +0200)]
Changed comment style in hint.js.

The js2h.sh script can only handle singel line comments, else, parts of the
comment where compiled into vimb.

11 years agoFixed non working 'open in new window' from right click menu (#29).
Daniel Carl [Tue, 28 May 2013 20:59:09 +0000 (22:59 +0200)]
Fixed non working 'open in new window' from right click menu (#29).

I'm not happy with this implementation. At the moment I can see any other way
than creating a new webview and wait until it receives it's new URL and than
to destroy the webview to use the common logic to open a new instance of vimb.

11 years agoChanged the bookmark completion (#27).
Daniel Carl [Tue, 28 May 2013 19:31:45 +0000 (21:31 +0200)]
Changed the bookmark completion (#27).

If completion is started without any tags, all bookmarks without tags are
completed. If tags are given, only those bookmarks are matched that have all
given tags set.

11 years agoFixed wrong mode after calling empty command (#26).
Daniel Carl [Tue, 28 May 2013 18:21:56 +0000 (20:21 +0200)]
Fixed wrong mode after calling empty command (#26).

If ':' was called from inputbox, vimb kept in command mode so that the normal
mode commands and keybindings didn't work. This type of issue is already fixed
for empty ':set ' and ':run' commands too.

11 years agoFixed garbage file create on :quit (#22).
Daniel Carl [Tue, 28 May 2013 09:24:14 +0000 (11:24 +0200)]
Fixed garbage file create on :quit (#22).

On 64Bit systems there was created a garbage file with content 'quit', if the
browser was closed by command :quit in inputbox. This happend because the quit
command was run first and freed the command history file, after that the last
command was tried to be saved in history.

This patch moved the save of command in history before the call of the
command, this sounds a little unusual, but I think this is ok for this case.

11 years agoFixed function name typo.
Daniel Carl [Mon, 27 May 2013 19:12:50 +0000 (21:12 +0200)]
Fixed function name typo.

Also fixed error on completing url without any tags set.

11 years agoFixed issue with empty string in g_strsplit().
Daniel Carl [Mon, 27 May 2013 18:50:29 +0000 (20:50 +0200)]
Fixed issue with empty string in g_strsplit().

11 years agoAllow about:* urls (#20).
Daniel Carl [Mon, 27 May 2013 18:20:34 +0000 (20:20 +0200)]
Allow about:* urls (#20).

This was added to have an empty start page. So if the setting 'home-page' is
set to empty ':set home-page=' there is the home-page set to 'about:blank'.

11 years agoFixed segfault in :shortcut-add without parameters (#23).
Daniel Carl [Mon, 27 May 2013 17:45:02 +0000 (19:45 +0200)]
Fixed segfault in :shortcut-add without parameters (#23).

11 years agoFixed segfault and glib errors (#23).
Daniel Carl [Mon, 27 May 2013 17:24:36 +0000 (19:24 +0200)]
Fixed segfault and glib errors (#23).

11 years agoFixed wrong quote in js2h.sh file (#18).
Daniel Carl [Mon, 27 May 2013 12:28:49 +0000 (14:28 +0200)]
Fixed wrong quote in js2h.sh file (#18).

11 years agoFixed missed linking to libm (#18).
Daniel Carl [Mon, 27 May 2013 12:15:04 +0000 (14:15 +0200)]
Fixed missed linking to libm (#18).

11 years agoFixed segfault on leaving the editor.
Daniel Carl [Mon, 20 May 2013 13:27:15 +0000 (15:27 +0200)]
Fixed segfault on leaving the editor.

11 years agoBrought editor command and resume function back together.
Daniel Carl [Mon, 20 May 2013 12:54:40 +0000 (14:54 +0200)]
Brought editor command and resume function back together.

11 years agoRemoved useless string duplication in main().
Daniel Carl [Mon, 13 May 2013 17:21:27 +0000 (19:21 +0200)]
Removed useless string duplication in main().

11 years agoRemoved short commands for hinting.
Daniel Carl [Mon, 13 May 2013 16:53:45 +0000 (18:53 +0200)]
Removed short commands for hinting.

Added manual entries for the new short commands.

11 years agoAllow to complete also command shortcuts.
Daniel Carl [Mon, 13 May 2013 11:21:24 +0000 (13:21 +0200)]
Allow to complete also command shortcuts.

This isn't as flexible as it could be, but for the first this is enough to
complete the hardwired command shortcuts.

11 years agoAdded short aliases for commands.
Daniel Carl [Sun, 12 May 2013 20:19:58 +0000 (22:19 +0200)]
Added short aliases for commands.

11 years agoRemoved typedefs from command.h file.
Daniel Carl [Sun, 12 May 2013 19:31:56 +0000 (21:31 +0200)]
Removed typedefs from command.h file.

These definitions where used only local, so there is no need to make them
public via header file.

11 years agoRemoved commands to step thought hints or completions.
Daniel Carl [Sat, 11 May 2013 12:55:52 +0000 (14:55 +0200)]
Removed commands to step thought hints or completions.

Hint focussing and completion stepping are both done in command mode. So we
can't assign the same keybindings for both commands to the same keybinding.
Using only one command allows us to check the browsers submode to do the right
action.

11 years agoRemoved obsolete section with hint mode keymap.
Daniel Carl [Thu, 9 May 2013 12:43:02 +0000 (14:43 +0200)]
Removed obsolete section with hint mode keymap.

The hint mode is no own main mode anymore.

11 years agoFixed typo in manual page.
Daniel Carl [Thu, 9 May 2013 12:06:32 +0000 (14:06 +0200)]
Fixed typo in manual page.

11 years agoSimplified the shortcut system.
Daniel Carl [Sun, 5 May 2013 11:58:31 +0000 (13:58 +0200)]
Simplified the shortcut system.

Don't treat the $0 with a special meaning to be filled by the whole query
string. Instead split the query string into as many parts like the highest
available placeholder + 1. That means if only $0 is used in a shortcut this
will also be replaced by the whole query string, but it could also be only the
first parameter in the case when the shortcut contains also other
placeholders.

11 years agoReleased vimb version 0.1.7.
Daniel Carl [Sat, 4 May 2013 11:44:26 +0000 (13:44 +0200)]
Released vimb version 0.1.7.

11 years agoFixed wrong keybinding in man page.
Daniel Carl [Wed, 1 May 2013 21:03:07 +0000 (23:03 +0200)]
Fixed wrong keybinding in man page.

11 years agoCheck also for shortcut URIs if path contains '.'.
Daniel Carl [Wed, 1 May 2013 09:54:09 +0000 (11:54 +0200)]
Check also for shortcut URIs if path contains '.'.

The shortcut URIs where only checked if the given path variable contained no
dot. This made it impossible to easily search via shortcut URI for params like
'document.activeElement'. This patch lookup the shortcut URIs also if the
given path contains spaces, to avoid this misbehaviour.

11 years agoAdd link to project page to the README.md.
Daniel Carl [Tue, 30 Apr 2013 23:53:43 +0000 (01:53 +0200)]
Add link to project page to the README.md.

11 years agoAllow multiple placeholder in shortcuts.
Daniel Carl [Sun, 28 Apr 2013 12:35:27 +0000 (14:35 +0200)]
Allow multiple placeholder in shortcuts.

The single previous %s placeholder for url shortcuts is now removed by
placeholders $0-$9 that make vimb browser more usable and the shortcut system
more flexible.

The $0 placeholder will be removed by all query parameter. So the previous
search engine feature can be build up with this new shortcut feature. For
example use 'dl=https://duckduckgo.com/lite/?q=$0' to define a shortcut for
the great duckduckgo search engine.

11 years agoSplit the shortcut uri lookup into two functions.
Daniel Carl [Sat, 27 Apr 2013 22:01:55 +0000 (00:01 +0200)]
Split the shortcut uri lookup into two functions.

This make the code easier to read and make the way to add different parameters
in the template.

11 years agoRenamed the shortcut handle to key.
Daniel Carl [Sat, 27 Apr 2013 21:32:43 +0000 (23:32 +0200)]
Renamed the shortcut handle to key.

This naming seems to be the better description for the internal usage.

11 years agoUse hashtable to store the uri shortcuts.
Daniel Carl [Sat, 27 Apr 2013 21:24:28 +0000 (23:24 +0200)]
Use hashtable to store the uri shortcuts.

This leds in easier code and faster shortcut lookup.

11 years agoFixed none cleared inputbox on mode change.
Daniel Carl [Sat, 27 Apr 2013 17:29:06 +0000 (19:29 +0200)]
Fixed none cleared inputbox on mode change.

If the mode where not really change but the function vb_set_mode() called with
flag clear input, the input was not cleared, because we skipped the part of
logic where the inputbox will be cleared.

11 years agoRenamed searchengine to shortcut.
Daniel Carl [Sat, 27 Apr 2013 16:06:56 +0000 (18:06 +0200)]
Renamed searchengine to shortcut.

The feature isn't only useful for searchengines but also in general for
structured urls. An if the placeholder will be optional, we can use this to
store also url quickmarks.

11 years agoMoved inputbox text decisions into main.c.
Daniel Carl [Wed, 24 Apr 2013 22:37:20 +0000 (00:37 +0200)]
Moved inputbox text decisions into main.c.

So we have the decision for completion types and history lookup types in a
central place.

11 years agoAdded completion for search-queries.
Daniel Carl [Sun, 21 Apr 2013 18:38:58 +0000 (20:38 +0200)]
Added completion for search-queries.

11 years agoDon't complete commands if there is already an submode set.
Daniel Carl [Sun, 21 Apr 2013 18:25:52 +0000 (20:25 +0200)]
Don't complete commands if there is already an submode set.

11 years agoReduced the modes.
Daniel Carl [Sun, 21 Apr 2013 17:04:30 +0000 (19:04 +0200)]
Reduced the modes.

According to the vim editor, the number of mode of vimb browser are reduced.
The previous search mode and hinting mode aren't implemented as main modes
with own keybindings, they are now submodes of the normal and command mode
instead. This allow to use the already defined keybindings also for the search
and hinting mode. For example it's possible to navigate in search mode, that
was not possible before.

The searching is now more like in vim, where all the navigation commands work
in search mode too. Also if the searching is aborted by hitting <esc> the
search query keeps memorized and could be continued by command search-{forward,
backward}.

11 years agoRemoved default download path.
Daniel Carl [Sun, 21 Apr 2013 13:10:16 +0000 (15:10 +0200)]
Removed default download path.

In multiuser environments it's not a good idea to save the downloads in the
widely readable /tmp directory. Now the users home directory will be used as
default download directory.

11 years agoDisabling WebKit deletion interface feature by default.
Daniel Carl [Sat, 20 Apr 2013 15:31:46 +0000 (17:31 +0200)]
Disabling WebKit deletion interface feature by default.

11 years agoFixed scrolling over the end of the page.
Daniel Carl [Sat, 20 Apr 2013 14:56:40 +0000 (16:56 +0200)]
Fixed scrolling over the end of the page.

If the scrolling reached the end of the page, further scrolling set higher
adjustments. If the user scrolled to top, this didn't take effect immediately.

11 years agoAdded rounding to the percent of page in status bar.
Daniel Carl [Sat, 20 Apr 2013 14:25:26 +0000 (16:25 +0200)]
Added rounding to the percent of page in status bar.

If the user scrolled to 1% of the page there was 0% shown and with 50G vimb
browser showed 49% in status bar. This patch adapts the rounding of the values
in the status bar so that they fit to the done scrolling.

11 years agoDon't allow third party cookies.
Daniel Carl [Sun, 14 Apr 2013 20:55:28 +0000 (22:55 +0200)]
Don't allow third party cookies.