Skip to content

Commit 16c2bc3

Browse files
committed
release: v1.4.0, see CHANGELOG.md
1 parent 03ac20e commit 16c2bc3

5 files changed

Lines changed: 16 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [1.4.0] - 2021-07-03
10+
### Changed
11+
- Now `0.5.0` is the stable target and nvenv matches with actual neovim releases.
12+
913
## [1.3.0] - 2021-04-14
1014
### Removed
1115
- `update` command, use `update-nightly` instead
@@ -55,7 +59,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5559
- `use` command
5660
- `clean` command
5761

58-
[Unreleased]: https://github.com/NTBBloodbath/nvenv/compare/v1.3.0...HEAD
62+
[Unreleased]: https://github.com/NTBBloodbath/nvenv/compare/v1.4.0...HEAD
63+
[1.4.0]: https://github.com/NTBBloodbath/nvenv/releases/tag/v1.4.0
5964
[1.3.0]: https://github.com/NTBBloodbath/nvenv/releases/tag/v1.3.0
6065
[1.2.0]: https://github.com/NTBBloodbath/nvenv/releases/tag/v1.2.0
6166
[1.1.0]: https://github.com/NTBBloodbath/nvenv/releases/tag/v1.1.0

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ version manager, made using [Vlang](https://github.com/vlang/v).
2929
>
3030
> 2. MacOS (Untested, if you found issues please report them!)
3131
32-
Just download the latest binary from [releases](https://github.com/NTBBloodbath/nvenv/releases)
33-
and add it to your `$PATH`.
34-
3532
## Dependencies
3633

3734
- jq

nvenv.v

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import utils
33
import v.vmod
44
import cli { Command, Flag }
55

6+
67
fn main() {
78
vm := vmod.decode(@VMOD_FILE) or { panic(err.msg) }
89

@@ -128,7 +129,9 @@ fn list_remote_pre(_ Command) ? {
128129
fn list_remote(cmd Command) ? {
129130
versions_to_show := cmd.flags.get_int('versions') ?
130131
releases := 'https://api.github.com/repos/neovim/neovim/releases'
131-
jq_cmd := 'jq \'[.[] | select(.tag_name!="v0.4.4") | .tag_name] | .[:$versions_to_show] | .[]\''
132+
// Filter the releases JSON array and exclude v0.5.0 because stable is an alias
133+
// for this version
134+
jq_cmd := 'jq \'[.[] | select(.tag_name!="v0.5.0") | .tag_name] | .[:$versions_to_show] | .[]\''
132135

133136
remote_versions := os.execute('curl -s $releases | $jq_cmd').output
134137
if remote_versions.len == 0 {

utils/utils.v

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,12 @@ pub fn check_command(command string) {
8989
// Pretty print the local versions
9090
pub fn print_versions(versions []string, remote bool) {
9191
current_version := check_current()
92+
mut nvim_versions := versions.clone()
9293

93-
for version in versions {
94+
// by default the sort function sorts from 0-9 to a-z so we need to reverse
95+
// the order. In that way, stable and nightly will appear first.
96+
nvim_versions.sort()
97+
for version in nvim_versions.reverse() {
9498
// If listing remote versions, current version exists and version is equal to it
9599
if remote && (current_version != '' && version == current_version) {
96100
println('$version\t(installed, used)')

v.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Module {
22
name: 'nvenv'
33
author: 'NTBBloodbath'
4-
version: '1.3.0'
4+
version: '1.4.0'
55
repo_url: 'https://github.com/NTBBloodbath/nvenv'
66
vcs: 'git'
77
tags: ['neovim', 'version manager']

0 commit comments

Comments
 (0)