Mercurial > vim
view src/proto/optionstr.pro @ 33480:f8dd278ab05f v9.0.1991
patch 9.0.1991: no cmdline completion for setting the font
Commit: https://github.com/vim/vim/commit/290b887e8cc2c0d3dfc7f315b2052472c7c589cc
Author: Yee Cheng Chin <ychin.git@gmail.com>
Date: Thu Oct 5 20:54:21 2023 +0200
patch 9.0.1991: no cmdline completion for setting the font
Problem: no cmdline completion for setting the font
Solution: enable it on Win32 and GTK builds
Add guifont cmdline completion (for Windows and GTK)
For Windows, auto-complete will only suggest monospace fonts as that's
the only types allowed. Will also suggest font options after the colon,
including suggesting the current font size for convenience, and misc
charset and quality options like `cANSI` and `qCLEARTYPE`.
For GTK, auto-complete will suggest only monospace fonts for `guifont`
but will include all fonts for `guifontwide`. The completion code
doesn't currently suggest the current font size, as the GTK guifont
format does not have a clear delimiter (':' for other platforms).
closes: #13264
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 05 Oct 2023 21:00:07 +0200 |
parents | aa7cd2253130 |
children | 46d449fd4fe4 |
line wrap: on
line source
/* optionstr.c */ void didset_string_options(void); void trigger_optionset_string(int opt_idx, int opt_flags, char_u *oldval, char_u *oldval_l, char_u *oldval_g, char_u *newval); void check_buf_options(buf_T *buf); void free_string_option(char_u *p); void clear_string_option(char_u **pp); void check_string_option(char_u **pp); void set_string_option_direct(char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid); void set_string_option_direct_in_win(win_T *wp, char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid); void set_string_option_direct_in_buf(buf_T *buf, char_u *name, int opt_idx, char_u *val, int opt_flags, int set_sid); char *set_string_option(int opt_idx, char_u *value, int opt_flags, char *errbuf); char *did_set_ambiwidth(optset_T *args); char *did_set_background(optset_T *args); char *did_set_backspace(optset_T *args); char *did_set_backupcopy(optset_T *args); char *did_set_backupext_or_patchmode(optset_T *args); char *did_set_belloff(optset_T *args); char *did_set_breakindentopt(optset_T *args); char *did_set_browsedir(optset_T *args); char *did_set_bufhidden(optset_T *args); char *did_set_buftype(optset_T *args); char *did_set_casemap(optset_T *args); char *did_set_chars_option(optset_T *args); char *did_set_cinoptions(optset_T *args); char *did_set_colorcolumn(optset_T *args); char *did_set_comments(optset_T *args); char *did_set_commentstring(optset_T *args); char *did_set_complete(optset_T *args); char *did_set_completeopt(optset_T *args); char *did_set_completepopup(optset_T *args); char *did_set_completeslash(optset_T *args); char *did_set_concealcursor(optset_T *args); char *did_set_cpoptions(optset_T *args); char *did_set_cryptkey(optset_T *args); char *did_set_cryptmethod(optset_T *args); char *did_set_cscopequickfix(optset_T *args); char *did_set_cursorlineopt(optset_T *args); char *did_set_debug(optset_T *args); char *did_set_diffopt(optset_T *args); char *did_set_display(optset_T *args); char *did_set_eadirection(optset_T *args); char *did_set_encoding(optset_T *args); char *did_set_eventignore(optset_T *args); char *did_set_fileformat(optset_T *args); char *did_set_fileformats(optset_T *args); char *did_set_filetype_or_syntax(optset_T *args); char *did_set_foldclose(optset_T *args); char *did_set_foldexpr(optset_T *args); char *did_set_foldignore(optset_T *args); char *did_set_foldmarker(optset_T *args); char *did_set_foldmethod(optset_T *args); char *did_set_foldopen(optset_T *args); char *did_set_formatoptions(optset_T *args); char *did_set_guicursor(optset_T *args); char *did_set_guifont(optset_T *args); char *did_set_guifontset(optset_T *args); char *did_set_guifontwide(optset_T *args); char *did_set_guiligatures(optset_T *args); char *did_set_guioptions(optset_T *args); char *did_set_guitablabel(optset_T *args); char *did_set_helpfile(optset_T *args); char *did_set_helplang(optset_T *args); char *did_set_highlight(optset_T *args); char *did_set_iconstring(optset_T *args); char *did_set_imactivatekey(optset_T *args); char *did_set_isopt(optset_T *args); char *did_set_jumpoptions(optset_T *args); char *did_set_keymap(optset_T *args); char *did_set_keymodel(optset_T *args); char *did_set_keyprotocol(optset_T *args); char *did_set_lispoptions(optset_T *args); char *did_set_matchpairs(optset_T *args); char *did_set_mkspellmem(optset_T *args); char *did_set_mouse(optset_T *args); char *did_set_mousemodel(optset_T *args); char *did_set_mouseshape(optset_T *args); char *did_set_nrformats(optset_T *args); char *did_set_optexpr(optset_T *args); char *did_set_pastetoggle(optset_T *args); char *did_set_previewpopup(optset_T *args); char *did_set_printencoding(optset_T *args); char *did_set_renderoptions(optset_T *args); char *did_set_rightleftcmd(optset_T *args); char *did_set_rulerformat(optset_T *args); char *did_set_scrollopt(optset_T *args); char *did_set_selection(optset_T *args); char *did_set_selectmode(optset_T *args); char *did_set_sessionoptions(optset_T *args); char *did_set_shortmess(optset_T *args); char *did_set_showbreak(optset_T *args); char *did_set_showcmdloc(optset_T *args); char *did_set_signcolumn(optset_T *args); char *did_set_spellcapcheck(optset_T *args); char *did_set_spellfile(optset_T *args); char *did_set_spelllang(optset_T *args); char *did_set_spelloptions(optset_T *args); char *did_set_spellsuggest(optset_T *args); char *did_set_splitkeep(optset_T *args); char *did_set_statusline(optset_T *args); char *did_set_swapsync(optset_T *args); char *did_set_switchbuf(optset_T *args); char *did_set_tabline(optset_T *args); char *did_set_tagcase(optset_T *args); char *did_set_term(optset_T *args); char *did_set_term_option(optset_T *args); char *did_set_termwinkey(optset_T *args); char *did_set_termwinsize(optset_T *args); char *did_set_termwintype(optset_T *args); char *did_set_titlestring(optset_T *args); char *did_set_toolbar(optset_T *args); char *did_set_toolbariconsize(optset_T *args); char *did_set_ttymouse(optset_T *args); char *did_set_varsofttabstop(optset_T *args); char *did_set_vartabstop(optset_T *args); char *did_set_verbosefile(optset_T *args); char *did_set_viewoptions(optset_T *args); char *did_set_viminfo(optset_T *args); char *did_set_virtualedit(optset_T *args); char *did_set_whichwrap(optset_T *args); char *did_set_wildmode(optset_T *args); char *did_set_wildoptions(optset_T *args); char *did_set_winaltkeys(optset_T *args); char *did_set_wincolor(optset_T *args); char *did_set_string_option(int opt_idx, char_u **varp, char_u *oldval, char_u *value, char *errbuf, int opt_flags, set_op_T op, int *value_checked); int expand_set_ambiwidth(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_background(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_backspace(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_backupcopy(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_belloff(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_breakindentopt(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_browsedir(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_bufhidden(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_buftype(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_casemap(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_chars_option(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_clipboard(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_complete(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_completeopt(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_completeslash(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_concealcursor(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_cpoptions(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_cryptmethod(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_cursorlineopt(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_debug(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_diffopt(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_display(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_eadirection(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_encoding(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_eventignore(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_fileformat(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_foldclose(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_foldmethod(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_foldopen(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_formatoptions(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_guifont(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_guioptions(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_highlight(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_jumpoptions(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_keymodel(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_keyprotocol(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_lispoptions(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_mouse(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_mousemodel(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_nrformats(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_popupoption(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_printoptions(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_rightleftcmd(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_scrollopt(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_selection(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_selectmode(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_sessionoptions(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_shortmess(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_showcmdloc(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_signcolumn(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_spelloptions(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_spellsuggest(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_splitkeep(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_swapsync(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_switchbuf(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_tagcase(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_termwintype(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_toolbar(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_toolbariconsize(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_ttymouse(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_virtualedit(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_whichwrap(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_wildmode(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_wildoptions(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_winaltkeys(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_wincolor(optexpand_T *args, int *numMatches, char_u ***matches); int check_ff_value(char_u *p); void save_clear_shm_value(void); void restore_shm_value(void); /* vim: set ft=c : */