Skip to content

Commit fd6cb52

Browse files
committed
faq tweak
1 parent b7c7ad5 commit fd6cb52

File tree

4 files changed

+6
-60
lines changed

4 files changed

+6
-60
lines changed

docs/FAQ.md

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ pip install textual-dev -U
3838
<a name="how-can-i-select-and-copy-text-in-a-textual-app"></a>
3939
## How can I select and copy text in a Textual app?
4040

41-
Running a Textual app puts your terminal in to *application mode* which disables clicking and dragging to select text.
41+
Textual supports text selection for most widgets, via click and drag. Press ctrl+c to copy.
42+
43+
For widgets that don't yet support text selection, you can try and use your terminal's builtin support.
4244
Most terminal emulators offer a modifier key which you can hold while you click and drag to restore the behavior you
4345
may expect from the command line. The exact modifier key depends on the terminal and platform you are running on.
4446

@@ -220,21 +222,6 @@ Greetings("Well hello", "there").run()
220222

221223
---
222224

223-
<a name="no-widget-called-textlog"></a>
224-
## No widget called TextLog
225-
226-
The `TextLog` widget was renamed to `RichLog` in Textual 0.32.0.
227-
You will need to replace all references to `TextLog` in your code, with `RichLog`.
228-
Most IDEs will have a search and replace function which will help you do this.
229-
230-
Here's how you should import RichLog:
231-
232-
```python
233-
from textual.widgets import RichLog
234-
```
235-
236-
---
237-
238225
<a name="why-do-some-key-combinations-never-make-it-to-my-app"></a>
239226
## Why do some key combinations never make it to my app?
240227

@@ -325,17 +312,4 @@ There is currently a light and dark version of the design system, but more are p
325312

326313
---
327314

328-
<a name="why-doesnt-the-datatable-scroll-programmatically"></a>
329-
## Why doesn't the `DataTable` scroll programmatically?
330-
331-
If scrolling in your `DataTable` is _apparently_ broken, it may be because your `DataTable` is using the default value of `height: auto`.
332-
This means that the table will be sized to fit its rows without scrolling, which may cause the *container* (typically the screen) to scroll.
333-
If you would like the table itself to scroll, set the height to something other than `auto`, like `100%`.
334-
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.
338-
339-
---
340-
341315
Generated by [FAQtory](https://github.com/willmcgugan/faqtory)

questions/copy-text.question.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ alt_titles:
55
- "Highlighting and copy text not working"
66
---
77

8-
Running a Textual app puts your terminal in to *application mode* which disables clicking and dragging to select text.
8+
Textual supports text selection for most widgets, via click and drag. Press ctrl+c to copy.
9+
10+
For widgets that don't yet support text selection, you can try and use your terminal's builtin support.
911
Most terminal emulators offer a modifier key which you can hold while you click and drag to restore the behavior you
1012
may expect from the command line. The exact modifier key depends on the terminal and platform you are running on.
1113

questions/datatable-doesnt-scroll.question.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

questions/no-widget-called-textlog.question.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)