Skip to content

Releases: antonmedv/fx

35.0.0

27 Jun 10:05
dbceea3
Compare
Choose a tag to compare

Fx is terminal JSON viewer & processor.

fx preview

In this release:

  • Fixed a bug with very long arguments 44e7388
  • Fixed a bug with closing profiles properly (#307)
  • Fixed bash autocomplete for files without newline at the end (#304)
  • Fixed a bug with --raw flag reading files without newline at the end e465f7d
  • Updated dependencies 48a9ee9

34.0.0

28 Mar 15:07
21f5833
Compare
Choose a tag to compare

Fx is terminal JSON viewer & processor.

fx preview

In this release:

  • Now fx has a built-in JS engine! So, JSON processing will work everywhere!
  • Added list function to print array as list of strings.
  • Fixed yanking of wrapped object keys.

33.0.0

15 Mar 20:33
b7c4bab
Compare
Choose a tag to compare

fx preview

Terminal autocomplete

This release adds terminal autocomplete for fx command. It's available for bash, zsh, and fish.

fx preview

New configuration options

  • FX_SHOW_SIZE - show the size of the arrays and objects
  • FX_NO_MOUSE - disable mouse support
  • FX_THEME - set the theme for the output

32.0.0

11 Mar 21:03
7b5d446
Compare
Choose a tag to compare

fx preview

YAML support

Now you can use fx to view and process YAML files!

fx example.yaml
# or 
cat example.yaml | fx --yaml

Fx will automatically convert YAML to JSON. The npm version of fx also supports YAML and provides YAML.parse and YAML.stringify functions.

npx fx example.yaml '.jobs.test.steps' YAML.stringify

Expand with 1-9 keys

Now you can use 1-9 keys to expand nested objects and arrays up to nth level.

Keybindings help

Type ? to see all available keybindings. Press ? again to close the help.

Preview mode

Type p to toggle preview mode. In preview mode, strings are unquoted and newlines are preserved.

fx preview

This is useful when you want to see content of a long string.

Print to stdout

Type P to print the currently selected value to stdout. This is useful when you want to pipe the output of fx to another command.

curl https://fx.wtf/example.json | fx > part.json

Docker image

Now you can use fx as a Docker image.

docker run -it --rm -v .:/data:ro antonmedv/fx file.json

31.0.0

10 Nov 22:14
1952074
Compare
Choose a tag to compare

fx preview

  • Added support for JSON streaming/JSON lines.
  • Added new syntax sugar for .map(x => x.key) as @.key.
  • Improved JSON parsing error messages.
  • Improved JS reducer error messages.

30.2.0

26 Sep 19:36
1d02a1f
Compare
Choose a tag to compare

fx preview

  • Added keys() and values() functions.

30.1.1

25 Sep 19:59
c861b44
Compare
Choose a tag to compare
  • Replace gid input with current path only if cursor at the end
  • Allow JSON path to start with [ char
  • Added more built-in functions (https://fx.wtf)
  • Fixed dig on ctrl+w (#275)

30.1.0

24 Sep 13:06
7abb4de
Compare
Choose a tag to compare

fx preview

  • Added better dig path word jumping
  • Added len() func
  • Added fx themes to JS version
  • Fix: wrap collapsed nodes
  • Deleted gradient themes
  • Better dig key handling
  • Fixed \/ in key

30.0.3

19 Sep 19:51
81af5e8
Compare
Choose a tag to compare

Fx - terminal JSON viewer.

fx preview

30.0.2

19 Sep 11:36
d2d9eaf
Compare
Choose a tag to compare

Fx - terminal JSON viewer.

fx preview