github darrenburns/posting 1.9.0

latest releases: 2.3.0, 2.2.0, 2.1.1...
6 months ago

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.

image

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.

image

What's Changed

New Contributors

Full Changelog: 1.8.0...1.9.0

Don't miss a new posting release

NewReleases is sending notifications on new releases.