Distinguish between accept, new, and cancel in interactive fzf workflows
Feature request
The interactive versions of list and edit are great, cause they do a lot of heavy lifting of the fzf config.
However, they are difficult to use in scripting, because there is no way to distinguish how I closed fzf.
For example, what I'm building is a workflow for creating new zettels based on zk edit -i, but after which I can select (using zk list -i) a structure zettel, to which the note will be automatically linked.
However, if I decide to change my mind during the edit -i window, I need to know so I can stop the rest of the script from running.
fzf exits with varying exit codes (it depends a bit on the flags), such as 130 when you quit without selecting, and 1 if you print a query which didn't hit any results
It would be fantastic if the interactive zk commands would simply carry on the exit code of the fzf, or provide some other way to detect what happened.
I'm currently working around it by using the non-interactive versions and piping them into fzf myself, but given the complexity of fzf's flags, it's not very fun.