Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prefix binding actions with app namespace #83

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-13, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.7
- name: Install and configure Poetry
uses: snok/install-poetry@v1.3.3
uses: snok/install-poetry@v1.4.1
with:
version: 1.4.2
version: 1.8.3
virtualenvs-in-project: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.6.0
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
Expand All @@ -43,4 +43,4 @@ jobs:
- name: Test with pytest
run: |
source $VENV
pytest tests
pytest tests
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8"
textual = ">=0.54.0"
textual = ">=0.61.0"
click = ">=8.0.0"


[tool.poetry.group.dev.dependencies]
mypy = "^1.2.0"
black = "^23.3.0"
pytest = "^7.3.1"
textual = ">=0.54.0"
textual = ">=0.61.0"

[build-system]
requires = ["poetry-core"]
Expand Down
10 changes: 7 additions & 3 deletions trogon/trogon.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ class CommandBuilder(Screen):
BINDINGS = [
Binding(key="ctrl+r", action="close_and_run", description="Close & Run"),
Binding(
key="ctrl+t", action="focus_command_tree", description="Focus Command Tree"
key="ctrl+t",
action="app.focus_command_tree",
description="Focus Command Tree",
),
Binding(key="ctrl+o", action="show_command_info", description="Command Info"),
Binding(key="ctrl+s", action="focus('search')", description="Search"),
Binding(
key="ctrl+o", action="app.show_command_info", description="Command Info"
),
Binding(key="ctrl+s", action="app.focus('search')", description="Search"),
Binding(key="f1", action="about", description="About"),
]

Expand Down