Skip to content

Commit

Permalink
Rewrite to use Tmux native configuration rather than bash (catppuccin…
Browse files Browse the repository at this point in the history
…#318)

refactor!: Rewrite to use native tmux configuration (catppuccin#306)


Co-authored-by: vdbe <44153531+vdbe@users.noreply.github.com>

* Apply tmux.tera and comment suggestions from code review

* Cleanup test harness

* Make tests work for multiple lines

* Add a test helper script

* Add status line theming

* Fix shellcheck errors

* Fix test errors

---------

Co-authored-by: vdbe <44153531+vdbe@users.noreply.github.com>

* Use the full pallete to allow for user customisation

* First working tmux-native config

* Follow the style guide and add popup styling

* fix: `thm_gray`` -> `thm_surface_0`` (catppuccin#312)

Color names were replaced with upstream names.

* Make the status line application module work

* Fix tests

* Add test for the application module

* chore: replace `@message_background` with an hidden variable (catppuccin#313)

* Only set menu styling and popup styling on versions >= 3.4

* Always run the test tmux server under bash

* Convert session and load modules

* fix: test application use placeholder

Replace the commands with a known placeholder, this makes the tests
independent of a users preferred shell.

* chore: improve testing (catppuccin#314)

- fail tests if test scripts exit's with none 0 code
- don't expand option by default
- check all if colors are expanded
- check if module text is not expanded

* Feat/tmux native/status modules (catppuccin#315)

* chore: improve testing

- fail tests if test scripts exit's with none 0 code
- don't expand option by default
- check all if colors are expanded
- check if module text is not expanded

* feat(status): more modules

* Add style for window statuses

* Format readme.md with markdownlint

* Add slanted and rounded options for the window status

* Fix the application module test to ensure it works on macos

* Port window status separators and colours

* Remove dead code that is no longer used

* Expand installation instructions in the readme

* feat: more modules

* Support pane styling

* update pane styling information and colour values in the readme

* Add all window styling options

* Connect status separators when enabled

* Update readme regarding modules

* fix(session): add missing #

* fixup! fix(session): add missing #

* fix(status): works for all example/default configs

* feat(status): middle separator

* feat(status/window): icons (catppuccin#320)

* feat(status/window): icons

* chore: update icon order comments

* Fix the status module builder and tests

* fix: remove forgotten misplaced line

* Update the docs regarding custom modules and tidy up some formatting

* Ensure the tmux server is destroyed when the test exits

* fix(status): set status-left/right-length correctly

* docs: update readme

* fix: pane-format (catppuccin#322)

* fix(window): ensure the window styling options work

* Fix the example configs in the readme

---------

Co-authored-by: vdbe <44153531+vdbe@users.noreply.github.com>
Co-authored-by: vdbewout <vdbewout@gmail.com>
  • Loading branch information
3 people authored Sep 30, 2024
1 parent 5fbfcc1 commit e894efe
Show file tree
Hide file tree
Showing 69 changed files with 1,425 additions and 1,695 deletions.
71 changes: 0 additions & 71 deletions .github/scripts/test.bash

This file was deleted.

20 changes: 2 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,9 @@ jobs:
- name: Install tmux
run: sudo apt-get update && sudo apt-get install -y tmux=3.2a-4ubuntu0.2
- uses: actions/checkout@v4
- name: Config and Plugin
- name: Run Tests
shell: bash
run: |
bash --version
tmux -V
./.github/scripts/test.bash ./catppuccin.tmux
old-bash:
name: "Old Bash"
runs-on: ubuntu-latest
container:
image: bash:3.2.57-alpine3.19 # Bash version used by macos
steps:
- uses: actions/checkout@v4
- name: Check Syntax is Valid
shell: bash
run: |
apk update
apk add tmux
bash --version
tmux -V
./.github/scripts/test.bash ./catppuccin.tmux
./run_tests.sh
Loading

0 comments on commit e894efe

Please sign in to comment.