Skip to content

Commit

Permalink
Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 18, 2024
1 parent 1905f2b commit b964329
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
34 changes: 34 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
## 2.0.0 [18th October 2024]

### Added

- **Scripting**: This allows you run to run Python scripts before and after sending requests. Scripts can be used to perform setup, set variables, modify requests, and more.
- Define "setup", "pre-request" and "post-request" Python functions and attach them to requests.
- Posting will automatically reload these functions when they change, meaning you can edit them in an external editor while Posting is running.
- Scripts can be used to directly manipulate the request, set variables which are used in the request (e.g. set a `$token` variable which is used in the request URL).
- Output from scripts is captured and displayed in the "Scripts" tab.
- **Keymaps**: You can now change the default keybindings for any of Posting's "global" actions (e.g. sending request, opening jump mode, etc.) by editing `keymap` section of your `config.yaml` file.
- Added `heading.hostname` config to allow customisation of the hostname in the header. This field supports Rich markup. You may wish to use this to apply highlighting when `posting` is running on a production system vs a development environment, for example.
- Added `focus.on_request_open` config to automatically shift focus when a request is opened via the collection browser. For example, you might prefer to have focus jump to the "Body" tab when a request is opened.
- More detail and screenshots added to several sections of the guide.
- Much more detail added to the "Getting Started" section.
- Collections guide updated to explain more about the collection browser.
- Guide for Keymaps added.
- Guide for Scripting added.
- Guide for External Tools added (integrating with vim, less, fx, etc.)
- `alt`+`enter` can now be used to send a request (in addition to the existing `ctrl+j` binding).
- Tooltips added to more actions in the app footer. These appear on mouse hover.

### Changed

- Automatically apply `content-type` header based on the body type selected in the UI.
- Updated to Textual 0.83.0
- Various refinements to autocompletion, upgrading to textual-autocomplete 3.0.0a12.
- Dependency specifications loosened on several dependencies.
- Recommended installation method changed from rye to uv.

### Fixed

- Fixed double rendering in "jump mode" overlay.
- Fixed sidebar not working on mobile on https://posting.sh

## 1.13.0 [8th September 2024]

### Added
Expand Down
1 change: 0 additions & 1 deletion docs/guide/command_palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ It can be used to switch themes, show/hide parts of the UI, and more.
### Using the command palette

Press ++ctrl+p++ to open the command palette.

2 changes: 0 additions & 2 deletions src/posting/jump_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@ async def on_resize(self) -> None:
self._resize_counter += 1
if self._resize_counter == 1:
return
print("recomposing")
await self.recompose()

def _sync(self) -> None:
print("syncing")
self.overlays = self.jumper.get_overlays()
self.keys_to_widgets = {v.key: v.widget for v in self.overlays.values()}

Expand Down

0 comments on commit b964329

Please sign in to comment.