aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/popupmenu_spec.lua
Commit message (Collapse)AuthorAge
* feat(defaults): mouse=nvi #19290matveyt2022-07-17
| | | | | | | | | | Problem: Since right-click can now show a popup menu, we can provide messaging to guide users who expect 'mouse' to be disabled by default. So 'mouse' can now be enabled by default. Solution: Do it. Closes #15521
* fix(pum): make right drag in anchor grid to select work in multigrid UI (#19382)zeertzjq2022-07-16
|
* feat(ui): make right-click menu work properly with ext_multigridzeertzjq2022-07-01
| | | | Add tests both with and without ext_multigrid.
* refactor(ui)!: link `VertSplit` to `Normal` by defaultFamiu Haque2022-05-15
| | | | | Avoids using `gui=reverse` on `VertSplit` and makes window separators look much nicer by default.
* docs: typo fixes (#17859)dundargoc2022-04-15
| | | | | | | | | | Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com> Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com> Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: rwxd <rwxd@pm.me> Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
* test: move completion :stopinsert test to completion_spec.lua (#17992)zeertzjq2022-04-04
|
* fix(test): only use buffer completion in popupmenu timer testbfredl2022-03-02
|
* fix(completion): update submode message when selecting from API (#17022)zeertzjq2022-01-28
|
* vim-patch:8.2.1762: when a timer uses :stopinsert completion isn't stoppedzeertzjq2022-01-15
| | | | | | | Problem: When a timer uses :stopinsert Insert mode completion isn't stopped. (Stanley Chan) Solution: Call ins_compl_prep(ESC). https://github.com/vim/vim/commit/d0e1b7103c14eb0d175c6b245b4b6ed93a204da9
* feat(completion): support selecting item via API from Lua mappingzeertzjq2022-01-11
|
* fix(pum_redraw): use grid_puts_len() to truncate the textzeertzjq2021-12-24
| | | | | | | | | | | Nvim already resizes grid to the required width, so there is no need to truncate the text in pum_redraw(). What's more, truncation is currently done incorrectly because Vim patch 8.2.1995 was ported incorrectly. This nearly reverts the truncation part of Vim patch 8.2.1995, but not the part that reduces unnecessary calls to pum_redraw(). The original PR https://github.com/vim/vim/pull/7306 didn't explain much about which part of it actually reduces redraws.
* refactor(tests): use assert_alive() #15546Justin M. Keyes2021-09-01
|
* Merge pull request #12698 from erw7/fix-popupmenu-with-rlJan Edmund Lazo2020-11-13
|\ | | | | ui: fix problem with the popupmenu when rightleft is set
| * ui: fix problem with the popupmenu when rightleft is seterw72020-07-31
| | | | | | | | fixes #12032
* | Fix popupmenu position issueerw72020-10-23
|/
* api/ui: simplify popup menu position get/set logic; fix testYatao Li2020-04-28
|
* api/ui: allow set bounds row and col to be less than 0; ui_pum_get_pos: ↵Yatao Li2020-04-28
| | | | return first extui bounds information instead of reducing
* gen_api_dispatch.lua: allow msgpack int for Float args; test: add ↵Yatao Li2020-04-28
| | | | ui_pum_set_bounds and tv_dict_add_float tests
* popupmenu: don't use 'rightleft' option in cmdline modeBjörn Linse2020-03-23
| | | | | Cmdline is always drawn from the left to right, so using rightleft popupmenu is not useful here
* wildmode: fix wildmode=longest,full with pum #11690akovaski2020-01-21
| | | | | | With "wildmode=longest,full" + wildoptions=pum, wildmode should show popupmenu after Tab-Tab, not the horizontal wildmenu. Fixes #11622
* ui: add basic tests for pumheight,pumwidthJan Edmund Lazo2019-12-29
|
* vim-patch:8.1.0554: popup menu overlaps with preview windowJan Edmund Lazo2019-12-29
| | | | | | | | Problem: Popup menu overlaps with preview window. Solution: Adjust the height computation. (Hirohito Higashi, closes vim/vim#3414) https://github.com/vim/vim/commit/614ab8aa00346724bfc27980d25985d482269b75 Cherry-picked "row -> pum_win_row" rename changes from patch 8.1.0062.
* vim-patch:8.0.1538: popupmenu is too far left when completion is longJan Edmund Lazo2019-12-29
| | | | | | Problem: Popupmenu is too far left when completion is long. (Linwei) Solution: Adjust column computations. (Hirohito Higashi, closes vim/vim#2661) https://github.com/vim/vim/commit/bb008dd3239c5fe3ac04501e38e4c950fa9426c8
* vim-patch:8.0.1491: the minimum width of the popup menu is hard codedJan Edmund Lazo2019-12-29
| | | | | | | Problem: The minimum width of the popup menu is hard coded. Solution: Add the 'pumwidth' option. (Christian Brabandt, James McCoy, closes vim/vim#2314) https://github.com/vim/vim/commit/a8f04aa275984183bab5bb583b128f38c64abb69
* test: fix screen assertionsJan Edmund Lazo2019-10-01
|
* cmdline: wildmenumode() should be true with wildoptions+=pumBjörn Linse2019-09-28
|
* ex_getln.c: fix <S-Tab> not triggering pum when wildoptions=pum (#10042)glacambre2019-09-08
| | | | | | Some of the logic that was present for <Tab> was missing from <S-Tab>. Closes https://github.com/neovim/neovim/issues/10042.
* Add nvim_ui_pum_set_height to apierw72019-09-08
|
* test/ui: update tests for new msg_grid implementationBjörn Linse2019-09-01
|
* ui: transmit "blend=" property of highlight attributesBjörn Linse2019-08-18
|
* screen: disable redrawing inside VimResizedBjörn Linse2019-07-05
| | | | | | Note: test doesn't fail on master. I cannot reproduce the glitches with -u NONE, probably it requires interfering events. But add some coverage for these checks at least.
* cmdline: correct the column position of wildoptions=pum popupmenuBjörn Linse2019-07-01
| | | | | - position might get invalid with "longest" match - position might be wrong when completed pattern ends in "/"
* ui: add 'winblend' to support blending of floating windowsBjörn Linse2019-06-25
| | | | Also add `hi blend=` attribute to override transparency of indiviual attributes.
* Allow using internal popupmenu or ext_popupmenu for wildmenuBjörn Linse2019-03-16
| | | | | Deprecate ext_wildmenu. ext_popupmenu already contains more state (anchor position), and will allow further expansion (info about items).
* vim-patch:8.1.0994: fix relative cursor position #9676Justin M. Keyes2019-03-09
| | | | | | Problem: Relative cursor position is not calculated correctly. Solution: Always set topline, also when window is one line only. (Robert Webb) Add more info to getwininfo() for testing. https://github.com/vim/vim/commit/8fcb60f961bdd134599fb016c6537fd496e800f5
* UI: change implementation of hl_rgb2cterm_color()Justin M. Keyes2019-02-12
| | | | | Replace the implementation cargo-culted from Vim's source with something simpler which "seems to look better" with 'pumblend'.
* highlight: handle blending with gui=reverse and guisp attributesBjörn Linse2019-02-11
|
* UI: implement 'pumblend' option for semi-transparent popupmenuBjörn Linse2019-02-07
| | | | | | | | | | | | | Why? - Because we can. - Because the TUI is just another GUI™ - Because it looks kinda nice, and provides useful context like 1 out of 100 times Complies with "don't pay for what you don't use". Some crashes for resizing were unfolded, add tests for those.
* popupmenu: fix alignment of kind and extra after #9530Björn Linse2019-02-03
|
* tests/ui: add test for popupmenu redrawing in various situationsBjörn Linse2019-02-02
| | | | | Many of these are handled by the compositor. Check that it causes no glitches.
* api: select items in popupmenuBjörn Linse2019-01-09
|
* popupmenu: fix positioning with vsplitsBjörn Linse2019-01-01
|
* vim-patch:8.1.0355 Incorrect adjusting the popup menu (#8996)Ronan Pigott2018-09-16
| | | | | Problem: Incorrect adjusting the popup menu for the preview window. Solution: Compute position and height properl. (Ronan Pigott) Also show at least ten items. (closes vim/vim#3414)
* test: popupmenu placementrpigott2018-09-13
|
* tests: introduce screen:expect{...} formBjörn Linse2018-08-27