Skip to content

Commit cbd07ea

Browse files
committed
chore: prepare for 8.0 release
Note that this led me to document `commandt.setup.height`, which in turn led me to add validation for the value.
1 parent 9715dbc commit cbd07ea

File tree

4 files changed

+37
-24
lines changed

4 files changed

+37
-24
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ For more details, see the "command-t-development" section in [the documentation]
1010
2. Edit metadata in `lua/wincent/commandt/version.lua` to reflect new `$VERSION`.
1111
3. Commit using `git commit -p -m "chore: prepare for $VERSION release"`.
1212
4. Create tag with `git tag -s $VERSION -m "$VERSION release"`.
13-
5. Check release readiness with `make check`.
14-
6. Produce ZIP archive with `bin/create-archive`.
15-
7. Upload new release to [vim.org](http://www.vim.org/scripts/script.php?script_id=3025).
16-
8. Push with `git push --follow-tags`.
17-
9. Update [release notes on GitHub](https://github.com/wincent/command-t/releases).
18-
10. Start a new entry under "command-t-history" in `doc/command-t.txt` for subsequent development.
13+
5. Fast-forward the `release` branch to match the tag.
14+
6. Check release readiness with `make check`.
15+
7. Produce ZIP archive with `bin/create-archive`.
16+
8. Upload new release to [vim.org](http://www.vim.org/scripts/script.php?script_id=3025).
17+
9. Push with `git push --follow-tags`.
18+
10. Update [release notes on GitHub](https://github.com/wincent/command-t/releases).
19+
11. Start a new entry under "command-t-history" in `doc/command-t.txt` for subsequent development.
1920

2021
# Reproducing bugs
2122

doc/command-t.txt

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ See below for description of specific properties that can be used in the table
443443
passed to |commandt.setup()|:
444444

445445
- |commandt.setup.always_show_dot_files|
446+
- |commandt.setup.height|
446447
- |commandt.setup.ignore_case|
447448
- |commandt.setup.match_listing.border|
448449
- |commandt.setup.match_listing.icons|
@@ -485,6 +486,13 @@ whenever they match the search query.
485486

486487
See also |commandt.setup.never_show_dot_files|.
487488

489+
*commandt.setup.height*
490+
number (default: 15)
491+
492+
Sets the desired height for the Command-T match listing. Must be an integer
493+
greater than 0. Set a very large value (eg. 10000) if you want Command-T to
494+
use all available space.
495+
488496
*commandt.setup.ignore_case*
489497
boolean or function (default: none)
490498

@@ -812,26 +820,15 @@ the project issue tracker etc).
812820
As many users choose to track Command-T using Pathogen or similar, which often
813821
means running a version later than the last official release, the intention is
814822
that the "main" branch should be kept in a stable and reliable state as much
815-
as possible.
823+
as possible. For maximum safety, follow the "release" branch instead, which is
824+
fast-forwarded to point at the latest tagged version on each release.
816825

817826
Riskier changes are first cooked on the "next" branch for a period before
818827
being merged into "main". You can track this branch if you're feeling wild
819828
and experimental, but note that the "next" branch may periodically be rewound
820829
(force-updated) to keep it in sync with the "main" branch after each official
821830
release.
822831

823-
The release process is:
824-
825-
1. Update the version in `lua/wincent/commandt/version.lua`.
826-
2. Update |command-t-history|.
827-
3. Commit with a message like "chore: prepare for 6.0.0 release".
828-
4. Create a signed tag with `git tag -s -m '6.0.0 release` (or similar).
829-
5. Publish with `git push origin --follow-tags` (or similar).
830-
6. Create GitHub release and publish release notes.
831-
7. Create archive (eg. `git archive -o command-t-6.0.0-b.1.zip HEAD -- .` or
832-
similar).
833-
8. Upload to vim.org (http://www.vim.org/scripts/script.php?script_id=3025).
834-
835832

836833
WEBSITE *command-t-website*
837834

@@ -904,9 +901,16 @@ POSSIBILITY OF SUCH DAMAGE.
904901

905902
HISTORY *command-t-history*
906903

907-
main (not yet released) ~
904+
8.0 (26 June 2025) ~
908905

909-
- ...
906+
- Removed the Ruby implementation. Switch to the `7-x-release` branch if you
907+
still need it.
908+
- Fixed possible missing results when |commandt.setup.height| was set to a
909+
large value.
910+
- Improve performance when passing very large values for
911+
|commandt.setup.height|.
912+
- Fixed a race that could cause some results to be omitted.
913+
- Improve performance of scoring code by about 4% (wall-time).
910914

911915
7.0 (23 June 2025) ~
912916

lua/wincent/commandt/init.lua

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,15 @@ local options_spec = {
168168
return errors
169169
end,
170170
},
171-
height = { kind = 'number' },
171+
height = {
172+
kind = 'number',
173+
meta = function(context)
174+
if not is_integer(context.height) or context.height < 1 then
175+
context.height = 15
176+
return { '`height` must be a positive integer' }
177+
end
178+
end,
179+
},
172180
ignore_case = {
173181
kind = {
174182
one_of = {

lua/wincent/commandt/version.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
-- SPDX-License-Identifier: BSD-2-Clause
33

44
return {
5-
major = 7,
5+
major = 8,
66
minor = 0,
77
patch = 0,
88
prerelease = '',
9-
version = '7.0',
9+
version = '8.0',
1010
}

0 commit comments

Comments
 (0)