summaryrefslogtreecommitdiff
path: root/src/main.h
AgeCommit message (Collapse)Author
2014-03-03Use 'tls-database' instead of deprecated 'ssl-ca-file'.Daniel Carl
2014-02-17Use all options also for new spawned instances (#64).Daniel Carl
The --cmd option was not given to new vimb instance if a link was opened into a new window. This was not obvious and inconsistent compared to the other options.
2014-01-17Allow to compile with libsoup<2.42.2 (#49).Daniel Carl
2014-01-13Allow to toggle between two locations with '' (#57).Daniel Carl
2014-01-13Added m-{a-z} and '-{a-z} commands (#57).Daniel Carl
These commands allow to set or jump to marked place of the current opened page.
2014-01-12Moved JavaScript related function to own file.Daniel Carl
2014-01-11Change year in license block.Daniel Carl
2014-01-05Merge branch 'hinting-g-mode'Daniel Carl
Conflicts: src/hints.js
2013-12-27Fixed none marked active completion items with gtk3.Daniel Carl
2013-12-21Added extended hint modes g;X (#53).Daniel Carl
These hint modes are taken from pentadactyl and works like the other hint modes, accept that the hints are not cleared after a hint was fired using a numeric filter.
2013-11-04Hold current prompt chars.Daniel Carl
This allows to handle the command mode <C-U> command right and to not remove chars from prompts like ';o'.
2013-10-27Added new ]] and [[ commands.Daniel Carl
These commands allow to open next/previous page by regex pattern configured using new settings 'previouspattern' and 'nextpattern'.
2013-10-22Removed unused function.Daniel Carl
2013-10-22Show load progress in window title.Daniel Carl
This make it easier to see if the page is loaded event if its in a background tab.
2013-10-21Allow to set user defined http headers (#45).Daniel Carl
2013-10-15Fixed none applied completion active colors.Daniel Carl
2013-10-13Added strict-focus setting.Daniel Carl
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,
2013-10-06Allow utf8 for keybinds.Daniel Carl
Used some key processing stuff from vim.
2013-09-29Used typed input for completions.Daniel Carl
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>'.
2013-09-28Allow to configure the timeoutlen.Daniel Carl
Timeoutlen is the time in milliseconds that is waited for a key code or mapped key sequence to complete.
2013-09-28Added missed null byte to string.Daniel Carl
2013-09-28Removed nor more used count.Daniel Carl
2013-09-28Remove no more used enum and macros.Daniel Carl
2013-09-27Removed g commands from map.Daniel Carl
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.
2013-09-27Leave input mode if a form submit loads a page.Daniel Carl
Also remove the old vb_set_mode function that become obsolete.
2013-09-21Allow to bind also function keys.Daniel Carl
2013-09-20Changed the way keys are processed.Daniel Carl
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'.
2013-09-06Added completion for bookmark tags.Daniel Carl
This allows to get already used bookmark tags for new bookmarks ':bma <tab>' or ':bookmark-add <tab>'.
2013-08-14Cleaned code a little.Daniel Carl
Removed typedefs from header files where they are only used internal. Removed none used macros and changed all macro names to upper case.
2013-08-14Allow the inputbox to show multiple lines.Daniel Carl
2013-08-06Renamed the insert mode to input mode.Daniel Carl
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'.
2013-08-06Made pass through mode to a submode (#48).Daniel Carl
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.
2013-08-05Added command pass-through to switch to pass through mode.Daniel Carl
The pass-through mode allows to skip all keybindings accept of <esc> and <ctrl-c> in vimb to let the webview handle them.
2013-07-30Allow to switch off queue feature via config.h.Daniel Carl
2013-07-30Added queue commands :push and :pop.Daniel Carl
2013-07-25Better search performance on large pages.Daniel Carl
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.
2013-07-22Allow to change input in history lookup.Daniel Carl
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>'.
2013-07-18Moved feature config from config.mk to config.def.h.Daniel Carl
2013-07-11Removed runtime styling for hints (#40).Daniel Carl
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 }
2013-07-07Added command to search for current selected text.Daniel Carl
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.
2013-07-04Write completion content direct to inputbox (#38).Daniel Carl
This prevent the cropping of completed content which leads to the new generation of completion which in fact does only find a single item.
2013-06-29Fixed broken completion for long uri (#39).Daniel Carl
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.
2013-06-29Fixed non highlighted completion item with gtk3 (#39).Daniel Carl
2013-06-29Removed completion tree view widget from global scope (#39).Daniel Carl
2013-06-26Use TreeView to render the completions (#39).Daniel Carl
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.
2013-06-14Fixed no more working counts for key commands.Daniel Carl
Another way to avoid access to destroyed widget. Don't destroy the widgets explicitly, this makes the gtk for us.
2013-06-10Added macro GET_URI() to shorten the code.Daniel Carl
2013-06-08Added command to download current page to given path (#32).Daniel Carl
2013-04-25Moved inputbox text decisions into main.c.Daniel Carl
So we have the decision for completion types and history lookup types in a central place.
2013-04-21Reduced the modes.Daniel Carl
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}.