mirror of
https://github.com/mickael-menu/zk-nvim
synced 2024-11-17 15:25:43 +00:00
Fix typos in README (#15)
This commit is contained in:
parent
b0ce17b020
commit
17d2880421
@ -160,13 +160,13 @@ In addition, `options.notebook_path` can be used to explicitly specify a noteboo
|
||||
---
|
||||
**Via Lua**
|
||||
|
||||
You can access the underlying Lua function of a commands, with `require("zk.commands").get`.
|
||||
You can access the underlying Lua function of a command, with `require("zk.commands").get`.
|
||||
|
||||
*Examples:*
|
||||
```lua
|
||||
require("zk.commands").get("ZkNew")({ dir = "daily" })
|
||||
require("zk.commands").get("ZkNotes")({ createdAfter = "3 days ago", tags = { "work" } })
|
||||
require("zk.commands").get("ZkNewFromTitleSelection")() -- this will use your last visual mode selection
|
||||
require("zk.commands").get("ZkNewFromTitleSelection")()
|
||||
```
|
||||
|
||||
## Custom Commands
|
||||
@ -194,7 +194,7 @@ commands.add("ZkOrphans", function(options)
|
||||
end)
|
||||
```
|
||||
This adds the `:ZkOrphans [{options}]` vim user command, which accepts an `options` Lua table as an argument.
|
||||
We can execute it like this `:ZkOrphans { tags = "work" }` for example.
|
||||
We can execute it like this `:ZkOrphans { tags = { "work" } }` for example.
|
||||
|
||||
> Note: The `zk.edit` function is from the [high-level API](#high-level-api), which also contains other functions that might be useful for your custom commands.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user