vimb.git
11 years agoDon't show hint for invisible items (#19).
Daniel Carl [Tue, 16 Jul 2013 08:57:04 +0000 (10:57 +0200)]
Don't show hint for invisible items (#19).

Don't show those elements that have no height and width, and don't show
elements that lay behind other elements or within a none visible container.

11 years agoSort bookmark completion.
Daniel Carl [Fri, 12 Jul 2013 22:38:23 +0000 (00:38 +0200)]
Sort bookmark completion.

For the bookmarks the sorting by the occurrence in bookmark file makes no
sense and is sometimes irritating.

11 years agoAll to filter link hints also by the title or alt of image.
Daniel Carl [Fri, 12 Jul 2013 22:26:28 +0000 (00:26 +0200)]
All to filter link hints also by the title or alt of image.

Show the images title or alt attribute in hint label if the link contains no
text content.

11 years agoShow image title or alt in hint label.
Daniel Carl [Fri, 12 Jul 2013 21:48:38 +0000 (23:48 +0200)]
Show image title or alt in hint label.

This allow the user to filter the hints. The hints where already filtered by
the image title or alt attributes, but they aren't visible normally so this
made less sense. But now the title or alt attributes content is visible in
hinting mode.

11 years agoRemoved accidentally duplicated function in hints.js.
Daniel Carl [Fri, 12 Jul 2013 21:57:46 +0000 (23:57 +0200)]
Removed accidentally duplicated function in hints.js.

11 years agoRemoved runtime styling for hints (#40).
Daniel Carl [Thu, 11 Jul 2013 20:29:18 +0000 (22:29 +0200)]
Removed runtime styling for hints (#40).

There is no need to change the hints style properties during runtime. So this
settings are removed. But on the other side all hinted elements and hint label
have now classes to style them via user style. Following style is the default
used for the hints.

._hintLabel {
    position: absolute;
    z-index: 100000;
    font-family: monospace;
    font-weight: bold;
    font-size: 10px;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0px 1px;
    border: 1px solid #444;
    opacity: 0.7
}
._hintElem {
    background-color: #ff0 !important;
    color: #000 !important
}
._hintElem._hintFocus{
    background-color: #8f0 !important
}
._hintLabel._hintFocus{
    opacity: 1
}

11 years agoAdded gtk progressbar for those who like this.
Daniel Carl [Mon, 8 Jul 2013 20:31:56 +0000 (22:31 +0200)]
Added gtk progressbar for those who like this.

11 years agoAdded command 'bookmark-remove' or 'bmr'.
Daniel Carl [Mon, 8 Jul 2013 19:07:31 +0000 (21:07 +0200)]
Added command 'bookmark-remove' or 'bmr'.

This allows to remove bookmark for bookmark file.

11 years agoGive feedback if page is added to bookmarks.
Daniel Carl [Mon, 8 Jul 2013 17:32:01 +0000 (19:32 +0200)]
Give feedback if page is added to bookmarks.

11 years agoAdded mailing list to README.
Daniel Carl [Mon, 8 Jul 2013 17:17:14 +0000 (19:17 +0200)]
Added mailing list to README.

11 years agoRevert "Inject hinting js and user scripts on window-object-cleared."
Daniel Carl [Sat, 6 Jul 2013 23:37:13 +0000 (01:37 +0200)]
Revert "Inject hinting js and user scripts on window-object-cleared."

This reverts commit ca1bee0a48beb81c123e8222dd0a6e8f36f6a622.

The VbHint object was not always available an we got a 'Reference error'.

11 years agoAdded new selection search keybinds to manual page.
Daniel Carl [Sat, 6 Jul 2013 23:22:23 +0000 (01:22 +0200)]
Added new selection search keybinds to manual page.

11 years agoAdded command to search for current selected text.
Daniel Carl [Sat, 6 Jul 2013 21:31:57 +0000 (23:31 +0200)]
Added command to search for current selected text.

Commands 'search-selection-forward' and 'search-selection-backward' where
added to search for the text that was selected. The commands are bound to the
keys '*' and '#' like in vim editor.

11 years agoAdded configuration for 'enable-*-of-insecure-content' (#44).
Daniel Carl [Sat, 6 Jul 2013 20:00:06 +0000 (22:00 +0200)]
Added configuration for 'enable-*-of-insecure-content' (#44).

11 years agoFreezes the VbHint object to prevent changes.
Daniel Carl [Sat, 6 Jul 2013 19:34:57 +0000 (21:34 +0200)]
Freezes the VbHint object to prevent changes.

11 years agoWrite completion content direct to inputbox (#38).
Daniel Carl [Thu, 4 Jul 2013 21:51:48 +0000 (23:51 +0200)]
Write completion content direct to inputbox (#38).

This prevent the cropping of completed content which leads to the new
generation of completion which in fact does only find a single item.

11 years agoInject hinting js and user scripts on window-object-cleared.
Daniel Carl [Thu, 4 Jul 2013 21:09:55 +0000 (23:09 +0200)]
Inject hinting js and user scripts on window-object-cleared.

This seems to be the better time to add our scripts.

11 years agoUse only single hint instance per page.
Daniel Carl [Tue, 2 Jul 2013 21:27:56 +0000 (23:27 +0200)]
Use only single hint instance per page.

11 years agoFixed wrong opened page from right click context menu (#41).
Daniel Carl [Tue, 2 Jul 2013 19:42:06 +0000 (21:42 +0200)]
Fixed wrong opened page from right click context menu (#41).

"Open Link in New Window" from the right click context menu opened the current
page and not the linked one.

11 years agoUse DESTDIR variable in install/uninstall make target (#42).
Daniel Carl [Tue, 2 Jul 2013 19:26:46 +0000 (21:26 +0200)]
Use DESTDIR variable in install/uninstall make target (#42).

This allows to easily install the browser into a own directory with
`make DESTDIR=/install/dir install`.

Also all internal used directory names are defined without the trailing
slashes.

11 years agoFixed search starting in wrong direction.
Daniel Carl [Mon, 1 Jul 2013 18:50:01 +0000 (20:50 +0200)]
Fixed search starting in wrong direction.

If the search started, the current search direction wasn't set but the
resulting direction was calculated upon this value. This leads the search to
start search with the last match found on the page.

11 years agoRemove the ugly resize grips in gtk3.
Daniel Carl [Mon, 1 Jul 2013 18:12:33 +0000 (20:12 +0200)]
Remove the ugly resize grips in gtk3.

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.