KillTheMule
018e0d5a19
API/buffer-updates: always detach on buf-reload #9643
...
Independently of the 'undoreload' option and the length of the file.
closes #9642
closes #9643
2019-03-01 20:01:50 +01:00
Justin M. Keyes
aee29e51a6
API: nvim_create_buf: add scratch
parameter
...
Creating a scratch buffer is a chore/ritual, and would be more
useful/common if formally exposed.
2019-02-17 06:58:03 +01:00
Björn Linse
51fc54325c
ui: implement ext_messages
...
Co-Author: Dongdong Zhou <dzhou121@gmail.com>
2019-02-10 13:36:46 +01:00
Björn Linse
891ed14f13
api: add nvim_create_buf to create a new empty buffer.
...
Loading existing files into a buffer is non-trivial and requires a window.
Creating an unnamed emtpy buffer is trivial and safe though, thus worth a
special case.
Change nvim_buf_set_option to use aucmd_prepbuf. This is necessary
to allow some options to be set on a not yet displayed buffer, such
as 'buftype' option.
vim-patch:7.4.1858: Add BLN_NEW to enforce buflist_new creating new buffer
2019-02-09 11:48:45 +01:00
Björn Linse
baf93d9606
UI: always use contrete colors for default_colors_set
...
But add an escape hatch needed for external TUI, so it still can use
terminal emulator defaults.
2019-02-05 19:41:38 +01:00
Björn Linse
f7b174eb71
tests/lua: test for multiline error messages in lua
2019-01-23 19:34:13 +01:00
Justin M. Keyes
38b9256439
test/API: nvim_set_vvar() #9395
2019-01-14 00:50:29 +01:00
Björn Linse
1f8afe15a4
multigrid: add multigrid support to test infrastructure
...
make Screen explicitly tied to its session
2018-12-31 12:44:22 +01:00
Björn Linse
8b41f429bb
test/api: verify that UI options from stable metadata are preserved
2018-12-21 10:52:25 +01:00
Björn Linse
8b42249cdd
RPC: turn errors from async calls into notifications
...
Previously, nvim sent a response with invalid request id (UINT64_MAX).
In functionaltests, catch unexpected error notifications in after_each().
2018-12-03 10:42:00 +01:00
Justin M. Keyes
30857030e8
doc
...
- develop.txt is for design/guidelines; architecture/concepts should
live elsewhere (currently src/nvim/README.md)
- move dev-jargon to intro.txt
- replace https://neovim.io/community (deprecated) with
https://neovim.io/#chat
- <Cmd> avoids CmdlineEnter/Leave
https://github.com/vim/vim/issues/2889
2018-11-28 03:48:06 +01:00
Justin M. Keyes
b1aaa0a881
API: Implement nvim_win_set_buf() #9100
...
closes #9100
2018-11-25 16:27:10 +01:00
Björn Linse
01dbf0951b
api: implement object namespaces
...
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.
2018-11-24 11:01:37 +01:00
Björn Linse
c40f992e10
api: simplify nvim_buf_get_offset function
2018-11-01 22:00:40 +01:00
Björn Linse
281da0dd59
api: implement nvim_buf_get_offset_for_line
...
Like line2byte, but works for any buffer, and uses zero-based
indexing (API conventions).
2018-11-01 15:05:05 +01:00
Jan Edmund Lazo
7ab0e8c8dd
functionaltest: enable job channel test
2018-10-31 22:55:07 -04:00
Jan Edmund Lazo
bc5fb82c6d
functionaltest: win: enable diffput,diffget test
2018-10-31 22:55:07 -04:00
Björn Linse
bcab880bb6
api/ui: verify compatibility of UI events
2018-10-21 20:36:52 +02:00
Björn Linse
c8810a51a3
tests: improve robustness of immediate successes in screen tests
2018-10-15 20:13:11 +02:00
Björn Linse
43823acae2
ui: rename ext_newgrid to ext_linegrid
2018-10-01 21:24:15 +02:00
Björn Linse
4da5cb38d3
startup: always wait for UI with --embed, unless --headless also is supplied
2018-09-22 10:18:28 +02:00
Justin M. Keyes
608ff261ad
test: API validation: assert exact string
...
expect_err() matches against a pattern. Terminate the pattern with "$"
to check against buffer overrun.
ref #8931
2018-09-05 08:04:15 +02:00
Justin M. Keyes
db17d2c0fa
API: Avoid overrun when formatting error-message
...
msgpack_rpc_to_object (called by handle_request .. msgpack_rpc_to_array)
always NUL-terminates API Strings.
But handle_request .. msgpack_rpc_get_handler_for operates on a raw
msgpack_object, before preparation.
2018-09-05 08:04:15 +02:00
Daniel Hahler
643ef257b3
API: nvim_unsubscribe(): Handle unknown events #8745
...
close #8745
2018-08-28 10:20:19 +02:00
Peter Hodge
b53b621ef6
functests: tests related to operations on unloaded buffers #7688
2018-07-25 15:07:13 +10:00
Björn Linse
1adb01c120
ui: use line-based rather than char-based updates in screen.c
...
Add ext_newgrid and ext_hlstate extensions. These use predefined
highlights and line-segment based updates, for efficiency and
simplicity.. The ext_hlstate extension in addition allows semantic
identification of builtin and syntax highlights.
Reimplement the old char-based updates in the remote UI layer, for
compatibility. For the moment, this is still the default. The bulitin
TUI uses the new line-based protocol.
cmdline uses curwin cursor position when ext_cmdline is active.
2018-07-21 13:21:58 +02:00
Jan Edmund Lazo
175297a23a
tests: <SNR> is represented as 'R' (ASCII)
2018-07-12 20:26:54 -04:00
Justin M. Keyes
f65a751d82
test: nvim_buf_attach: reduce delay
...
This test is mostly a demo/reference for:
https://github.com/neovim/neovim/issues/8634#issuecomment-400940467
so let's not pay a 1s penalty.
2018-07-02 20:47:28 +02:00
Justin M. Keyes
b4fcf02316
test: nvim_buf_attach response after initial delay
...
ref #8634
2018-07-01 17:31:58 +02:00
Justin M. Keyes
60ef7889a2
test: buffer_updates: 10s timeout
2018-07-01 17:31:00 +02:00
KillTheMule
40911e435e
API: emit nvim_buf_lines_event from :terminal #8616
...
closes #8575
2018-07-01 14:42:56 +02:00
David Hotham
1cbc830189
API: nvim_win_set_cursor: set curswant #8613
...
Fixes #8591
2018-06-25 02:14:55 +02:00
Justin M. Keyes
f85cbea725
Merge #7917 'API: buffer updates'
2018-06-08 10:13:04 +02:00
Justin M. Keyes
3abf17ae88
API: validation: mention invalid method name ( #8489 )
2018-06-07 10:56:44 +02:00
Björn Linse
5be3865ce7
nvim_list_uis: include channel id
2018-06-01 10:20:13 +02:00
KillTheMule
333679ad0e
Add empty options dict to buf_attach
2018-05-23 22:07:27 +02:00
KillTheMule
65e7f6f0b9
Rename some more, fixe borked renaming
2018-05-23 22:07:27 +02:00
KillTheMule
0bee3925ab
Send changedtick as first event if buffer contents weren't requested
2018-05-23 22:07:27 +02:00
KillTheMule
ad151847f1
Unify updates_start and updates to lines_event
...
Also rename changedtick -> changedtick_event
2018-05-23 22:07:27 +02:00
KillTheMule
3866137eed
Update test
2018-05-23 22:07:27 +02:00
KillTheMule
e7451f8a91
Some renamings and doc changes
2018-05-23 22:07:27 +02:00
KillTheMule
de5d1e863c
Try fixing that test on travis
2018-05-23 22:07:27 +02:00
KillTheMule
5aa8af7cdb
Increase sendkeys timeout
2018-05-23 22:07:27 +02:00
KillTheMule
6bdcbef2f5
The grand renaming
2018-05-23 22:07:27 +02:00
KillTheMule
ec215a1962
Fix tests on windows
...
`cat` is distributed with neovim, so when can use it everywhere, as
opposed to `sort`.
The diffget test fails for unknown reasons on appveyor, mark it pending
for now.
2018-05-23 22:07:27 +02:00
KillTheMule
0476e0aef3
Make LiveUpdate return lastline instead of numreplaced
...
In analogy to `nvim_buf_set_lines`.
2018-05-23 22:07:27 +02:00
KillTheMule
37b8e95fd6
Lint
2018-05-23 22:07:27 +02:00
KillTheMule
8bcc011959
Make separate functions to start/stop live updates
2018-05-23 22:07:27 +02:00
KillTheMule
bafae1c427
Add argument to not send a buffers content when updates are enabled
...
Add a test.
2018-05-23 22:07:27 +02:00
Peter Hodge
79184809bb
Tests for buffer updates
...
Originally written by @phodge in
https://github.com/neovim/neovim/pull/5269 .
2018-05-23 22:07:27 +02:00