Would like to be able to transform the string before previewing (p) it, like piping to jq (or fx itself) to handle nested JSON, piping to a markdown rendered to handle markdown etc.
This is different from print (P) as the latter exits fx. This would stay instead. Process is:
- Navigate to string
- Press custom preview key
- fx pipes the string to a program
- fx displays the result from the program instead of a plain string
Would like to be able to transform the string before previewing (p) it, like piping to
jq(orfxitself) to handle nested JSON, piping to a markdown rendered to handle markdown etc.This is different from print (P) as the latter exits fx. This would stay instead. Process is: