<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/functional/api/command_spec.lua, branch mix</title>
<subtitle>Neovim fork with Rahm's personal hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/'/>
<entry>
<title>fix(api)!: correctly deal with number before :tab</title>
<updated>2022-09-02T14:28:57+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2022-09-01T10:46:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=1ef7720567b08caec0c077605fb2a01a9d6eafbc'/>
<id>1ef7720567b08caec0c077605fb2a01a9d6eafbc</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(api): add support for :horizontal modifier</title>
<updated>2022-09-01T12:53:43+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2022-09-01T12:32:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=689f5d604e59eba1ddab6f91b458a8163dc6629d'/>
<id>689f5d604e59eba1ddab6f91b458a8163dc6629d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(usercmd): also check for whitespace after escaped character (#19942)</title>
<updated>2022-08-25T09:57:32+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2022-08-25T09:57:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=274e1122ade42095cd5b6416e70bda3aa0cb0423'/>
<id>274e1122ade42095cd5b6416e70bda3aa0cb0423</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(api/command): fargs behavior when no arguments are passed (#19862)</title>
<updated>2022-08-21T13:19:29+00:00</updated>
<author>
<name>Javier Lopez</name>
<email>graulopezjavier@gmail.com</email>
</author>
<published>2022-08-21T13:19:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=dde90f0ca4e394667afe39c18f4a4dabdd8a6666'/>
<id>dde90f0ca4e394667afe39c18f4a4dabdd8a6666</id>
<content type='text'>
Problem: A command defined with `nargs="?"` returns `fargs={""}` to
a Lua callback when executed with no arguments, which is inconsistent
with how`nargs="*"` behaves.

Solution: Pass `fargs={}` for no argument with `nargs="?"` as well.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem: A command defined with `nargs="?"` returns `fargs={""}` to
a Lua callback when executed with no arguments, which is inconsistent
with how`nargs="*"` behaves.

Solution: Pass `fargs={}` for no argument with `nargs="?"` as well.</pre>
</div>
</content>
</entry>
<entry>
<title>feat(api): add `unsilent` to command APIs</title>
<updated>2022-07-02T20:34:28+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2022-07-02T11:35:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=7a907c3314f939a3d2983ac07edc5c9672957352'/>
<id>7a907c3314f939a3d2983ac07edc5c9672957352</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(nvim_create_user_command): make `smods` work with `nvim_cmd`</title>
<updated>2022-06-08T09:24:52+00:00</updated>
<author>
<name>Famiu Haque</name>
<email>famiuhaque@protonmail.com</email>
</author>
<published>2022-06-08T03:06:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=c84bd9e21fb1e5c55c9c5370b07271a6ae96f19c'/>
<id>c84bd9e21fb1e5c55c9c5370b07271a6ae96f19c</id>
<content type='text'>
Closes #18876.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #18876.
</pre>
</div>
</content>
</entry>
<entry>
<title>feat: add preview functionality to user commands</title>
<updated>2022-05-31T14:55:05+00:00</updated>
<author>
<name>Famiu Haque</name>
<email>famiuhaque@protonmail.com</email>
</author>
<published>2022-04-20T11:02:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=46536f53e82967dcac8d030ee3394cdb156f9603'/>
<id>46536f53e82967dcac8d030ee3394cdb156f9603</id>
<content type='text'>
Adds a Lua-only `preview` flag to user commands which allows the command to be incrementally previewed like `:substitute` when 'inccommand' is set.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds a Lua-only `preview` flag to user commands which allows the command to be incrementally previewed like `:substitute` when 'inccommand' is set.
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(nvim_create_user_command): pass structured modifiers to commands</title>
<updated>2022-05-29T04:52:30+00:00</updated>
<author>
<name>Famiu Haque</name>
<email>famiuhaque@protonmail.com</email>
</author>
<published>2022-05-29T04:42:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=9988d2f214963b3cac70026d6ad4bb058837afd9'/>
<id>9988d2f214963b3cac70026d6ad4bb058837afd9</id>
<content type='text'>
Adds an `smods` key to `nvim_create_user_command` Lua command callbacks,
which has command modifiers but in a structured format. This removes the
need to manually parse command modifiers. It also reduces friction in
using `nvim_cmd` inside a Lua command callback.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds an `smods` key to `nvim_create_user_command` Lua command callbacks,
which has command modifiers but in a structured format. This removes the
need to manually parse command modifiers. It also reduces friction in
using `nvim_cmd` inside a Lua command callback.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(api): correctly pass f-args for nvim_create_user_command (#18098)</title>
<updated>2022-04-13T14:04:56+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>8965202+gpanders@users.noreply.github.com</email>
</author>
<published>2022-04-13T14:04:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=e463eb81465978b5de77e207af9ee1b416ca0053'/>
<id>e463eb81465978b5de77e207af9ee1b416ca0053</id>
<content type='text'>
Skip runs of whitespace and do not include `\` characters when
followed by another `\` or whitespace. This matches the behavior
of &lt;f-args&gt; when used with `:command`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Skip runs of whitespace and do not include `\` characters when
followed by another `\` or whitespace. This matches the behavior
of &lt;f-args&gt; when used with `:command`.</pre>
</div>
</content>
</entry>
<entry>
<title>refactor!: rename nvim_add_user_command to nvim_create_user_command</title>
<updated>2022-04-11T02:18:41+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>greg@gpanders.com</email>
</author>
<published>2022-04-11T01:12:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f94f75dc0512def7fbfdfe100eea2dab3352d61f'/>
<id>f94f75dc0512def7fbfdfe100eea2dab3352d61f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
