Age | Commit message (Collapse) | Author |
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Added names for the main styled gui elements for easier styling via css.
|
|
|
|
|
|
This makes the codes easeir to read, because the most completions should
be sorted.
|
|
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>.
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
It's the better place to handle the flags than doing it in ex.c.
|
|
|
|
This change makes it easier to control the found matches and it allowed to
complete also abbreviated commands like ':o !tag'.
|
|
|
|
Instead we print the item direct to the inputbox instead.
|
|
|
|
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'.
|
|
This allows to get already used bookmark tags for new bookmarks ':bma <tab>'
or ':bookmark-add <tab>'.
|
|
|
|
Now the latest added items of the bookmarks file are shown first, so it's
similar to the history completion.
|
|
|
|
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>'.
|
|
|
|
|
|
|
|
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.
|
|
For the bookmarks the sorting by the occurrence in bookmark file makes no
sense and is sometimes irritating.
|
|
This prevent the cropping of completed content which leads to the new
generation of completion which in fact does only find a single item.
|
|
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.
|
|
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.
|
|
|
|
If the completion where started in reverse order by <shift-tab> the first item
was marked as active instead of the expected last one.
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
The commit d95b20c introduced a regression which made it impossible to
complete commands that have a count set for example `:3b<tab>`.
|