You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: migrate_to_v2.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
# Migration to v2.0
2
2
This is a guide for users that want to migrate to version `2.0` of `live-command`.
3
-
If you want to stay on version `1.0`, you can also pin the plugin to the tag `v1.0`.
3
+
If you want to stay on the previous major version, you can pin the plugin to the tag [`1.x`](https://github.com/smjonas/live-command.nvim/releases/tag/1.x).
4
4
5
5
## What has changed in version 2.0?
6
6
Version 2.0 is a rewrite of the plugin for better maintainability and future extensibility.
7
7
It simplifies the user-facing API while improving the architecture of the plugin and adding a new `:Preview` command.
8
8
9
9
**Breaking change**:
10
10
- Custom command specifications now only consist of a `cmd` value (a string); `args`
11
-
and `range` have been removed. See
11
+
and `range` have been removed. See[next section](#how-can-i-migrate-from-older-versions).
12
12
13
13
**New feature**:
14
14
- New generic `:Preview` command that allows to preview any command without having to
@@ -31,8 +31,8 @@ local commands = {
31
31
},
32
32
}
33
33
```
34
-
In `v2.0`, you have two options:
35
-
1. Define a command `Norm = { cmd = "norm" }` and use it as `:Norm <count>@<register>` (e.g., `:Norm 5@a` to apply macro stored in register `a` five times)
34
+
In version `2.0`, you have two options:
35
+
1. Define a command `Norm = { cmd = "norm" }` and use it as `:Norm <count>@<register>` (e.g., `:Norm 5@a` to apply macro stored in register `a` five times).
36
36
2. Define a custom `:Reg` user command like this that works just like the old version:
0 commit comments