diff --git a/.coverage b/.coverage index 22cf0106..0668f09d 100644 Binary files a/.coverage and b/.coverage differ diff --git a/README.md b/README.md index 487f1c03..480abd1b 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,10 @@ Some notable features include: - customizable keybindings - user-defined themes - run Python code before and after requests -- configuration +- extensive configuration - "open in $EDITOR" +- import curl commands by pasting them into the URL bar +- import OpenAPI specs - a command palette for quickly accessing functionality Visit the [website](https://posting.sh) for more information, the roadmap, and the user guide. diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 3dcb36c8..5ce7d9c5 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,3 +1,14 @@ +## 2.1.0 [11th November 2024] + +### Added + +- Import curl command by pasting it into the URL bar. + +### Changed + +- Collection browser width now adjusts based on content, so it doesn't waste a lot of space on larger screens. +- Info tab now shows "Request not saved to disk" if a request has not been saved to disk, rather than "None" or nothing at all. + ## 2.0.0 [18th October 2024] ### Added diff --git a/docs/guide/configuration.md b/docs/guide/configuration.md index cf747cbe..6b37bcff 100644 --- a/docs/guide/configuration.md +++ b/docs/guide/configuration.md @@ -104,7 +104,7 @@ The table below lists all available configuration options and their environment | Config Key (Env Var) | Values (Default) | Description | |----------------------|------------------|-------------| -| `theme` (`POSTING_THEME`) | `"posting"`, `"galaxy"`, `"monokai"`, `"solarized-light"`, `"nautilus"`, `"nebula"`, `"alpine"`, `"cobalt"`, `"twilight"`, `"hacker"` (Default: `"posting"`) | Sets the theme of the application. | +| `theme` (`POSTING_THEME`) | `"posting"`, `"galaxy"`, `"monokai"`, `"solarized-light"`, `"nautilus"`, `"nebula"`, `"alpine"`, `"cobalt"`, `"twilight"`, `"hacker"` (Default: `"galaxy"`) | Sets the theme of the application. | | `load_user_themes` (`POSTING_LOAD_USER_THEMES`) | `true`, `false` (Default: `true`) | If enabled, load user themes from the theme directory, allowing them to be specified in config and selected via the command palette. | | `load_builtin_themes` (`POSTING_LOAD_BUILTIN_THEMES`) | `true`, `false` (Default: `true`) | If enabled, load builtin themes, allowing them to be specified in config and selected via the command palette. | | `theme_directory` (`POSTING_THEME_DIRECTORY`) | (Default: `${XDG_DATA_HOME}/posting/themes`) | The directory containing user themes. | diff --git a/docs/guide/importing.md b/docs/guide/importing.md index 47176679..3bdfcb85 100644 --- a/docs/guide/importing.md +++ b/docs/guide/importing.md @@ -1,8 +1,14 @@ ## Overview -Posting currently supports importing from OpenAPI specs. +Posting supports importing from external sources. -Support for other API formats will be added in future updates. +## Importing from curl + +!!! example "This feature is experimental." + +You can import a curl command by pasting it into the URL bar. + +This will fill out the request details in the UI based on the curl command you pasted, overwriting any existing values. ## Importing from OpenAPI diff --git a/docs/overrides/home.html b/docs/overrides/home.html index 2782c829..2c1c9064 100644 --- a/docs/overrides/home.html +++ b/docs/overrides/home.html @@ -1665,10 +1665,12 @@
- Want to edit a request body in nvim or browse a JSON response in fx? No problem! - Posting lets you use the tools you love. + Edit a request body in nvim or browse a JSON response in fx? No problem! +
+ ++ Import curl requests into Posting by simply pasting into the URL bar.
-