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.
Daniel Carl [Tue, 30 Jul 2013 20:54:49 +0000 (22:54 +0200)]
Added queue feature to README.
Daniel Carl [Tue, 30 Jul 2013 20:49:51 +0000 (22:49 +0200)]
Fixed wrong bookmark lookup.
If the completion for bookmarks was started with given tags, there where also
items displayed that have no tags set. This patch fixes the regression so that
only those bookmarks are shown thats tags match the request, all other
bookmarks can only be seen when the completion is started without tags like
':open !<tab>'.
Daniel Carl [Tue, 30 Jul 2013 20:03:24 +0000 (22:03 +0200)]
Added new hinting mode to put links into queue.
Also added new default keybinding to open oldest queued item in current window
'ctrl-p'.
Daniel Carl [Tue, 30 Jul 2013 19:33:43 +0000 (21:33 +0200)]
Added queue commands :push and :pop.
Daniel Carl [Tue, 30 Jul 2013 16:29:24 +0000 (18:29 +0200)]
Moved configuration for the shell command to config.def.h.
Daniel Carl [Tue, 30 Jul 2013 12:55:39 +0000 (14:55 +0200)]
Updated README file.
Daniel Carl [Mon, 29 Jul 2013 18:43:41 +0000 (20:43 +0200)]
Use PROJECT variable instead of hard wired "vimb".
Daniel Carl [Mon, 29 Jul 2013 18:17:30 +0000 (20:17 +0200)]
Moved config for default window size to config.def.h.
Increased the default windo size to 800x600.
Daniel Carl [Mon, 29 Jul 2013 17:31:06 +0000 (19:31 +0200)]
Fixed wrong free function in history processing.
Also moved freeing to the caller.
Daniel Carl [Mon, 29 Jul 2013 16:40:02 +0000 (18:40 +0200)]
Put similar target in Makefile together.
Added LDFLAG -s to strip symbol table to build smaller binary.
Daniel Carl [Mon, 29 Jul 2013 16:01:09 +0000 (18:01 +0200)]
Simplified Makefile by merging CPPFLAGS into CFLAGS.
Daniel Carl [Mon, 29 Jul 2013 15:42:33 +0000 (17:42 +0200)]
Removed -Wstrict-prototypes option that won't work with gtk.
Daniel Carl [Mon, 29 Jul 2013 15:09:42 +0000 (17:09 +0200)]
Removed nearly empty makefile for manual page.
Daniel Carl [Mon, 29 Jul 2013 14:00:03 +0000 (16:00 +0200)]
Removed vimb.1.txt to process manpage direct for install target.
Daniel Carl [Mon, 29 Jul 2013 13:43:41 +0000 (15:43 +0200)]
Don't put 'about:*' uri into history.
Daniel Carl [Mon, 29 Jul 2013 13:34:44 +0000 (15:34 +0200)]
Another history processing improvement.
Don't translate file lines into history or bookmarks structs, if we have
enough unique items in the processed list (history max items). So it's not
necessary to convert the lines and to remove them in a second step from the
list.
Daniel Carl [Mon, 29 Jul 2013 12:23:50 +0000 (14:23 +0200)]
Include config.h in every c file and include it first.
Daniel Carl [Sun, 28 Jul 2013 09:36:42 +0000 (11:36 +0200)]
Little history precessing improvement.
The history files and items list must be made unique so we generated a list
and removed old items that where equal to a new to insert item. This caused
some deletions in the GList that are not necessary. Now the file lines are
processed from the last to the first. That means, every new item (older item
in file) that is already is in the list can be discarded, because the latest
is already in the GList.
Daniel Carl [Sun, 28 Jul 2013 09:04:33 +0000 (11:04 +0200)]
Added comment about required feeing of return value.
Daniel Carl [Sat, 27 Jul 2013 10:24:17 +0000 (12:24 +0200)]
Don't pollute the global count for search query.
No there is a own count variable used for search, so that we don't print the
default 1 to the statubar, if the user hasn't requested this. By the way also
requested counts are reset if there was no item found.
Daniel Carl [Sat, 27 Jul 2013 09:15:13 +0000 (11:15 +0200)]
Don't overwrite users config.h if config.def.h is changed.
Daniel Carl [Sat, 27 Jul 2013 08:25:34 +0000 (10:25 +0200)]
Released version vimb version 0.1.9.
Daniel Carl [Fri, 26 Jul 2013 18:40:10 +0000 (20:40 +0200)]
Use titles of url history to filter completion list.
Daniel Carl [Fri, 26 Jul 2013 18:27:39 +0000 (20:27 +0200)]
Moved functions from util to history and bookmark.
Some of the functions where only used one time, so they where moved to the
place where they are used.
Daniel Carl [Thu, 25 Jul 2013 09:54:54 +0000 (11:54 +0200)]
Better search performance on large pages.
Don't highlight the matches every time we search for the next occurrence of
search string on page, it's neough to do it if the search is started.
Removed search related variables from global struct.
Daniel Carl [Thu, 25 Jul 2013 09:37:58 +0000 (11:37 +0200)]
Don't try to search multiple time for none found string.
Daniel Carl [Mon, 22 Jul 2013 17:38:18 +0000 (19:38 +0200)]
Allow to change input in history lookup.
In previous version it does not work to lookup commands like ':r<up>' and
change the input after the history was initialized. This caused none working
lookup if the first attempt did not find any item. For example if ':foo<up>'
did not find any item and the user change the inputbox into ':o<up>' which
should match items, this retrieved also no item.
This patch fixes also none working lookup of set commands like ':set s<up>'.
Daniel Carl [Mon, 22 Jul 2013 15:23:17 +0000 (17:23 +0200)]
Don't handle command and :open history different.
The stepping through history via <up> and <down> keys generated different
items for ':open<up>' and ':open <up>'. The reason for this was that we looked
up the history file to get the item, ':open<up>' entries where collected from
command history file where also none url entries are available (like call with
shortcuts).
Now the history lookup does not distinguish between commands and urls and
follows the inspiring example of vim, where ':e <up>' also lists none
processed values like ':e %'.
Daniel Carl [Thu, 18 Jul 2013 18:02:53 +0000 (20:02 +0200)]
Merge branch 'history-titles'
Daniel Carl [Thu, 18 Jul 2013 17:46:31 +0000 (19:46 +0200)]
Use css -webkit-transform:translate to position hint labels.
Daniel Carl [Thu, 18 Jul 2013 07:53:38 +0000 (09:53 +0200)]
Disabled the gtk progressbar feature per default like before.
Daniel Carl [Thu, 18 Jul 2013 07:51:03 +0000 (09:51 +0200)]
Added another pre-compiler flag to enable announcement.
This makes it easier to remove the announcement via sed script or other
automated scripts.
Daniel Carl [Thu, 18 Jul 2013 00:22:07 +0000 (02:22 +0200)]
Moved feature config from config.mk to config.def.h.
Daniel Carl [Thu, 18 Jul 2013 00:11:40 +0000 (02:11 +0200)]
Added announcement for change history file format.
Daniel Carl [Thu, 18 Jul 2013 00:01:17 +0000 (02:01 +0200)]
Replaced the confg.h by config.def.h file.
Daniel Carl [Wed, 17 Jul 2013 22:23:35 +0000 (00:23 +0200)]
Moved default config from config.h to own file.
This make the inclusion if the config.h file easier.
Daniel Carl [Wed, 17 Jul 2013 09:29:21 +0000 (11:29 +0200)]
Show new value for togged ":set strict-ssl!" too.
Daniel Carl [Tue, 16 Jul 2013 22:06:52 +0000 (00:06 +0200)]
Added change bookmark file format to README.
Daniel Carl [Tue, 16 Jul 2013 21:11:59 +0000 (23:11 +0200)]
Allow to enable/disable title in completions on compile time.
Daniel Carl [Tue, 16 Jul 2013 20:53:53 +0000 (22:53 +0200)]
Reapplied sorting of completion entries.
Daniel Carl [Tue, 16 Jul 2013 15:28:27 +0000 (17:28 +0200)]
Show page title in history and bookmark completion (#46).
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.
Daniel Carl [Sun, 14 Jul 2013 22:26:27 +0000 (00:26 +0200)]
Avoid glist to transfer completion data to the completion.c.
The completion asked the required components to spit out the list of
completion items to make a GtkListStore model and fill it with the data and to
free the list. Now we let the component like history, bookmark or setting fill
in the completion items self, which avoids unneeded list preparation and
memory allocation.
Daniel Carl [Sun, 14 Jul 2013 20:47:35 +0000 (22:47 +0200)]
Save page title also in bookmark file (#46).
Daniel Carl [Sun, 14 Jul 2013 19:56:41 +0000 (21:56 +0200)]
Save also page title in history file (#46).
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.
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.
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.
Daniel Carl [Fri, 12 Jul 2013 21:57:46 +0000 (23:57 +0200)]
Removed accidentally duplicated function in hints.js.
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
}
Daniel Carl [Mon, 8 Jul 2013 20:31:56 +0000 (22:31 +0200)]
Added gtk progressbar for those who like this.
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.
Daniel Carl [Mon, 8 Jul 2013 17:32:01 +0000 (19:32 +0200)]
Give feedback if page is added to bookmarks.
Daniel Carl [Mon, 8 Jul 2013 17:17:14 +0000 (19:17 +0200)]
Added mailing list to README.
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'.
Daniel Carl [Sat, 6 Jul 2013 23:22:23 +0000 (01:22 +0200)]
Added new selection search keybinds to manual page.
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.
Daniel Carl [Sat, 6 Jul 2013 20:00:06 +0000 (22:00 +0200)]
Added configuration for 'enable-*-of-insecure-content' (#44).
Daniel Carl [Sat, 6 Jul 2013 19:34:57 +0000 (21:34 +0200)]
Freezes the VbHint object to prevent changes.
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.
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.
Daniel Carl [Tue, 2 Jul 2013 21:27:56 +0000 (23:27 +0200)]
Use only single hint instance per page.
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.
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.
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.
Daniel Carl [Mon, 1 Jul 2013 18:12:33 +0000 (20:12 +0200)]
Remove the ugly resize grips in gtk3.
Daniel Carl [Mon, 1 Jul 2013 18:01:12 +0000 (20:01 +0200)]
Set default gtk3 style to disable borders (#40).
Daniel Carl [Mon, 1 Jul 2013 17:39:18 +0000 (19:39 +0200)]
Allow to enable/disable scrollbar to compile time.
Daniel Carl [Mon, 1 Jul 2013 17:25:16 +0000 (19:25 +0200)]
Merge branch 'treeview-completion'
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.
Daniel Carl [Sun, 30 Jun 2013 17:35:24 +0000 (19:35 +0200)]
Removed gtk_entry_set_inner_border for gtk3 build (#38).
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.
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.
Daniel Carl [Sat, 29 Jun 2013 16:15:48 +0000 (18:15 +0200)]
Split tree model creation from preparing the widget (#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.
Daniel Carl [Sat, 29 Jun 2013 15:32:25 +0000 (17:32 +0200)]
Renamed update into move_cursor.
Daniel Carl [Sat, 29 Jun 2013 14:55:11 +0000 (16:55 +0200)]
Fixed non highlighted completion item with gtk3 (#39).
Daniel Carl [Sat, 29 Jun 2013 13:34:09 +0000 (15:34 +0200)]
Put the completion tree view into scrolled window (#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).
Daniel Carl [Sat, 29 Jun 2013 11:51:34 +0000 (13:51 +0200)]
Removed completion tree view widget from global scope (#39).
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.
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.
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.
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.
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.
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.
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.