Skip to content

Commit

Permalink
Update changelog, fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Nov 17, 2024
1 parent 9898935 commit e1b6cde
Show file tree
Hide file tree
Showing 12 changed files with 1,654 additions and 1,015 deletions.
Binary file modified .coverage
Binary file not shown.
23 changes: 23 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
## 2.2.0 [17th November 2024]

### Added

- Added 15 new themes (4 specific to Posting, 11 inherited from Textual's new theme system).
- Themes are now in submenu of command palette.
- Keybinding assistant can now be displayed as a sidebar, teaching you keybindings as you go.
- New tooltips when hovering over collection browser keybinds in the app footer.

### Changed

- Syntax highlighting colours now derive automatically from the current theme.
- URL bar highlighting now derives automatically from the current theme.
- Method colour-coding in the collection browser is now derived automatically from the current theme.
- Jump mode UI has been refined to be more readable.
- Various refinements to existing themes.
- Options and descriptions in command palette reworded and reordered for clarity.
- Updated to Textual 0.86.1.

### Fixed

- Fixed error notification not rendering correctly when HTTP request times out.

## 2.1.1 [12th November 2024]

### Fixed
Expand Down
13 changes: 1 addition & 12 deletions src/posting/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from textual.content import Content

from posting.importing.curl import CurlImport
from rich.console import Group
from rich.text import Text
from textual import on, log, work
from textual.command import CommandPalette
from textual.css.query import NoMatches
Expand Down Expand Up @@ -837,7 +835,6 @@ class Posting(App[None], inherit_bindings=False):
id="help",
),
Binding("f8", "save_screenshot", "Save screenshot.", show=False),
Binding("ctrl+0", "next_theme", "Next theme", show=False),
]

def __init__(
Expand Down Expand Up @@ -962,11 +959,6 @@ def on_mount(self) -> None:
self.unregister_theme(theme_name)

self.theme = settings.theme
self.theme_names = cycle(
theme_name
for theme_name in self.available_themes.keys()
if theme_name not in unwanted_themes
)

self.set_keymap(self.settings.keymap)
self.jumper = Jumper(
Expand Down Expand Up @@ -1009,7 +1001,7 @@ def command_layout(self, layout: Literal["vertical", "horizontal"]) -> None:
def action_save_screenshot(
self,
) -> str:
self.search_themes()
return self.save_screenshot()

@on(CommandPalette.Opened)
def palette_opened(self) -> None:
Expand Down Expand Up @@ -1095,6 +1087,3 @@ def reset_focus(_) -> None:

self.set_focus(None)
await self.push_screen(HelpScreen(widget=focused), callback=reset_focus)

def action_next_theme(self) -> None:
self.theme = next(self.theme_names)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit e1b6cde

Please sign in to comment.