zk-org / zk-nvim

Neovim extension for zk
https://github.com/zk-org/zk
GNU General Public License v3.0
530 stars 42 forks source link

inline queries and documentation updates #11

Closed kabouzeid closed 2 years ago

kabouzeid commented 2 years ago

It's now possible to have inline queries like so:

VimL

:ZkList { createdAfter = "3 days ago", tags = { "work" } }
" or directly via Telescope, but functionality is limited in VimL
:Telescope zk notes createdAfter=3\ days\ ago

Lua

require("zk").list(nil, { createdAfter = "3 days ago", tags = { "work" } })
-- or directly via Telescope
require('telescope').extensions.zk.notes({ createdAfter = "3 days ago", tags = { "work" } })

Also many documentation updates, both in the code and in the README.

kabouzeid commented 2 years ago

The changes required for inline queries are actually quite minimal. The bulk of this PR is the added documentation and internal renaming of some things.