Skip to content

Commit 5af5eec

Browse files
committed
Merge branch 'main' of github.com:Textualize/textual into binding-descriptions
2 parents daf61e7 + c5f8726 commit 5af5eec

25 files changed

+884
-92
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## Unreleased
9+
10+
### Added
11+
12+
- Added support for keymaps (user configurable key bindings) https://github.com/Textualize/textual/pull/5038
13+
814
## [0.81.0] - 2024-09-25
915

1016
### Added

docs/FAQ.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Some terminal emulators have a translucent background feature which allows the d
5858
This feature is unlikely to work with Textual, as the translucency effect requires the use of ANSI background colors, which Textual doesn't use.
5959
Textual uses 16.7 million colors where available which enables consistent colors across all platforms and additional effects which aren't possible with ANSI colors.
6060

61-
For more information on ANSI colors in Textual, see [Why no Ansi Themes?](#why-doesnt-textual-support-ansi-themes).
61+
For more information on ANSI colors in Textual, see [Why no ANSI Themes?](#why-doesnt-textual-support-ansi-themes).
6262

6363
---
6464

@@ -68,7 +68,7 @@ For more information on ANSI colors in Textual, see [Why no Ansi Themes?](#why-d
6868
!!! tip
6969

7070
See [*How To Center Things*](https://textual.textualize.io/how-to/center-things/) in the
71-
Textual documentation for a more comprensive answer to this question.
71+
Textual documentation for a more comprehensive answer to this question.
7272

7373
To center a widget within a container use
7474
[`align`](https://textual.textualize.io/styles/align/). But remember that
@@ -130,7 +130,7 @@ If you want them more like this:
130130
+---------------+
131131
```
132132

133-
the best approach is to wrap each widget in a [`Center`
133+
The best approach is to wrap each widget in a [`Center`
134134
container](https://textual.textualize.io/api/containers/#textual.containers.Center)
135135
that individually centers it. For example:
136136

@@ -267,10 +267,10 @@ work in different environments you can try them out with `textual keys`.
267267

268268
---
269269

270-
<a name="why-doesn't-textual-look-good-on-macos"></a>
270+
<a name="why-doesnt-textual-look-good-on-macos"></a>
271271
## Why doesn't Textual look good on macOS?
272272

273-
You may find that the default macOS Terminal.app doesn't render Textual apps (and likely other TUIs) very well, particuarily when it comes to box characters.
273+
You may find that the default macOS Terminal.app doesn't render Textual apps (and likely other TUIs) very well, particularly when it comes to box characters.
274274
For instance, you may find it displays misaligned blocks and lines like this:
275275

276276
<img width="1042" alt="Screenshot 2023-06-19 at 10 43 02" src="https://github.com/Textualize/textual/assets/554369/e61f3876-3dd1-4ac8-b380-22922c89c7d6">
@@ -305,7 +305,7 @@ We recommend any of the following terminals:
305305

306306
---
307307

308-
<a name="why-doesn't-textual-support-ansi-themes"></a>
308+
<a name="why-doesnt-textual-support-ansi-themes"></a>
309309
## Why doesn't Textual support ANSI themes?
310310

311311
Textual will not generate escape sequences for the 16 themeable *ANSI* colors.
@@ -319,22 +319,22 @@ Textual has a design system which guarantees apps will be readable on all platfo
319319

320320
There is currently a light and dark version of the design system, but more are planned. It will also be possible for users to customize the source colors on a per-app or per-system basis. This means that in the future you will be able to modify the core colors to blend in with your chosen terminal theme.
321321

322-
!!! Changed in 0.80.0
322+
!!! tip "Changed in version 0.80.0"
323323

324-
Textual added an `ansi_color` boolean to App. If you set this to `True`, then Textual will
325-
not attempt to convert ansi colors. Note that you will lose transparency effects if you enable
326-
this setting.
324+
Textual added an `ansi_color` boolean to App. If you set this to `True`, then Textual will not attempt to convert ANSI colors. Note that you will lose transparency effects if you enable this setting.
327325

328326
---
329327

330-
<a name="why-doesn't-the-`datatable`-scroll-programmatically"></a>
328+
<a name="why-doesnt-the-datatable-scroll-programmatically"></a>
331329
## Why doesn't the `DataTable` scroll programmatically?
332330

333331
If scrolling in your `DataTable` is _apparently_ broken, it may be because your `DataTable` is using the default value of `height: auto`.
334332
This means that the table will be sized to fit its rows without scrolling, which may cause the *container* (typically the screen) to scroll.
335333
If you would like the table itself to scroll, set the height to something other than `auto`, like `100%`.
336334

337-
**NOTE:** As of Textual v0.31.0 the `max-height` of a `DataTable` is set to `100%`, this will mean that the above is no longer the default experience.
335+
!!! note
336+
337+
As of Textual v0.31.0 the `max-height` of a `DataTable` is set to `100%`, this will mean that the above is no longer the default experience.
338338

339339
---
340340

docs/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# API
22

3-
This is a API-level reference to the Textual API. Click the links to your left (or in the burger menu) to open a reference for each module.
3+
This is a API-level reference to the Textual API. Click the links to your left (or in the :octicons-three-bars-16: menu) to open a reference for each module.
44

55
If you are new to Textual, you may want to read the [tutorial](./../tutorial.md) or [guide](../guide/index.md) first.

docs/api/renderables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "textual.renderables"
33
---
44

5-
A collection of Rich renderables which may be returned from a widget's `render()` method.
5+
A collection of Rich renderables which may be returned from a widget's [`render()`][textual.widget.Widget.render] method.
66

77
::: textual.renderables.bar
88
::: textual.renderables.blank

docs/events/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
A reference to Textual [events](../guide/events.md).
44

5-
See the links to the left of the page, or in the hamburger menu (three horizontal bars, top left).
5+
See the links to the left of the page, or click :octicons-three-bars-16: (top left).

docs/help.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ If you need help with any aspect of Textual, let us know! We would be happy to h
44

55
## Bugs and feature requests
66

7-
Report bugs via GitHub on the Textual [issues](https://github.com/Textualize/textual/issues) page. You can also post feature requests via GitHub issues, but see the [roadmap](./roadmap.md) first.
7+
Report bugs via GitHub on the Textual [issues](https://github.com/Textualize/textual/issues) page. You can also post feature requests via GitHub issues, but see the [Roadmap](./roadmap.md) first.
88

99
## Help with using Textual
1010

1111
You can seek help with using Textual [in the discussion area on GitHub](https://github.com/Textualize/textual/discussions).
1212

1313
## Discord Server
1414

15-
For more realtime feedback or chat, join our discord server to connect with the [Textual community](https://discord.gg/Enf6Z3qhVr).
15+
For more realtime feedback or chat, join our Discord server to connect with the [Textual community](https://discord.gg/Enf6Z3qhVr).

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Build sophisticated user interfaces with a simple Python API. Run your apps in t
138138
=== "stopwatch.tcss"
139139

140140
```css
141-
--8<-- "examples/calculator.tcss"
141+
--8<-- "docs/examples/tutorial/stopwatch.tcss"
142142
```
143143

144144

questions/align-center-middle.question.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ alt_titles:
1212
!!! tip
1313

1414
See [*How To Center Things*](https://textual.textualize.io/how-to/center-things/) in the
15-
Textual documentation for a more comprensive answer to this question.
15+
Textual documentation for a more comprehensive answer to this question.
1616

1717
To center a widget within a container use
1818
[`align`](https://textual.textualize.io/styles/align/). But remember that
@@ -74,7 +74,7 @@ If you want them more like this:
7474
+---------------+
7575
```
7676

77-
the best approach is to wrap each widget in a [`Center`
77+
The best approach is to wrap each widget in a [`Center`
7878
container](https://textual.textualize.io/api/containers/#textual.containers.Center)
7979
that individually centers it. For example:
8080

questions/datatable-doesnt-scroll.question.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ If scrolling in your `DataTable` is _apparently_ broken, it may be because your
99
This means that the table will be sized to fit its rows without scrolling, which may cause the *container* (typically the screen) to scroll.
1010
If you would like the table itself to scroll, set the height to something other than `auto`, like `100%`.
1111

12-
**NOTE:** As of Textual v0.31.0 the `max-height` of a `DataTable` is set to `100%`, this will mean that the above is no longer the default experience.
12+
!!! note
13+
14+
As of Textual v0.31.0 the `max-height` of a `DataTable` is set to `100%`, this will mean that the above is no longer the default experience.

questions/transparent-background.question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ Some terminal emulators have a translucent background feature which allows the d
1111
This feature is unlikely to work with Textual, as the translucency effect requires the use of ANSI background colors, which Textual doesn't use.
1212
Textual uses 16.7 million colors where available which enables consistent colors across all platforms and additional effects which aren't possible with ANSI colors.
1313

14-
For more information on ANSI colors in Textual, see [Why no Ansi Themes?](#why-doesnt-textual-support-ansi-themes).
14+
For more information on ANSI colors in Textual, see [Why no ANSI Themes?](#why-doesnt-textual-support-ansi-themes).

0 commit comments

Comments
 (0)