[mini.pick] added mini.pick
as a picker for zk-nvim
#785
Replies: 2 comments 2 replies
-
Another one great customization! Thanks for sharing! My intuition says that using overridden (Hope all 1:1 meetings went well)
Those screen recordings are done on Linux with SimpleScreenRecorder and Screenkey. |
Beta Was this translation helpful? Give feedback.
-
LOL. In my day job, since July of 2022 when I switched to neovim from doom emacs (and org mode), I've accumulated 1,205 notes in
Yeah, in this case, the small quality of life improvements add up quickly given how much time I spend taking notes, so I wanted a full integration. Plus, I also wanted to help spread the word about
|
Beta Was this translation helpful? Give feedback.
-
I use zk and its neovim plug-in zk-nvim extensively. This is a markdown-based note taking system with fantastic integration with neovim (LSP, support for various pickers, etc ...). Out of the box,
zk-nvim
supports the following pickers:vim.ui.select
,fzf
,fzf_lua
, andtelescope
.Over the past several weekends, I've been working on an almost exclusive mini configuration (sorry,
mini.pairs
). I wanted to see if I could add support formini.pick
, so I could eliminate telescope altogether. I'm happy to say it was fairly trivial (well, it took me a few hours, mostly reading docs).Here's a quick demo which I suppose will just look like any other file-based source. But, nonetheless, I thought I'd share in case others use
zk-nvim
. I'll be submitting a PR to them tomorrow.zk-minipick.mov
p.s. Not sure how to make good screen recordings like @echasnovski. I'm on a Mac and this was just a QuickTime screen recording. You can't see keys I'm typing unfortunately, but the first sequence was
<leader>ns
(+Notes -> Search), and the second was<leader>nt
(+Notes -> Tags).Here's how I integrated it. The three functions here must be implemented for a
zk-nvim
picker, so it was easy to plug-in inmini.pick
. I just had to wrap the note object in a new table for thetext
andpath
fields to take advantage of the builtins inmini.pick
. Same with the tag object in the tag picker, but this time so I could format it nicely (count of tags with the tag name). In both cases, I had to use my own choose that just returnstrue
to stop the picker becausezk-nvim
has its own callback where it opens the notes.Beta Was this translation helpful? Give feedback.
All reactions