github-actions[bot]
f294712d8c
[Backport release-0.8] doc ( #20616 )
...
docs: various
- increase python line-length limit from 88 => 100.
- gen_help_html: fix bug in "tag" case (tbl_count => tbl_contains)
ref #15632
fix #18215
fix #18479
fix #20527
fix #20532
Co-authored-by: Ben Weedon <ben@weedon.email >
(cherry picked from commit f37cd2bb15
)
Co-authored-by: Justin M. Keyes <justinkz@gmail.com >
2022-10-12 05:08:18 -07:00
bfredl
b414e9fdbb
Merge pull request #20364 from zeertzjq/parse-cmd-omit
...
fix(api)!: nvim_parse_cmd omit "count" "range" "reg" if not supported
2022-09-30 09:59:45 +02:00
zeertzjq
cb62592bcb
fix(api)!: nvim_parse_cmd omit "count" "range" "reg" if not supported
2022-09-30 11:24:23 +08:00
Famiu Haque
e46eef75ac
feat(nvim_cmd): allow using first argument as count
...
Allows `nvim_cmd` to use the first argument as count for applicable
commands. Also adds support for non-String arguments to `nvim_cmd`.
2022-09-29 19:31:40 +06:00
zeertzjq
45707c1eae
fix(api): fix nvim_cmd crash with filename expansion ( #20397 )
2022-09-29 16:04:14 +08:00
ii14
4dc4cf3467
fix(options): mark winhighlight
as list style ( #19477 )
...
Also add missing fcs, lcs and winhighlight to list of key-value options for `vim.opt`.
Co-authored-by: ii14 <ii14@users.noreply.github.com >
2022-09-07 17:59:27 +02:00
zeertzjq
1ef7720567
fix(api)!: correctly deal with number before :tab
...
Now nvim_parse_cmd and nvim_create_user_command use a "tab" value which
is the same as the number passed before :tab modifier instead of the
number plus 1, and "tab" value is -1 if :tab modifier is not used.
2022-09-02 22:28:57 +08:00
zeertzjq
689f5d604e
feat(api): add support for :horizontal modifier
2022-09-01 20:53:43 +08:00
zeertzjq
15a768eeb0
fix(api): avoid side effects with nvim_parse_cmd ( #19890 )
...
Save and restore the cursor and last search pattern and do not change
search history.
2022-08-22 18:06:18 +08:00
zeertzjq
03fddfd928
fix(api): nvim_exec and nvim_cmd restore msg_col when capturing output ( #19789 )
...
This matches the code in execute_common(), preventing messages after the
API call from being printed at the wrong column.
2022-08-16 17:30:39 +08:00
Famiu Haque
78658ef383
fix(api): vim.cmd.make
crashes when argument count isn't 1 ( #19701 )
...
Closes #19696
2022-08-10 18:37:59 +08:00
Lewis Russell
0fdf59ac9d
fix(api): nvim_cmd handle 0 range ( #19655 )
...
Fixes #19608
2022-08-06 13:53:37 +01:00
notomo
46e3e1c728
fix(api): make nvim_cmd mods.silent work correctly ( #19489 )
2022-07-25 09:43:39 +08:00
zeertzjq
9f837a5dcf
fix(api): fix nvim_parse_cmd interfere with printing line in Ex mode ( #19400 )
2022-07-17 09:59:32 +08:00
zeertzjq
73526abbbd
fix(api): do not switch win/buf if getting option in current win/buf ( #19383 )
2022-07-16 09:31:05 +08:00
zeertzjq
7a907c3314
feat(api): add unsilent
to command APIs
2022-07-03 04:34:28 +08:00
zeertzjq
610cf9f950
vim-patch:8.0.1570: can't use :popup for a menu in the terminal
...
Problem: Can't use :popup for a menu in the terminal. (Wei Zhang)
Solution: Make :popup work in the terminal. Also fix that entries were
included that don't work in the current state.
29a2c08d79
2022-07-01 10:17:39 +08:00
Famiu Haque
606ec8b708
feat(api): make nvim_parse_cmd
and nvim_cmd
support :filter
...
Also fixes a memory leak in `parse_cmdline`.
Closes #18954 .
2022-06-28 17:31:04 +06:00
zeertzjq
cf23695dd7
fix(api): nvim_parse_cmd check for ambiguous user command ( #19116 )
2022-06-27 14:10:13 +08:00
Gregory Anders
58d028f64b
feat(api): add "buf" and "win" to nvim_get_option_value
...
These mirror their counterparts in nvim_set_option_value.
2022-06-20 09:16:21 -06:00
bfredl
e3281d992e
fix(tests): check for EOF on exit of nvim properly
2022-06-13 10:15:44 +02:00
bfredl
24352cba01
Merge pull request #18528 from lewis6991/setwinopt
...
feat(api): add `win` and `buf` to `nvim_set_option_value`
2022-05-25 17:05:28 +02:00
Famiu Haque
fb8fa004d8
fix: make nvim_cmd
not suppress errors inside key mapping
...
Closes #18632
2022-05-19 22:23:14 +06:00
Famiu Haque
e1bdb2a258
feat(ui): add 'winbar'
...
Adds support for a bar at the top of each window, enabled through the
`'winbar'` option.
Co-authored-by: Björn Linse <bjorn.linse@gmail.com >
2022-05-18 09:27:08 +06:00
Lewis Russell
6219331c4d
feat(api): add win and buf to nvim_set_option_value
...
Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com >
2022-05-17 14:48:10 +01:00
deforde
0a3d615b1c
fix(api): nvim_eval_statusline should validate input #18347
...
Fix #18112
Make an exception for strings starting with "%!".
2022-05-15 13:06:23 -07:00
Famiu Haque
cf68f0a512
fix(api): make nvim_cmd
work correctly with empty arguments list ( #18527 )
...
Closes #18526 .
2022-05-11 10:51:53 -06:00
Famiu Haque
dfcc584665
feat(api): add nvim_cmd
...
Adds the API function `nvim_cmd` which allows executing an Ex-command through a Dictionary which can have the same values as the return value of `nvim_parse_cmd()`. This makes it much easier to do things like passing arguments with a space to commands that otherwise may not allow it, or to make commands interpret certain characters literally when they otherwise would not.
2022-05-11 13:12:16 +06:00
Famiu Haque
14f3383c0d
fix(api): make nvim_parse_cmd
work correctly with both range and count
...
It seems range and count can be used together in commands. This PR fixes
the behavior of `nvim_parse_cmd` for those cases by removing the mutual
exclusivity of "range" and "count". It also removes range line number
validation for `nvim_parse_cmd` as it's not its job to validate the
command.
2022-05-07 12:26:49 +06:00
Famiu Haque
511f06a56e
fix(api): make nvim_parse_cmd
propagate errors
...
Makes `nvim_parse_cmd` propagate any errors that occur while parsing to
give the user a better idea of what's wrong with the command.
2022-05-05 23:11:57 +06:00
Famiu Haque
7aedcd8feb
refactor(api): make range
in nvim_parse_cmd
an array
...
Changes the `range` value in `nvim_parse_cmd` into an array to describe
range information more concisely. Also makes `range` and `count` be
mutually exclusive by making count `-1` when command takes a range
instead of a count. Additionally corrects the behavior of `count` for
built-in commands by making the default count `0`.
2022-05-05 20:35:14 +06:00
Famiu Haque
3ec93ca92c
feat(nvim_parse_cmd): add range, count, reg #18383
...
Adds range, count and reg to the return values of nvim_parse_cmd. Also makes
line1 and line2 be -1 if the command does not take a range. Also moves
nvim_parse_cmd to vimscript.c because it fits better there.
2022-05-04 05:04:01 -07:00
Famiu Haque
8dbb11ebf6
feat(api): add nvim_parse_cmdline
...
Adds an API function to parse a command line string and get command information from it.
2022-04-30 21:04:51 +06:00
zeertzjq
519e4c4472
test: correct order of arguments to eq() and neq()
2022-04-26 11:38:58 +08:00
Eden Zhang
813ecdac79
fix(paste): ignore mappings in Cmdline mode ( #18114 )
2022-04-17 08:11:53 +08:00
zeertzjq
a9665bb12c
fix(event-loop): duplicate display updating logic in vgetorpeek() ( #17913 )
2022-03-30 05:25:00 +08:00
zeertzjq
77eb6f9dc7
fix(api, lua): return NIL on failure to find converted function ( #17779 )
2022-03-20 08:08:50 +08:00
zeertzjq
e263afc0e9
fix(paste): escape control characters in Cmdline mode
2022-03-15 18:15:18 +08:00
zeertzjq
3470a9c3de
test(paste): add tests with virtualedit=onemore
2022-03-15 18:15:18 +08:00
zeertzjq
e4ec8d7d50
test(paste): reorganize tests and add tests for linewise Visual mode
2022-03-15 18:15:18 +08:00
zeertzjq
a6eafc77ce
fix(paste): deal with trailing new line in chunk
2022-03-15 18:15:18 +08:00
zeertzjq
fcc6f66cf2
fix(paste): avoid edges cases caused by empty chunk
2022-03-15 18:15:18 +08:00
zeertzjq
bfb7754442
fix(paste): deal with eol and eof in Visual mode
2022-03-15 18:15:18 +08:00
zeertzjq
2601e0873f
fix(paste): don't move cursor past the end of pasted text in Normal mode
2022-03-15 18:15:18 +08:00
zeertzjq
9b1e1fbc9f
fix(paste): use getcmdtype() to determine whether in cmdline mode
2022-03-15 18:15:18 +08:00
zeertzjq
3011794c86
feat(api): relax statusline fillchar width check
...
Treat fillchar as single-width even if it isn't.
2022-03-10 07:40:52 +08:00
Lewis Russell
d512be55a2
fix(api): re-route nvim_get_runtime_file errors
...
This allows nvim_get_runtime_file to be properly used via pcall
2022-02-15 23:00:28 +00:00
shadmansaleh
f292dd2126
fix: autoload variables not loaded with vim.g & nvim_get_var
2022-02-13 01:23:23 +06:00
zeertzjq
23c3f7f572
fix(api): use changedir_func() in nvim_set_current_dir()
...
Co-Authored-By: smolck <46855713+smolck@users.noreply.github.com >
2022-02-10 09:45:20 +08:00
glacambre
5b34c2ab73
fix(--headless): do not block on press-enter prompts when no UI
...
This commit fixes #9358 , where emitting multiple messages with 'echo' or
a single one with 'echom' or 'echoerr' would result in a press-enter
prompt that couldn't be dismissed by pressing enter.
This requires adapting a few tests to spawn a UI before testing whether
press-enter prompts are blocking.
It also fixes #11718 , as when combined with #15910 it enables making
sure that neovim never blocks and emits messages on startup.
2022-02-05 13:02:33 +01:00