summaryrefslogtreecommitdiff
path: root/src/completion.c
AgeCommit message (Collapse)Author
2021-09-25Project branch offrafa_99
2018-05-08Set tree model direct to tree view.Daniel Carl
2018-05-07Moved completion_fill to settings.Daniel Carl
This function intensional should be used by other components. But there is only one component using this, so it's better to move this away.
2018-05-07Remove none used gui styling for completion.Daniel Carl
2018-03-28Update license year.Daniel Carl
2017-05-26Update license year.Daniel Carl
2017-04-27Fix some typos.Daniel Carl
2016-06-16Prepare the style provider only once.Daniel Carl
Added names for the main styled gui elements for easier styling via css.
2016-06-01Update license year.Daniel Carl
2016-03-30Startup webkit2 branch from the scratch.Daniel Carl
2015-11-22Use sorting for completion by default.Daniel Carl
This makes the codes easeir to read, because the most completions should be sorted.
2015-11-22Show typed text as last completion entry (#253).Daniel Carl
This patch adapts the vim behaviour. If you reach the end of the possible completion items, the initial content is written to the inputbox. This makes it easier to change the filter string to reduce the completion by simply step right to the very last entry with <S-Tab>.
2015-01-01Change year in license block.Daniel Carl
2014-06-09Another approach to setup completion window height (#86).Daniel Carl
2014-06-08Revert "Show the completion list after the hight was set." (#86)Daniel Carl
2014-04-15Fixed wrong default treeView height on gtk3.Daniel Carl
2014-04-10Show the completion list after the hight was set.Daniel Carl
If the completion list is displayed before we set the hight, the user might see the list for a really short time covering the whole webview window before it's resized to fit into the lower third of the view. The patch moved the display of the completion list after the list is calculated and the first entry is marked as active.
2014-01-11Change year in license block.Daniel Carl
2013-12-27Fixed none marked active completion items with gtk3.Daniel Carl
2013-12-27Fixed wrong completion window size with gtk3.Daniel Carl
2013-12-07Moved completion flag setting to completion.c.Daniel Carl
It's the better place to handle the flags than doing it in ex.c.
2013-10-15Fixed none applied completion active colors.Daniel Carl
2013-09-28Moved parts of completion logic to ex.c.Daniel Carl
This change makes it easier to control the found matches and it allowed to complete also abbreviated commands like ':o !tag'.
2013-09-28Added missed freeing for vb_get_input_text in compltion.Daniel Carl
2013-09-28Don't built completion if there is only one item.Daniel Carl
Instead we print the item direct to the inputbox instead.
2013-09-27If possible use g_strconcat instead of g_strdup_printf.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-14Allow the inputbox to show multiple lines.Daniel Carl
2013-08-01Changed sort order in bookmark completion.Daniel Carl
Now the latest added items of the bookmarks file are shown first, so it's similar to the history completion.
2013-07-29Include config.h in every c file and include it first.Daniel Carl
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-16Allow to enable/disable title in completions on compile time.Daniel Carl
2013-07-16Reapplied sorting of completion entries.Daniel Carl
2013-07-16Show page title in history and bookmark completion (#46).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-13Sort bookmark completion.Daniel Carl
For the bookmarks the sorting by the occurrence in bookmark file makes no sense and is sometimes irritating.
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-30Fixed too small completion box if completion list is small (#39).Daniel Carl
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.
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-29Split tree model creation from preparing the widget (#39).Daniel Carl
2013-06-29If completion is started backwards mark the last item (#39).Daniel Carl
If the completion where started in reverse order by <shift-tab> the first item was marked as active instead of the expected last one.
2013-06-29Renamed update into move_cursor.Daniel Carl
2013-06-29Fixed non highlighted completion item with gtk3 (#39).Daniel Carl
2013-06-29Put the completion tree view into scrolled window (#39).Daniel Carl
2013-06-29Use fixed height mode for tree view that's faster (#39).Daniel Carl
2013-06-29Removed completion tree view widget from global scope (#39).Daniel Carl
2013-06-29Removed direct reading of tree by select function.Daniel Carl
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.
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-02Fixed regression in completion for counted commands.Daniel Carl
The commit d95b20c introduced a regression which made it impossible to complete commands that have a count set for example `:3b<tab>`.