aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/buffer.c
Commit message (Collapse)AuthorAge
...
* lua: support getting UTF-32 and UTF-16 sizes of replaced textBjörn Linse2019-08-06
|
* lua: add {old_byte_size} to on_lines buffer change eventBjörn Linse2019-08-06
|
* api/lua: add on_detach to nvim_buf_attachBjörn Linse2019-06-15
|
* api: allow nvim_buf_attach from lua using callbacksBjörn Linse2019-06-04
|
* doc/API: document indexing behavior #10058KillTheMule2019-05-26
| | | | close #10058
* API/nvim_set_keymap: minor cleanupJustin M. Keyes2019-05-12
| | | | ref #9924
* API: nvim_set_keymap, nvim_del_keymap #9924Yilin Yang2019-05-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | closes #9136 - Treat empty {rhs} like <Nop> - getchar.c: Pull "repl. MapArg termcodes" into func The "preprocessing code" surrounding the replace_termcodes calls needs to invoke replace_termcodes, and also check if RHS is equal to "<Nop>". To reduce code duplication, factor this out into a helper function. Also add an rhs_is_noop flag to MapArguments; buf_do_map_explicit expects an empty {rhs} string for "<Nop>", but also needs to distinguish that from something like ":map lhs<cr>" where no {rhs} was provided. - getchar.c: Use allocated buffer for rhs in MapArgs Since the MAXMAPLEN limit does not apply to the RHS of a mapping (or else an RHS that calls a really long autoload function from a plugin would be incorrectly rejected as being too long), use an allocated buffer for RHS rather than a static buffer of length MAXMAPLEN + 1. - Mappings LHS and RHS can contain literal space characters, newlines, etc. - getchar.c: replace_termcodes in str_to_mapargs It makes sense to do this; str_to_mapargs is, intuitively, supposed to take a "raw" command string and parse it into a totally "do_map-ready" struct. - api/vim.c: Update lhs, rhs len after replace_termcodes Fixes a bug in which replace_termcodes changes the length of lhs or rhs, but the later search through the mappings/abbreviations hashtables still uses the old length value. This would cause the search to fail erroneously and throw 'E31: No such mapping' errors or 'E24: No such abbreviation' errors. - getchar: Create new map_arguments struct So that a string of map arguments can be parsed into a more useful, more portable data structure. - getchar.c: Add buf_do_map function Exactly the same as the old do_map, but replace the hardcoded references to the global `buf_T* curbuf` with a function parameter so that we can invoke it from nvim_buf_set_keymap. - Remove gettext calls in do_map error handling
* API: fix cursor position when lines are added #9961hashinclude2019-05-07
| | | | Restore code removed in #9674.
* doc: UIJustin M. Keyes2019-04-22
|
* doc [ci skip]Justin M. Keyes2019-03-26
| | | | closes #9719
* buffer: use aucmd_prepbuf() instead of switch_to_win_for_buf()Björn Linse2019-03-05
|
* doc [ci skip] #9478Justin M. Keyes2019-01-26
| | | | | | | | | | | | - Lua - developer guidelines - MAINTAIN.md - TUI: cleanup - TUI: mention Windows terminfo builtins - cleanup if_pyth, redirect python-bindeval tag Helped-by: Björn Linse <bjorn.linse@gmail.com> Helped-by: erw7 <erw7.github@gmail.com>
* doc (#9288)Justin M. Keyes2018-12-09
| | | | | - misc - doc: `:help config`. closes #9329 - cleanup test/README.md
* API: rename nvim_buf_clear_highlight to nvim_buf_clear_namespaceBjörn Linse2018-11-29
| | | | | We want a single function to clear all namespaced buffer objects. This will later include extmarks.
* api: implement object namespacesBjörn Linse2018-11-24
| | | | | | | | | Namespaces is a lightweight concept that should be used to group objects for purposes of bulk operations and introspection. This is initially used for highlights and virtual text in buffers, and is planned to also be used for extended marks. There is no plan use them for privileges or isolation, neither to introduce nanespace-level options.
* doc: APIJustin M. Keyes2018-11-05
|
* api: simplify nvim_buf_get_offset functionBjörn Linse2018-11-01
|
* api: implement nvim_buf_get_offset_for_lineBjörn Linse2018-11-01
| | | | | Like line2byte, but works for any buffer, and uses zero-based indexing (API conventions).
* api: make nvim_buf_set_virtual_text handle invalid charsBjörn Linse2018-10-13
| | | | | Clients are supposed to supply only valid text, but if it is invalid, translate it rather than messing up the screen
* buffer: add support for virtual text annotationsBjörn Linse2018-09-17
|
* API: update docs WRT behaviours/methods for unloaded buffers #7688Peter Hodge2018-07-25
|
* API: add nvim_buf_is_loaded() #7688Peter Hodge2018-07-25
|
* API: buf_get_lines, buf_line_count handle unloaded buffers #7688Peter Hodge2018-07-25
|
* docJustin M. Keyes2018-07-18
|
* *: Replace b_changedtick with new always-inline functionsZyX2018-06-22
| | | Ref #8474
* refactor: buf_collect_lines (#8509)Justin M. Keyes2018-06-09
| | | Move redundant common logic into a function.
* Add empty options dict to buf_attachKillTheMule2018-05-23
|
* Send changedtick as first event if buffer contents weren't requestedKillTheMule2018-05-23
|
* Some renamings and doc changesKillTheMule2018-05-23
|
* Enable -WconversionKillTheMule2018-05-23
|
* The grand renamingKillTheMule2018-05-23
|
* LintKillTheMule2018-05-23
|
* Make separate functions to start/stop live updatesKillTheMule2018-05-23
|
* Adjust FUNC_API_SINCE for nvim_buf_live_updatesKillTheMule2018-05-23
|
* Add argument to not send a buffers content when updates are enabledKillTheMule2018-05-23
| | | | Add a test.
* API: Implement buffer updatesPeter Hodge2018-05-23
| | | | | Originally written by @phodge in https://github.com/neovim/neovim/pull/5269.
* API: nvim_get_commands(): return DictionaryJustin M. Keyes2018-05-12
|
* API: nvim_get_commands(): builtin is irrelevant for buffer-localJustin M. Keyes2018-05-12
| | | | | builtin commands are never buffer-local, so we can return empty for that case.
* API: nvim_get_commands(): more attributesJustin M. Keyes2018-05-11
| | | | | | | Support more :command attributes: -bang -bar -register
* API: nvim_get_commands(): always return keysJustin M. Keyes2018-05-11
| | | | | | - Always return all keys, with at least NIL value. - Require `opts` param to be {"builtin":false} - Validate `opts` param
* API: nvim_get_commands()Nimit Bhardwaj2018-05-11
|
* 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.
* api/buffer: Fix PVS/V547: use correct border for lnumZyX2018-04-02
| | | | | Should actually be silencing that for the sake of the case when `long` is actually not 64-bit. But it appears that Vim had already defined maximal line number. And even declared that exact value invalid, so no need in silencing.
* Fix warning about conversion on mingw64George Zhao2018-01-18
|
* Fix an off-by-one error in the documentation of nvim_buf_clear_highlight (#7853)mkotha2018-01-15
|
* docJustin M. Keyes2017-12-10
| | | | closes #7622
* doc: API (generated)Justin M. Keyes2017-11-06
|
* doc: nvim_buf_add_highlight(): zero-indexed linesJustin M. Keyes2017-11-06
|
* bufhl: support creating new groupsBjörn Linse2017-10-19
|
* bufhl: fix moveBjörn Linse2017-06-24
|