camspiers / snap

A fast finder system for neovim.
The Unlicense
483 stars 16 forks source link

Run external commands as input #60

Closed bangedorrunt closed 3 years ago

bangedorrunt commented 3 years ago

Let's say I have the following external command which return an FZF result of note's path

rg title: | cut -d ' ' -f2- | fzf

Is it possible to use it with snap?

saadparwaiz1 commented 3 years ago

There is a snippet in readme that shows how to use ls with snap. You can adapt it to use your command.

bangedorrunt commented 3 years ago

Thank you! Somehow I overlooked that section.