aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'upstream/master' into colorcolcharJosh Rahm2022-09-12
|\
| * feat(extmarks,ts,spell): full support for spellingThomas Vigouroux2022-09-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added 'spell' option to extmarks: Extmarks with this set will have the region spellchecked. - Added 'noplainbuffer' option to 'spelloptions': This is used to tell Neovim not to spellcheck the buffer. The old behaviour was to spell check the whole buffer unless :syntax was set. - Added spelling support to the treesitter highlighter: @spell captures in highlights.scm are used to define regions which should be spell checked. - Added support for navigating spell errors for extmarks: Works for both ephemeral and static extmarks - Added '_on_spell_nav' callback for decoration providers: Since ephemeral callbacks are only drawn for the visible screen, providers must implement this callback to instruct Neovim which regions in the buffer need can be spell checked. The callback takes a start position and an end position. Note: this callback is subject to change hence the _ prefix. - Added spell captures for built-in support languages Co-authored-by: Lewis Russell <lewis6991@gmail.com> Co-authored-by: Björn Linse <bjorn.linse@gmail.com>
| * feat(pum): pretend 'mousemoveevent' is set when showing right-click menuzeertzjq2022-09-04
| |
| * feat(api): add "move" to nvim_input_mousezeertzjq2022-09-04
| |
| * feat(tui): support 'mousemoveevent'zeertzjq2022-09-04
| |
| * feat(ui-ext): make 'mousemoveevent' a ui_optionzeertzjq2022-09-04
| |
| * fix(highlight): set the window namespace when redrawing statuslinebfredl2022-08-30
| |
* | feat(colorcolchar): revert "feat: rename colorcol in fillchars to colorc"Josh Rahm2022-08-27
| | | | | | | | | | This reverts commit 234959abbfcf075cb09304b00fc391780580056d and renames the option 'colorc' -> 'colorcol' again.
* | feat(colorcolchar): fix highlight_spec.luaJosh Rahm2022-08-27
| | | | | | | | | | Problem was interpreting a '|' as next command, causing vim to interpret set fillchars+=colorcol:| incorrectly
* | feat(colorcolchar): rename colorcol in fillchars to colorcJosh Rahm2022-08-27
| | | | | | | | Rename the colorcol option in fillchars to the more terse colorc.
* | feat(colorcolchar): add the option "colorcol" to the fillchars settingJosh Rahm2022-08-27
|/ | | | | | | | | | | | | | This option will let neovim draw a character in the colorcolumn when there is no other character occupying that spot. For example, I'm someone who likes the elegance of seeing a 1px wide line at the 80 character mark, rather than a rectangle the width of a cell at that mark. To accomplish this, I run :set colorcol=80 :set fillchars=colorcol:│ of course ':' and '.' are good ASCII alteratives.
* feat(eval)!: make Vim functions return inner window width and height (#19743)zeertzjq2022-08-24
| | | | | | | | | In non-multigrid UI the only change is that the returned height now excludes winbar, and this is compatible with Vim. In multigrid UI this means the return value of these functions now reflect the space available for buffer lines in a window. No change in nvim_win_get_height() and nvim_win_get_width().
* fix(cmdline): do not trigger completion at wrong time (#19920)zeertzjq2022-08-24
| | | Cherry-picked from Vim patches 8.2.4339, 9.0.0238.
* vim-patch:9.0.0206: redraw flags are not named specifically (#19913)zeertzjq2022-08-23
| | | | | Problem: Redraw flags are not named specifically. Solution: Prefix "UPD_" to the flags, for UPDate_screen(). https://github.com/vim/vim/commit/a4d158b3c839e96ed98ff87c7b7124ff4518c4ff
* vim-patch:8.2.4334: command line popup menu not positioned correctlyzeertzjq2022-08-22
| | | | | | | Problem: Command line popup menu not positioned correctly. Solution: Also use vim_strsize() on the existing text. (Naruhiko Nishino, closes vim/vim#9727) https://github.com/vim/vim/commit/68cc2b8a37197872e737fb61244069e13b7227a2
* vim-patch:8.2.4328: command line complete matches cleard when typing characterzeertzjq2022-08-22
| | | | | | | Problem: Command line complete matches cleard when typing character. (Dominique Pellé) Solution: Only remove a popup menu if there is one. https://github.com/vim/vim/commit/73a16c22a4703cb9a7becdf459ce62bd894980d7
* vim-patch:8.2.4325: 'wildmenu' only shows few matches (#19876)zeertzjq2022-08-21
| | | | | | | | | | Problem: 'wildmenu' only shows few matches. Solution: Add the "pum" option: use a popup menu to show the matches. (Yegappan Lakshmanan et al., closes vim/vim#9707) https://github.com/vim/vim/commit/3908ef5017a6b4425727013588f72cc7343199b9 Omit p_wmnu check in cmdline_pum_active() as it can cause problems. Omit vim_strchr() flags as that isn't really better than bitmasks. Omit key translations and document it in vim_diff.txt.
* Merge pull request #19360 from famiu/feat/multibuffer-inccommandbfredl2022-08-19
|\ | | | | feat: multibuffer preview support for inccommand
| * feat: multibuffer preview support for inccommandFamiu Haque2022-08-19
| | | | | | | | | | | | | | | | | | Allows preview callbacks to modify multiple buffers in order to show the preview. Previously, if multiple buffers were modified, only the current buffer would have its state restored. After this change, all buffers have their state restored after preview. Closes #19103.
* | Merge pull request #19822 from bfredl/hldefbfredl2022-08-18
|\ \ | | | | | | fix(api): make nvim_set_hl(ns=0, ...) redraw screen properly
| * | fix(api): make nvim_set_hl(ns=0, ...) redraw screen properlybfredl2022-08-18
| | | | | | | | | | | | fixes #18160
* | | fix(winhl): do not crash when unsetting winhl in just opened windowbfredl2022-08-18
|/ / | | | | | | fixes #19823
* | fix(tests): remove irrelevant usage of display-=msgsepbfredl2022-08-17
| | | | | | | | | | | | | | | | These were just added to avoid churn when changing the default of 'display'. To simplify message handling logic, we might want to remove support for printing messages in default_grid later on. This would allow things like printing error messages safely in the middle of redraw, or a future graduation of the 'multigrid' feature.
* | feat(ui): allow to set the highlight namespace per windowbfredl2022-08-17
| | | | | | | | | | - reimplement 'winhl' in terms of highlight namespaces - check for EOF in screen tests (to indicate a likely crash)
* | vim-patch:9.0.0190: the way 'cmdheight' can be made zero is inconsistentShougo Matsushita2022-08-17
| | | | | | | | | | | | | | Problem: The way 'cmdheight' can be made zero is inconsistent. Solution: Only make 'cmdheight' zero when setting it explicitly, not when resizing windows. (closes vim/vim#10890) https://github.com/vim/vim/commit/f797e309caff48f7a56c73b16e62ff67c4dcbdd6
* | fix(getchar): flush screen before doing a blocking waitzeertzjq2022-08-15
|/
* fix(winbar): do not always assume cursor is valid. fixes #19458bfredl2022-08-13
|
* fix(signs): priority of extmark signs (#19718)Lewis Russell2022-08-11
|
* fix(folds): fix fold remains when :delete makes buffer empty (#19673)zeertzjq2022-08-08
|
* fix(ui): set redraw_cmdline when setting window height (#19630)zeertzjq2022-08-03
|
* cmdheight=0: fix bugs part2 (#19185)Shougo2022-07-31
|
* fix(screen): check for col instead of vcol when drawing fold (#19572)zeertzjq2022-07-29
|
* fix(options): properly free string options (#19510)zeertzjq2022-07-27
|
* fix(cmdline): trigger CmdlineEnter and ModeChanged earlier (#19474)zeertzjq2022-07-26
| | | | Match Vim's ordering in code. These tests are unrelated to ext_cmdline. Move them out of that block.
* vim-patch:9.0.0071: command overlaps with printed text in scrollback (#19505)zeertzjq2022-07-26
| | | | | | | | | | | | | | Problem: Command overlaps with printed text in scrollback. Solution: Clear until end-of-line and use correct message chunk. (closes vim/vim#10765, closes vim/vim#10764) https://github.com/vim/vim/commit/ecdc82e74e6a7e73d9067ece1d5eac33abfde5ed N/A patches for version.c: vim-patch:9.0.0070: using utfc_ptr2char_len() when length is negative Problem: Using utfc_ptr2char_len() when length is negative. Solution: Check value of length. (closes vim/vim#10760) https://github.com/vim/vim/commit/4dc513a22c017b3061287deac74fa55f70a3214c
* vim-patch:8.2.5155: in diff mode windows may get out of synczeertzjq2022-07-25
| | | | | | Problem: In diff mode windows may get out of sync. (Gary Johnson) Solution: Avoid that the other window scrolls for 'cursorbind'. https://github.com/vim/vim/commit/a315ce1f326b836167ca8b1037dafd93eb8d4d4e
* test: improve some input testszeertzjq2022-07-25
|
* fix(input): do no reinterpret mouse keys with ALT modifierszeertzjq2022-07-25
| | | | | Remove check for MOD_MASK_META as it is for <T- which never appears in TUI. Make small changes to docs.
* fix(mouse): fix using uninitialized memory with K_MOUSEMOVE (#19480)zeertzjq2022-07-24
| | | Fix a mistake in the porting of Vim patch 8.0.1309.
* fix(grid): don't use utfc_ptr2char_len() when printing until NUL (#19456)zeertzjq2022-07-22
|
* Merge pull request #19445 from famiu/fix/local_winbar_tabsbfredl2022-07-20
|\ | | | | fix: local winbar with tabs
| * fix: local winbar with tabsFamiu Haque2022-07-20
| | | | | | | | Closes #19396
* | Merge pull request #19409 from bfredl/uiunpackbfredl2022-07-19
|\ \ | | | | | | perf(ui): some ui_client fixes/optimizations before externalized TUI
| * | perf(ui): avoid ui_flush() work in headless modebfredl2022-07-18
| | |
| * | perf(ui): eliminate spurious memory allocations for hl_attr_define eventbfredl2022-07-18
| |/
* / fix(mouse): click on global statusline with splits (#19390)Munif Tanjim2022-07-19
|/
* 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
|
* fix: remote UI may get invalid 'pumblend' value #19379Natasha England-Elbro2022-07-15
| | | fixes: https://github.com/neovim/neovim/issues/19340
* fix: right-click in clickable statusline #19252Famiu Haque2022-07-15
| | | | | | | | | | | | Problem: 1. Right-click does not work in statusline unless you left-click first (to focus the statusline). 2. Modifier (e.g. shift+rightclick) does not work in statusline. Solution: Make clickable statusline sections receive right-clicks regardless of whether the statusline is focused. Closes #18994