vim/runtime
glepnir bcd5995b40
patch 9.1.1341: cannot define completion triggers
Problem:  Cannot define completion triggers and act upon it
Solution: add the new option 'isexpand' and add the complete_match()
          function to return the completion matches according to the
          'isexpand' setting (glepnir)

Currently, completion trigger position is determined solely by the
'iskeyword' pattern (\k\+$), which causes issues when users need
different completion behaviors - such as triggering after '/' for
comments or '.' for methods. Modifying 'iskeyword' to include these
characters has undesirable side effects on other Vim functionality that
relies on keyword definitions.

Introduce a new buffer-local option 'isexpand' that allows specifying
different completion triggers and add the complete_match() function that
finds the appropriate start column for completion based on these
triggers, scanning backwards from cursor position.

This separation of concerns allows customized completion behavior
without affecting iskeyword-dependent features. The option's
buffer-local nature enables per-filetype completion triggers.

closes: #16716

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-04-24 21:48:35 +02:00
..
autoload patch 9.1.1327: filetype: nroff detection can be improved 2025-04-21 10:51:05 +02:00
bitmaps
colors runtime(colors): Update colorschemes, include new unokai colorscheme 2025-01-14 17:15:59 +01:00
compiler runtime(gleam): update filetype plugin, include new compiler and syntax script 2025-04-24 21:30:59 +02:00
doc patch 9.1.1341: cannot define completion triggers 2025-04-24 21:48:35 +02:00
ftplugin runtime(gleam): update filetype plugin, include new compiler and syntax script 2025-04-24 21:30:59 +02:00
icons
import/dist
indent runtime(make): do not automatically indent after a special target 2025-04-22 20:20:46 +02:00
keymap runtime(keymaps): update Brazilian keymaps 2025-04-20 17:10:20 +02:00
lang translation(it): update menu_it 2025-03-13 20:38:44 +01:00
macros
pack/dist/opt patch 9.1.1336: comment plugin does not support case-insensitive 'commentstring' 2025-04-22 20:14:30 +02:00
plugin patch 9.1.1289: tests: no test for matchparen plugin with WinScrolled event 2025-04-09 19:29:18 +02:00
print
spell
syntax runtime(gleam): update filetype plugin, include new compiler and syntax script 2025-04-24 21:30:59 +02:00
tools
tutor runtime(new-tutor): update tutor and correct comandline completion 2025-04-13 17:44:24 +02:00
bugreport.vim
defaults.vim runtime(doc): disable last-position-jump in diff mode 2025-04-12 18:07:39 +02:00
delmenu.vim
doc.info
evim.vim
filetype.vim patch 9.1.1327: filetype: nroff detection can be improved 2025-04-21 10:51:05 +02:00
ftoff.vim
ftplugin.vim
ftplugof.vim
gvim.desktop
gvimrc_example.vim
hi16-action-make.png
hi22-action-make.png
icons.info
indent.vim
indoff.vim
macmap.vim
macros.info
makemenu.vim patch 9.1.1188: runtime(tera): tera support can be improved 2025-03-09 08:52:05 +01:00
menu.vim
mswin.vim
optwin.vim patch 9.1.1341: cannot define completion triggers 2025-04-24 21:48:35 +02:00
scripts.vim
synmenu.vim patch 9.1.1188: runtime(tera): tera support can be improved 2025-03-09 08:52:05 +01:00
termcap
tools.info
tutor.info
vim.desktop
vim16x16.gif
vim16x16.png
vim16x16.xpm
vim32x32.gif
vim32x32.png
vim32x32.xpm
vim48x48.gif
vim48x48.png
vim48x48.xpm
vimlogo.cdr
vimlogo.eps
vimlogo.gif
vimlogo.pdf
vimlogo.svg
vimlogo.xpm
vimrc_example.vim