Skip to content

Custom string preview #408

Description

@kidonng

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:

  1. Navigate to string
  2. Press custom preview key
  3. fx pipes the string to a program
  4. fx displays the result from the program instead of a plain string

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions