Will McGugan
80f4c12e76
Fix scroll flicker ( #2358 )
...
* fix scroll flicker
* fix scroll flicker
* remove event
* do not delay scroll
* remove comment
* test fix
* remove commented code
* comment
* increase pause on click
* changelog [skip ci]
* wait on resume
* remove note [skip ci]
2023-04-24 09:33:15 +01:00
Will McGugan
24a17ba914
Merge branch 'main' into bug/2352/tabbed-content-active
2023-04-23 16:04:06 +01:00
Rodrigo Girão Serrão
50030b427f
Fix up/down key ansi sequences. ( #2280 )
...
* Fix up/down key ansi sequences.
Related issues: #2223 .
Related comments: [my reply to OP](https://github.com/Textualize/textual/issues/2223\#issuecomment-1505512300 ) and [the OP's reply](https://github.com/Textualize/textual/issues/2223\#issuecomment-1506764562 ).
* Changelog.
2023-04-23 14:14:36 +01:00
Will McGugan
3736807359
fix color system render ( #2360 )
...
* fix color system render
* changelog
2023-04-22 17:49:00 +01:00
Dave Pearson
1a84be9fc9
Update the CHANGELOG
2023-04-22 10:29:00 +01:00
Will McGugan
cab4925eaa
New CLI runner ( #2338 )
...
* New CLI runner
* runner functionality
* Add port
* use env for port
* changelog
* test fix
* flush
* remove constant
* comment
* tidy docs
* docstrings
* punctuation
* docstring
* fix test
* snapshot
* Update src/textual/cli/cli.py
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* guard against bad imports
* guard againsts screenshot
* always print return
* docstrings
* docstrings
---------
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-04-20 17:09:39 +01:00
Dave Pearson
84b5b866d4
Merge branch 'main' into bug/2100/invisible-keys
2023-04-20 13:45:30 +01:00
Dave Pearson
61dc08dd99
Update the CHANGELOG
2023-04-20 11:42:14 +01:00
Dave Pearson
b6b8fbdb41
Fix typo
...
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-04-20 11:13:01 +01:00
Dave Pearson
14f05899b2
Correct the location of the new items in the CHANGELOG
...
I'd accidentally started adding things under v0.20.1 rather than under a new
unreleased heading.
2023-04-20 10:09:20 +01:00
Dave Pearson
59e325d004
Update the CHANGELOG
2023-04-20 10:08:40 +01:00
Dave Pearson
fe5f80bdd6
Change ScrollView to inherit from ScrollableContainer rather than Widget
...
See #2332
2023-04-20 09:40:58 +01:00
Dave Pearson
ee45356c5c
Update the CHANGELOG
2023-04-20 09:31:28 +01:00
Will McGugan
4981effcba
Revert "Prevent reactive-watcher loop in Tabs / TabbedContent." ( #2322 )
...
* Revert "Prevent reactive-watcher loop in Tabs / TabbedContent. (#2305 )"
This reverts commit 66a644845b .
* fix stuck tab
* fix for stuck underline
* snpshot
2023-04-18 16:46:10 +01:00
Will McGugan
cc41a7f81d
Bump0200 ( #2320 )
...
* version bump
* changelog
2023-04-18 13:41:15 +01:00
Rodrigo Girão Serrão
66a644845b
Prevent reactive-watcher loop in Tabs / TabbedContent. ( #2305 )
...
* Add regression test for #2229 .
* Fix potential reactive-watch loop.
* Simplify regression test.
Labels are cheaper to use and the final visual result of the test won't depend on the directory it runs from.
* Simplify solution.
Turns out I didn't need a descriptor. :(
* Fail on empty tab.
2023-04-18 11:48:33 +01:00
Rodrigo Girão Serrão
3a7cf08ef2
Make scrollable containers focusable. ( #2317 )
...
* Make scrollable containers focusable.
Related issues: #2270 .
2023-04-18 11:44:32 +01:00
darrenburns
496f8b4524
Updating styles on demand instead of on_idle ( #2304 )
...
* Updating styles on demand instead of on_idle
* Tidy up update_styles
* Fix LRU cache tests
* Remove some debugging code
* Adding test for pseudoclass style update
* Update changelog
2023-04-18 11:36:00 +01:00
Dave Pearson
f8b51ea269
Ensure the active message pump is set when app is the sender ( #2302 )
...
See https://github.com/Textualize/textual/issues/2301
2023-04-17 16:23:31 +01:00
Will McGugan
0509cf8948
Border style ( #2292 )
...
* border styles
* docs for border styles
* fix tests
* tests
* tests and docs
* changelog
* implement auto
* style information fix
2023-04-16 12:31:39 +01:00
Dave Pearson
8fe14e44da
Update the CHANGELOG
2023-04-14 12:19:24 +01:00
darrenburns
898de5a69c
Fix for empty ListView bindings not firing ( #2281 )
...
* Fix bindings not firing when ListView is empty
* Regression test for empty ListView bindings not working
* Update changelog
2023-04-13 15:32:56 +01:00
Rodrigo Girão Serrão
bb2c31ba35
Add --port option to textual console. ( #2258 )
...
* Add --port option to textual console.
* Changelog.
* Address review feedback.
* Mark unpredictable test as xfail.
This test gets an xfail mark until #2254 is open.
* Make DEVTOOLS_PORT a constant.
Related review: https://github.com/Textualize/textual/pull/2258\#discussion_r1165210395
* Factor logic into function.
Related review: https://github.com/Textualize/textual/pull/2258\#discussion_r1165298259
* Remove dead import.
2023-04-13 11:57:35 +01:00
Rodrigo Girão Serrão
5104cbe501
changelog
2023-04-12 22:28:48 +01:00
darrenburns
6369c37907
Ensure styles applied in correct order in DataTable ( #2272 )
...
* Ensure styles applied in correct order in DataTable
* Add snapshot regression test for datatable style ordering
* Update CHANGELOG
2023-04-12 14:45:24 +01:00
Will McGugan
03fa641be7
Simplify driver ( #2252 )
...
* Simplify driver
* remove debug flag
* added set_terminal_size to driver
* restore flush
* Restore debug mode
* docstring
* fix parser
* simplify windows driver
* driver update
* annotations
* docstrings
2023-04-12 13:44:22 +01:00
Will McGugan
71becfc090
make Timer.start private
2023-04-12 13:42:57 +01:00
Will McGugan
2aa59f1ff0
changelog
2023-04-12 12:12:47 +01:00
darrenburns
f95e30870b
Tabbed content activated message ( #2260 )
...
* Add a message for the tabbed content activated
* Add a docstring
* Testing tabbed content activated message
* Update changelog
* Add reference to the docs about TabbedContent.TabActivated
2023-04-12 10:55:14 +01:00
darrenburns
6352ceb61b
Datatable remove row ( #2253 )
...
* Checking in remove_row progress
* Ensuring structures updated correctly when row deleted
* Clamping index
* Failed attempt
* Removing rows
* Update a type hint in DataTable
* Remove some code that wasnt required
* Use index syntax instead of get
* Add DataTable remove row test
* Snapshot tests for removing rows
* Add a docstring for DataTable.remove_row method
* Update changelog regarding DataTable.remove_row
* Add check_idle call to remove_row
2023-04-11 18:48:58 +01:00
Rodrigo Girão Serrão
454254fab4
Implement scroll_to_center method.
2023-04-11 13:36:34 +01:00
Will McGugan
4f7b2d00bc
fix arrangement cache ( #2249 )
...
* fix arrangement cache
* changelog
2023-04-10 16:50:34 +01:00
darrenburns
40cc2db3b9
Fix for viewport units, remove DataTable max-height ( #2247 )
...
* Add viewport units snapshot test
* Fix snapshot app
* Update snapshots
* Update DataTable max-height to 100%
* Update CHANGELOG.md
* Remove max height from DataTable CSS
2023-04-10 16:13:48 +01:00
Will McGugan
c4774155ab
changelog
2023-04-07 11:30:15 +01:00
Will McGugan
e9ec627629
version bump ( #2236 )
2023-04-07 09:52:21 +01:00
Will McGugan
c3e56f1f19
changelog
2023-04-06 21:18:59 +01:00
Will McGugan
44367a7422
Expanding fr ( #2221 )
...
* forced fr to expand
* margin size
* remove comment
* missing snapshot
* snapshot tests
* changelog
* optimize
* snapshot fix
* snapshot update
* snapshot and fixes
* docstrings [skip ci]
2023-04-06 17:30:32 +01:00
Will McGugan
eadd487584
fix scroll issue
2023-04-06 10:29:50 +01:00
Dave Pearson
688b87b6d1
Update the CHANGELOG
2023-04-05 20:50:16 +01:00
Will McGugan
41af489648
title descriptors ( #2213 )
...
* title descriptors
* add extra line around titles
* changelog
* snapshots
* comment
* Fix border refresh
* simplify typing
* test for None case
2023-04-05 10:10:43 +01:00
Will McGugan
c2f7004fbb
changelog
2023-04-04 15:57:55 +01:00
Will McGugan
380114489d
docs fix
2023-04-04 15:43:10 +01:00
Will McGugan
b5689b1f69
Worker API ( #2182 )
...
* worker class
* worker API tests
* tidy
* Decorator and more tests
* type fix
* error order
* more tests
* remove active message
* move worker manager to app
* cancel nodes
* typing fix
* revert change
* typing fixes and cleanup
* revert typing
* test fix
* cancel group
* Added test for worker
* comment
* workers docs
* Added exit_on_error
* changelog
* svg
* refactor test
* remove debug tweaks
* docstrings
* worker test
* fix typing in run
* fix 3.7 tests
* blog post
* fix deadlock test
* words
* words
* words
* workers docs
* blog post
* Apply suggestions from code review
Co-authored-by: Dave Pearson <davep@davep.org >
* docstring
* fix and docstring
* Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Update src/textual/widgets/_markdown.py
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Update src/textual/worker.py
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
* Fix black
* docstring
* merge
* changelog
---------
Co-authored-by: Dave Pearson <davep@davep.org >
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com >
2023-04-04 13:12:51 +01:00
Dave Pearson
3d1d6b1d98
Update the ChangeLog
2023-04-03 11:54:48 +01:00
Will McGugan
eab073e603
Layer scroll fix ( #2196 )
...
* fix scroll spacing
* fix and snapshot
* changelog
2023-04-02 09:56:50 +01:00
Will McGugan
eb4c7ef50f
Fix issue with modals ( #2195 )
...
* Fix issue with modals
* changelog
* fix binding on button
* binding tweak
* changelog
* snapshots
* version bump
2023-04-02 08:52:35 +01:00
Dave Pearson
19a0846068
Merge branch 'main' into markdown-number-list
2023-03-30 14:23:12 +01:00
Will McGugan
0750bc20ea
copy bindings ( #2176 )
...
* copy bindings
* changelog
* simplify
2023-03-30 13:53:48 +01:00
Dave Pearson
b9726bb2b1
Auto-increment ordered lists within Markdown
...
Addresses #2002 .
2023-03-30 12:48:05 +01:00
Will McGugan
87f96ef8a1
fix for hiding cursor on windows ( #2171 )
...
* fix for hiding cursor on windows
* fix freeze
* version bump
2023-03-30 11:04:04 +01:00