idanarye / nu_plugin_skim

MIT License
22 stars 0 forks source link

Support interactive mode #4

Closed idanarye closed 3 months ago

idanarye commented 5 months ago

For this, I need this to get merged: https://github.com/kimono-koans/two_percent/pull/12

Once it's in and they make a release, I can migrate to the "two_percent" fork of skim and support this kind of syntax:

sk -i --cmd {rg -l $in} --preview {rg $cq $in}

I need to figure out though how to get $cq (and other parameters - like $q) inside the closure. I don't want to use positional because I can't do introspection and it may mess up the way I use $in...