Releases: darrenburns/posting
1.11.0
Added
- Duplicate request (with new request popup) under cursor in tree with
d
. - "Quick" duplicate request (without new request popup, request name is auto-generated) under cursor in tree with
D
(shift+d
). - Delete request (with confirmation modal) under cursor in tree with
backspace
. - "Quick" delete request (without confirmation modal) under cursor in tree with
shift+backspace
. - "Quit Posting" added to command palette.
- Move the sidebar to the right or left using
collection_browser.position: 'right' | 'left'
config. - Refinements to "galaxy" theme.
- "galaxy" theme is now default.
- Help text added to "empty state" in the collection browser.
- Extend info in the "Collection Browser" help modal.
- Visual indicator (a red bar on the left) on Input fields that contain invalid values.
- Toast message now appears when trying to submit the 'new request' modal with invalid values.
Fixed
- Ensure the location of the request on disk in the
Info
tab wraps instead of clipping out of view. - Inserting requests in sorted position on creation.
- Prevent creating requests with no name.
- Prevent submitting paths in the file-name field in the new request modal.
- Prevent specifying paths outside of the open collection dir in the directory field in the new request modal.
- Fix variables not being substituted into several fields, including auth.
Changed
- Upgrade to Textual version 0.76.0
- Change logic to render bindings in help modal to reflect new Textual API.
- Sort order of requests in the tree improved.
1.10.1
- fix: Disable Textual's
AUTO_FOCUS
behaviour, as it was causing focused widget to change unexpectedly on unmounting a screen.
Full Changelog: 1.10.0...1.10.1
1.10.0
Better user defined themes
Posting's theme system has received an upgrade 🛠️ 🎨
100% of the UI is now colored based on the chosen theme - including syntax highlighting!
You can also now target more specific elements in the UI with your themes, for times where you disagree with Posting's use of semantic colors.
In the GIF below, keep an eye on the text in the URL bar, and the syntax highlighting of the JSON displayed in the text area.
With recent changes to the snapshot testing system, we can check how Posting's appearance changes right inside a pull request on GitHub!
posting-svg-before-after.mov
Full Changelog: 1.9.3...1.10.0
1.9.3
- Upgrade and pin Textual at 0.74.0.
- Simplify text area theme naming conventions.
- fix: Ensure response status code border text is styled using the theme.
- fix: Ensure text area theme automatically updates when command palette is used to change theme.
Full Changelog: 1.9.2...1.9.3
1.9.2
What's Changed
- Fix check for missing colors in xresources by @SqrtMinusOne in #64
Full Changelog: 1.9.1...1.9.2
1.9.1
- Fix crash in auth form.
1.9.0
User defined themes
This release adds initial support for user defined themes 🎨.
Themes are simple YAML files which can be added to the Posting theme directory. You can find the default location of this directory by running posting locate themes
.
Here's the theme file for the theme above:
name: aurora
primary: '#4a90e2'
secondary: '#50e3c2'
accent: '#b8e986'
background: '#1c2331'
surface: '#2c3e50'
error: '#e74c3c'
warning: '#f39c12'
success: '#2ecc71'
panel: '#34495e'
dark: true
author: Darren Burns
description: An example theme.
homepage: https://github.com/darrenburns/posting
Copy this file into your themes directory and you'll be able to set aurora
as your theme using the config file (theme: aurora
), environment variable (POSTING_THEME=aurora
), or the command palette.
Share your themes!
Share your creations with the community at #60!
X Resources themes
There's also new support for themes loaded via X Resources.
New configuration options
There are a bunch of new configuration options for showing/hiding parts of the UI and enabling/disabling features.
Notably, themes will no longer automatically be previewed when you highlight them in the command palette by default. This can be re-enabled by setting command_palette.theme_preview
to false in the config file, or POSTING_COMMAND_PALETTE__THEME_PREVIEW=0
as an environment variable.
See the README for the full list of options.
Fixes
There are a few fixes, including an important one for handling Unicode. .posting.yaml
files are now always read and written as UTF-8.
Testing
I've added a snapshot testing which covers all sorts of user interactions. These now run in CI, and should help maintain stability going forward.
What's Changed
- Format request body that contains unicode as multi-line in .save_to_disk() (fix #48) by @devdanzin in #49
- Tests, continuous integration, new config, other improvements by @darrenburns in #53
- Theme system by @darrenburns in #57
- Add Xresources-based theme by @SqrtMinusOne in #35
New Contributors
- @devdanzin made their first contribution in #49
- @SqrtMinusOne made their first contribution in #35
Full Changelog: 1.8.0...1.9.0
1.8.0
- Upgrade Textual version.
- Removes a couple of workarounds that were fixed in Textual.
- Collection tree: New requests will now be added under the cursor rather than at the end of the children list in the current directory.
Full Changelog: 1.7.0...1.8.0
1.7.0
This release adds some extra keybinds for opening text area content in your pager/json pager/editor.
It also adds warning toast popups if these aren't defined or cannot be executed.
A couple of focus related issues with jump mode are also fixed.
- Add: extra bindings -
ctrl+P
(note the capital "P", that isctrl+shift+p
on your keyboard!) in a TextArea opens pager,ctrl+E
opens editor. This is in addition to the existingf3
andf4
bindings. - Add: warning toast if user attempts to open pager/editor but none are configured in the environment.
- Add: error toast if the user attempts to open pager/editor, but it fails to run due to an OSError.
- Fix: workaround jump mode styling issue (awaiting upcoming Textual fix).
- Fix: collection tree wouldn't be refocused if jump mode was dismissed.
Full Changelog: 1.6.0...1.7.0
1.6.0
Adds ssl.ca_bundle
configuration option for specifying custom CA bundles.
Full Changelog: 1.5.1...1.6.0