summaryrefslogtreecommitdiff
path: root/src/command.h
AgeCommit message (Collapse)Author
2018-10-25Add command_spawn_editor() and implement normal_view_source()Leonardo Taccari
- Add a command_spawn_editor() to asynchronously spawn editor - Adjust input_editor_formfiller() to use command_spawn_editor() - Add support to view the source of the current page via the editor (`gf' command).
2018-03-28Update license year.Daniel Carl
2017-05-26Update license year.Daniel Carl
2017-04-23fixes incsearch history handlingRobert Timm
Refactores parts of command_search() (closes #372) Fixes search using "/ register (type "/<enter>")
2016-06-01Update license year.Daniel Carl
2016-03-30Startup webkit2 branch from the scratch.Daniel Carl
2015-01-01Change year in license block.Daniel Carl
2014-05-31Added support for different yank registers.Daniel Carl
Allow to yank, and paste from different registers.
2014-01-11Change year in license block.Daniel Carl
2013-09-29Moved command_history to ex.cDaniel Carl
2013-09-28Simplified the command_search function.Daniel Carl
2013-09-28Removed nor more used count.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-08-06Added command focus-input and new keybinding 'g-i'.Daniel Carl
The new command and keybinding are use to focus the first editable element on the page and to switch vimb into insert mode.
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-08-05Added command queue-unshift.Daniel Carl
New command allows to push new uri to the beginning of read it later list.
2013-08-01Added new command :queue-clear.Daniel Carl
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-15Avoid glist to transfer completion data to the completion.c.Daniel Carl
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.
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-06-14Don't use string for command and params in keybinding.Daniel Carl
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.
2013-06-10Added new command :shellcmd to run shell commands (#25).Daniel Carl
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.
2013-06-08Added hinting mode to download links (#32).Daniel Carl
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.
2013-06-08Added command to download current page to given path (#32).Daniel Carl
2013-06-02Added descent command.Daniel Carl
This command allows to open the parent directory of the current shown.
2013-06-01Changed completion of history an bookmarks (#27).Daniel Carl
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.
2013-05-12Removed typedefs from command.h file.Daniel Carl
These definitions where used only local, so there is no need to make them public via header file.
2013-05-11Removed commands to step thought hints or completions.Daniel Carl
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.
2013-04-27Renamed searchengine to shortcut.Daniel Carl
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.
2013-04-14Added command to open input boxes or text areas with editor (#15).Daniel Carl
2013-04-08Added command to run javascript from input box.Daniel Carl
2013-04-07Removed command hash map from global scope.Daniel Carl
2013-04-06Added command to save current uri as bookmark (#4).Daniel Carl
2013-03-30Allow to run multiple command together.Daniel Carl
For example following will work :run set input-bg-normal=#000 | set input-fg-normal=#fff | 5pagedown.
2013-03-29Moved pointer * from type to the variables.Daniel Carl
2013-03-25Allow to set a default search engine.Daniel Carl
Added command searchengine-default to set the handle of the default search engine.
2013-03-22Revert to single instance per window.Daniel Carl
2013-03-18Changed function prefix from vp_ to vb_.Daniel Carl
2013-03-18Renamed the project from vimp to vimb.Daniel Carl
There is already a software calles vimp so I think it will be better to rename this little project.
2013-03-05Use some logic together for all windows.Daniel Carl
2013-02-22Added command to navigate in command history (#7).Daniel Carl
2013-02-17Added command and keybinds to zoom the page.Daniel Carl
2013-02-16Replaces the gchar -> char and gint -> int.Daniel Carl
2013-02-16Adapted the year in the license headers.Daniel Carl
2013-02-16Added a '_' before the include guards.Daniel Carl
This is not required, but seems to be the common practice.
2013-02-16Added search-engine support (#11).Daniel Carl
Added a command to add and remove search-engines and extended the open command to query the search-engine if the shortcut was found as first part of the open or tabopen command.
2013-02-13Allow to open the clipboard content as uri.Daniel Carl
There are two new keybindings to open the clipboards content in current window (p) and into a new window (P).
2013-02-10Set the mode after running a command in the command.Daniel Carl
This make the commands more flexible, because we don't need to set the mode after a command is called from somewhere else than the input box.
2013-02-07Allow searching in the page (#6).Daniel Carl
Extended the keybindings to also save parameters to the commands. This allows to map commands like 'input :foo' to a keybinding, which make the use more flexible.