Here's a selection of some of the changes in Posting v2.10.0:
Dynamically loading environments
You can set Posting to read from a specific .env file at runtime, allowing you to swap in and out e.g. dev.env and prod.env without restarting. Note that this doesn't support loading multiple env files at once. To do that, you'll still need to load them in the order of precedence you require via the CLI. Thanks to @waylonwang for the contribution.
Copy values from any table
There's a new universal binding for copying keys, values, or both items from tables. Many of the tables in Posting share the same key-value structure. If you press c or y while one is focused, you're now presented with a modal which allows copying to your clipboard. Thanks for contributing, @viniciussoares!
🤔 We should probably add support for pasting the copied values, if you've copied both...
Import OpenAPI 3.0 specs
Previously, only OpenAPI 3.1 specs were supported. Thanks to a contribution from @znorris, v3.0 specs are now also importable.
Vim keys in the method selector
@Ben-Collett added support for Vim keys to the method selector dropdown.
Supporting symlinks for theme file auto-reloading
Posting automatically reloads your theme when you change the theme file. @erodriguez23777 ensured this also works when you're referring to a theme via a symlink.
Copy the URL
Thanks to @erodriguez23777 you can now copy the URL using ctrl+y.
Autogenerated by GitHub:
What's Changed
- Use standardized dependency-groups instead legacy dev-dependencies in pyproject.toml by @AndreyKuzmaDev in #341
- reference the contributions file inside the readme for developers by @itsmiketorres in #327
- Add UTF-8 encoding to file open operation by @2rtfm in #311
- improved select by @Ben-Collett in #322
- fix: include last character when yanking in visual mode by @erodriguez23777 in #342
- Support importing OpenAPI 3.0 specs by @znorris in #337
- Add dynamic environment file loading by @waylonwang in #339
- Feature: Add copy functionality to key-value tables by @viniciussoares in #326
New Contributors
- @AndreyKuzmaDev made their first contribution in #341
- @itsmiketorres made their first contribution in #327
- @2rtfm made their first contribution in #311
- @Ben-Collett made their first contribution in #322
- @erodriguez23777 made their first contribution in #342
- @znorris made their first contribution in #337
- @waylonwang made their first contribution in #339
- @viniciussoares made their first contribution in #326
Full Changelog: 2.9.2...2.10.0