aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/window.c
Commit message (Collapse)AuthorAge
* refactor: format #15702dundargoc2021-09-18
|
* chore: use codespell to spell check #15016dundargoc2021-07-07
|
* fix(api/win_get_config): include z-indexSean Dewar2021-06-19
|
* api:get_config: don't add border="none" (inactive default)Björn Linse2021-06-10
|
* fix linter errorsCorey Williamson2021-06-10
|
* api: include border in nvim_win_get_configCorey Williamson2021-06-10
|
* api: add nvim_win_callnotomo2021-06-10
|
* api(nvim_open_win): add "noautocmd" optionSean Dewar2021-06-01
| | | | | | This option, when set, stops nvim_open_win() from potentially firing buffer-related autocmd events (BufEnter, BufLeave and BufWinEnter in the case of nvim_open_win()).
* Revert "api/window: use the "noblock" variants in nvim_win_set_buf"Jan Edmund Lazo2021-05-10
| | | | | | | | | | | | | | | This reverts commit 1def3d1542d6a65f057e743faea39a760b50db87. Plugins may depend on catching the following events when creating windows: - BufWinEnter - BufEnter - BufLeave Risky to introduce this breaking change on 0.5 release when 0.5 release should be out by now. https://github.com/asvetliakov/vscode-neovim/issues/632#issuecomment-837201224
* Merge pull request #13664 from ivechan/win_exectuteJan Edmund Lazo2021-05-07
|\ | | | | vim-patch:8.1.{1418,1425,1832,2124},8.2.{0137, 2340}
| * api/window: use the "noblock" variants in nvim_win_set_bufjing2021-05-06
| | | | | | | | | | | | | | | | | | after commit 92c6383cdca977("vim-patch:8.1.1425: win_execute() does not set window pointers properly"), nvim_win_set_buf can use switch_win_noblock and restore_win_noblock. It makes nvim_win_set_buf don't block autocmds so that it will be more "without side-effects" as said in help text. Signed-off-by: jing <lhchenjw@gmail.com>
* | fix: make nvim_win_get_number() return win number (#14470)Julian Berman2021-05-01
|/ | | Closes https://github.com/neovim/neovim/issues/14467
* api: clarify difference between win_hide and win_closeCorey Williamson2021-03-10
|
* api: add vim.api.nvim_win_hideCorey Williamson2021-03-09
|
* api: add textlock checknotomo2020-12-15
|
* api: move deprecated functions to separate filesBjörn Linse2020-12-05
| | | | | Most these are just calls to non-deprecated variants, and take up unnecessary space and search hits in the other files.
* api: add API for themesBjörn Linse2020-11-01
| | | | | | | | | | co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function) orange is sus?? NOVEMBER DAWN erase the lie that is redraw_later()
* docJustin M. Keyes2019-09-11
| | | | | fix #10127 fix #5972
* doc: |api-fast| [ci skip]Justin M. Keyes2019-09-09
|
* anchor float to buffer positionBjörn Linse2019-09-04
| | | | vim-patch:8.1.1645: cannot use a popup window for a balloon
* api/window: disallow closing non-current window in cmdwin stateBjörn Linse2019-08-10
|
* API: nvim_win_close: Fix closing cmdline-window #10087R. Simon2019-08-10
|
* api/window: add style="minimal" flag to nvim_open_win()Björn Linse2019-07-07
|
* doc/API: document indexing behavior #10058KillTheMule2019-05-26
| | | | close #10058
* windows: float config changesBjörn Linse2019-04-14
| | | | | | | | | | - Allow floating windows of width 1. #9846 - For a new floating window the size must be specified. Later on we might try to calculate a reasonable size by buffer contents - Remember the configured size of a window, just like its position. - Make get_config and set_config more consistent. Handle relative='' properly in set_config. get_config doesn't return keys that don't make sense for a non-floating window. - Don't use width=0 for non-changed width, just omit the key.
* api/window: validate cursor in nvim_win_set_bufBjörn Linse2019-04-08
| | | | | | validate_cursor() is called regularly, but only for the current window. When changing the buffer for a non-current window, we need to invoke it in the context of that window.
* doc [ci skip]Justin M. Keyes2019-03-26
| | | | closes #9719
* api: refactor FloatRelative usageMarco Hinz2019-03-16
|
* api: numerous small fixesMarco Hinz2019-03-16
|
* api: update docMarco Hinz2019-03-16
|
* api: add width/height to FloatConfigMarco Hinz2019-03-16
|
* api: nvim_win_config() -> nvim_win_set_config()Marco Hinz2019-03-16
|
* api: refactor FloatAnchor usageMarco Hinz2019-03-16
|
* api: add nvim_win_get_config()Marco Hinz2019-03-16
|
* api: add nvim_win_close() to close window by idBjörn Linse2019-03-03
|
* floats: implement floating windowsBjörn Linse2019-03-02
| | | | Co-Author: Dongdong Zhou <dzhou121@gmail.com>
* API: don't directly call update_screen() in API functionsBjörn Linse2019-01-08
| | | | | | | | | There is no need to call update_screen() directly in an API function, mode input processing invokes update_screen() as needed. And if the API call is done in a context where redraw is disabled, then redraw is disabled for a reason. A lot of API functions are of equal semantical strength (nvim_call_function and nvim_execute_lua can also do whatever, nvim_command is not special), this inconsistency has no purpose.
* API: Implement nvim_win_set_buf() #9100Justin M. Keyes2018-11-25
| | | | closes #9100
* Improved version of #8613David Hotham2018-06-25
| | | | This one behaves correctly eg in the presence of unicode
* API: nvim_win_set_cursor: set curswant #8613David Hotham2018-06-25
| | | Fixes #8591
* api: Make nvim_set_option() update `:verbose set ...`b-r-o-c-k2018-05-03
| | | | | | Make `:verbose set ...` show when an option was last modified by an API client or Lua script/chunk. In the case of an API client, the channel ID is displayed.
* lint: fix indentation of FUNC_ATTR linesBjörn Linse2017-06-03
|
* api/window: Fix memory leak in nvim_win_set_cursorZyX2017-05-08
|
* api: Do not translate error messages.Justin M. Keyes2017-04-24
| | | | | | | | | | Also re-word some error messages: - "Key does not exist: %s" - "Invalid channel: %<PRIu64>" - "Request array size must be 4 (request) or 3 (notification)" - "String cannot contain newlines" References #6150
* api_set_error(): renameJustin M. Keyes2017-04-23
|
* api_clear_error()Justin M. Keyes2017-04-23
|
* api: Do not truncate errors <1 MB. #6237Sander Bosma2017-04-23
| | | | Closes #5984
* *: Add comment to all C filesZyX2017-04-19
|
* api: implement FUNC_API_SINCEBjörn Linse2017-03-15
|
* api: Rename dict_set_value to dict_set_varZyX2017-02-23
| | | | | | | | | | | | | | | | | | Reasonings: 1. It is not used for anything, but scope dictionaries currenly. So there is no need to generalize and split it into dict_set_var (which will contain some scope-dictionary-specific checks) and dict_set_value (which will work for any dictionary). 2. Check for key size is no longer valid for non-scope dictionaries: you *can* use empty keys there. In scope dictionaries also, but you actually are not supposed to store there anything, but variables. Note that actually one may still do let b:[''] = 1 and “bypass” check for variable name. It won’t change what `echo b:` will show, but it may affect code which iterates over scope dictionary keys and sets them to something (if there is such code).