<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/functional/cmdline, branch master</title>
<subtitle>Neovim fork with Rahm's personal hacks.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/'/>
<entry>
<title>test: reorg #15698</title>
<updated>2021-09-17T16:16:40+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2021-09-17T16:16:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=d8de4eb685e35646c7d541e9a75bdc296127b7e2'/>
<id>d8de4eb685e35646c7d541e9a75bdc296127b7e2</id>
<content type='text'>
Problem:
Subdirectories like "visual", "insert", "normal" encourage people to
separate *related* tests for no good reason.  Typically the _mode_ is
not the relevant topic of a test (and when it is, _then_ create
an appropriate describe() or it()).

Solution:
- Delete the various `test/functional/&lt;mode&gt;/` subdirectories, move
  their tests to more meaningful topics.
- Rename `…/normal/` to `…/editor/`.
  - Move or merge `…/visual/*` and `…/insert/*` tests into here where
    appropriate.
- Rename `…/eval/` to `…/vimscript/`.
  - Move `…/viml/*` into here also.

* test(reorg): insert/* =&gt; editor/mode_insert_spec.lua
* test(reorg): cmdline/* =&gt; editor/mode_cmdline_spec.lua
* test(reorg): eval core tests =&gt; eval_spec.lua</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
Subdirectories like "visual", "insert", "normal" encourage people to
separate *related* tests for no good reason.  Typically the _mode_ is
not the relevant topic of a test (and when it is, _then_ create
an appropriate describe() or it()).

Solution:
- Delete the various `test/functional/&lt;mode&gt;/` subdirectories, move
  their tests to more meaningful topics.
- Rename `…/normal/` to `…/editor/`.
  - Move or merge `…/visual/*` and `…/insert/*` tests into here where
    appropriate.
- Rename `…/eval/` to `…/vimscript/`.
  - Move `…/viml/*` into here also.

* test(reorg): insert/* =&gt; editor/mode_insert_spec.lua
* test(reorg): cmdline/* =&gt; editor/mode_cmdline_spec.lua
* test(reorg): eval core tests =&gt; eval_spec.lua</pre>
</div>
</content>
</entry>
<entry>
<title>doc: fix typos</title>
<updated>2019-11-28T06:47:25+00:00</updated>
<author>
<name>Brian Wignall</name>
<email>brianwignall@gmail.com</email>
</author>
<published>2019-11-26T12:15:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=001e69cd4602e84219fd7cfd8ade62f0cb24097c'/>
<id>001e69cd4602e84219fd7cfd8ade62f0cb24097c</id>
<content type='text'>
close #11459
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
close #11459
</pre>
</div>
</content>
</entry>
<entry>
<title>doc + extmarks tweaks #11421</title>
<updated>2019-11-25T09:08:02+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2019-11-25T09:08:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=fd5710ae9a3bcbc0f9cbb71de9e39253350ff09c'/>
<id>fd5710ae9a3bcbc0f9cbb71de9e39253350ff09c</id>
<content type='text'>
- nvim_buf_get_extmarks: rename "amount" =&gt; "limit"
- rename `set_extmark_index_from_obj`</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- nvim_buf_get_extmarks: rename "amount" =&gt; "limit"
- rename `set_extmark_index_from_obj`</pre>
</div>
</content>
</entry>
<entry>
<title>cmdline: CTRL-R: Omit trailing &lt;CR&gt;.</title>
<updated>2017-02-18T22:24:35+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2017-02-18T22:15:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=baab49ee89a927f63bfefdb432155a1037afa93a'/>
<id>baab49ee89a927f63bfefdb432155a1037afa93a</id>
<content type='text'>
The "technically correct" interpretation is to execute the first line
that is seen (and this is what happens on middle-click paste in Vim).
^M is only intended to "defuse" the newline, so the user can review it.

The parent commit changed the behavior to insert &lt;Space&gt; between lines,
but that's a higher-risk change: it is arguably possible that some user
*wants* the literal ^M chars when e.g. assigning to a register:
    :let @a='&lt;C-R&gt;b'

To avoid that risk, keep the old behavior and only omit the last ^M.
This makes `yy:&lt;C-R&gt;0` nicer at no cost.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The "technically correct" interpretation is to execute the first line
that is seen (and this is what happens on middle-click paste in Vim).
^M is only intended to "defuse" the newline, so the user can review it.

The parent commit changed the behavior to insert &lt;Space&gt; between lines,
but that's a higher-risk change: it is arguably possible that some user
*wants* the literal ^M chars when e.g. assigning to a register:
    :let @a='&lt;C-R&gt;b'

To avoid that risk, keep the old behavior and only omit the last ^M.
This makes `yy:&lt;C-R&gt;0` nicer at no cost.
</pre>
</div>
</content>
</entry>
<entry>
<title>cmdline: CTRL-R: &lt;Space&gt; instead of CR between lines.</title>
<updated>2017-02-18T13:49:05+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2017-02-18T01:39:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=308ccb6f5e40ba1dbe4abfebc9df3399d7f17504'/>
<id>308ccb6f5e40ba1dbe4abfebc9df3399d7f17504</id>
<content type='text'>
^M isn't any more "correct" than space: the "technically correct"
interpretation is to execute the first line that is seen (and this is
what happens on middle-click paste in Vim). ^M is only intended to
defuse the newline, so that the user can review the command. We can do
that with a space instead, and then the command can be executed without
having to fix it up first.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
^M isn't any more "correct" than space: the "technically correct"
interpretation is to execute the first line that is seen (and this is
what happens on middle-click paste in Vim). ^M is only intended to
defuse the newline, so that the user can review the command. We can do
that with a space instead, and then the command can be executed without
having to fix it up first.
</pre>
</div>
</content>
</entry>
</feed>
