Skip to content

Releases: fioncat/otree

v0.6.5

03 Mar 10:52

Choose a tag to compare

Features

  • Add home and end keys and map them to scroll_{first,last}. (#126)
  • Add PageUp/PageDown support for Data Block view. (#125)
  • Add clipboard functionality with terminal multiplexer support. (#123)

What's Changed

  • feat: add clipboard functionality with terminal multiplexer support by @dferg in #123
  • Add PageUp/PageDown support for Data Block view by @plaes in #125
  • Home/end scrolling support by @plaes in #126

New Contributors

Full Changelog: v0.6.4...v0.6.5

v0.6.4

27 Jan 05:30

Choose a tag to compare

Fixes

  • Remove any in command line options.
  • XML: Handle empty nodes containing fields correctly. (#121)

What's Changed

  • fix(cmd): remove any in command line option by @fioncat in #113
  • build(deps): bump the all group with 2 updates by @dependabot[bot] in #115
  • build(deps): bump actions/checkout from 5 to 6 by @dependabot[bot] in #114
  • fix(xml): handle empty node with fields by @fioncat in #121

Full Changelog: v0.6.3...v0.6.4

v0.6.3

19 Nov 09:46
0e97a64

Choose a tag to compare

Features

Enhanced automatic Content Type detection. Even when users don't provide file extensions, otree can now automatically detect the ContentType based on the data content.

For example, the following command is now available:

echo '{"key": "value"}' | otree

Now otree will try invoking all parsers in order for unknown content, and whichever parser succeeds determines the format.

What's Changed

  • feat(parse): support detect content type from data by @fioncat in #111

Full Changelog: v0.6.2...v0.6.3

v0.6.2

15 Oct 10:10
57a4083

Choose a tag to compare

Features

  • Data block now support wrap mode, this will disable horizontal scrolling, and
    long text will be split to a new line. You can enable this by --wrap or
    -w command line option. To change the default behavior, add data.wrap = true in config file. (#104)
image

What's Changed

  • build(deps): bump the all group across 1 directory with 6 updates by @dependabot[bot] in #105
  • feat(data): support wrap mode by @fioncat in #108

Full Changelog: v0.6.1...v0.6.2

v0.6.1

26 Aug 08:45

Choose a tag to compare

Features

  • Improve footer display when the terminal width is narrow. (#96)
  • Show section name when using toml objects and arrays. (#98)
  • Support hcl. (#99)
  • Add --to or -o command line option, to convert current data to another schema. (#100)
    • For example, convert current data from JSON to TOML: otree /path/to/file.json -o toml.
    • This will print TOML content to stdout.
  • Upgrade various dependencies.

What's Changed

  • feat(ui): enhance footer display logic for root paths by @fioncat in #96
  • feat(parse): improve syntax highlighting for toml by @fioncat in #98
  • build(deps): bump crossterm from 0.28.1 to 0.29.0 in the all group by @dependabot[bot] in #97
  • feat(parse): support hcl by @fioncat in #99
  • feat(cmd): support convert data to another schema by @fioncat in #100

Full Changelog: v0.6.0...v0.6.1

v0.6.0

25 Aug 08:40

Choose a tag to compare

Features

  • Highlighting for filter keywords (#94)

    • The default filter behavior has changed: instead of hiding unmatched items, all items are now displayed, with matches highlighted. This makes it easier to distinguish filtered results without losing context.
    • If you prefer the old behavior (hiding unmatched items), you can enable it by setting filter.exclude_mode = true.
  • Filter navigation actions (#95). In filter mode, you can now quickly jump between matches using the new actions:

    • filter_next_match (default key: n)
    • filter_prev_match (default key: N)
  • 🎉 All items in the roadmap have been completed!

Screenshot of highlighting in filter mode (now it looks like vim 😄):

image

What's Changed

  • feat(ui): support highlighting filter keyword in tree by @fioncat in #94
  • feat(ui): support filter navigation by @fioncat in #95

Full Changelog: v0.5.2...v0.6.0

v0.5.2

25 Aug 02:37
bb8f819

Choose a tag to compare

Features

Add new XML parser!

XML will be parsed in the same way as yq.

In short:

  • If an XML element contains attributes, they will be represented in the tree as String items, with their keys prefixed by "@" for distinction.
  • If an XML element has attributes, then even if its value is a string, it will be expanded into an object. The element's text value will be stored in a special field called "#text".

For example:

<outer attr="value">
  <inner>1</inner>
  <inner attr="value">2</inner>
  <inner>3</inner>
</outer>

Will be parsed as:

{
  "outer": {
    "inner": [
      "1",
      {
        "@property": "value",
        "#text": "2"
      },
      "3"
    ]
  },
  "@property": "value"
}

What's Changed

  • build(deps): bump the all group across 1 directory with 4 updates by @dependabot[bot] in #91
  • feat(parse): support xml by @fioncat in #92

Full Changelog: v0.5.1...v0.5.2

v0.5.1

20 Aug 02:42
6131429

Choose a tag to compare

Fixes

  • Fix panic when using action expand_children for empty object. (#87)

What's Changed

New Contributors

Full Changelog: v0.5.0...v0.5.1

v0.5.0

08 Aug 03:26

Choose a tag to compare

Features

  • Add filter (filter by keys and values, default binding to /), filter_key (filter by key, default binding to ?) and filter_value (filter by values, default binding to *) actions to filter items. (#82)
  • Add show_help (default binding to H) action to show help message (all actions and their bindings) in popup widget. (#83)
  • Add expand_children (default binding to x) and expand_all (default binding to X) actions. (#84)

What's Changed

  • feat: support filtering by key or value by @fioncat in #82
  • feat: support help action by @fioncat in #83
  • feat: add expand_children and expand_all actions by @fioncat in #84

Full Changelog: v0.4.1...v0.5.0

v0.4.1

05 Aug 09:16

Choose a tag to compare

What's Changed

  • build(deps): bump the all group across 1 directory with 5 updates by @dependabot[bot] in #73
  • build(deps): bump the all group across 1 directory with 3 updates by @dependabot[bot] in #76
  • feat(ui): when copying simple values, use pure text by @fioncat in #80

Full Changelog: v0.4.0...v0.4.1