Commit Graph

1378 Commits

Author SHA1 Message Date
Darren Burns
1510739227 Translate "escape" to "^" when XTermParser has to backtrack 2022-06-11 13:38:59 +01:00
Darren Burns
2f2d064d34 Some comment improvements and tidying up 2022-06-10 09:58:16 +01:00
Darren Burns
30b6a0b50d Formatting, tidying up, add extra mouse event parsing test 2022-06-10 09:51:59 +01:00
Darren Burns
0125fbdd4f Add test around non-escape code input mapping to keys 2022-06-09 17:34:43 +01:00
Darren Burns
763c0d0a75 Add various additional tests around XTermParser 2022-06-09 17:29:20 +01:00
Darren Burns
bfb962bacf Backtracking unknown escape sequences, various tests for XTermParser 2022-06-09 16:27:53 +01:00
darrenburns
fe151a7f25 Support for bracketed paste mode (#567)
* Detecting bracketed paste, sending paste events

* Bracketed pasting support in TextInput

* Restore debugging conditional

* Handle pasting of text in text-input, improve scrolling

* Fix ordering of handling in parser for bracketed pastes

* Docstrings

* Add docstrings
2022-06-08 16:42:59 +01:00
Will McGugan
de22f9e653 Merge pull request #566 from Textualize/hsl
Support HSL colour space, allow spaces in RGB/HSL values
2022-06-08 16:25:15 +01:00
darrenburns
7366421635 Scrolling nested containers (#538)
* Scrolling nested containers

* Return boolean if any scrolling occurred in any descendant in scroll_to_widget
2022-06-08 16:20:53 +01:00
Darren Burns
6f533d762c Add tests for negative number hsl handling, normalise degrees to range 0-1 2022-06-08 15:50:37 +01:00
darrenburns
1b5d025613 Update src/textual/color.py
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2022-06-08 15:38:07 +01:00
darrenburns
740c945a43 Update src/textual/color.py
Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2022-06-08 15:37:54 +01:00
Darren Burns
53c3b418e9 Remove unused imports 2022-06-07 16:25:41 +01:00
Darren Burns
01bedd7f04 Improve color parsing tests 2022-06-07 16:21:05 +01:00
Darren Burns
2086062b56 Testing HSL and testing spaces in rgb(..), hsl(..) css declarations 2022-06-07 16:11:19 +01:00
Darren Burns
d7159d905a Fix regex, fix some broken tests around HSL support 2022-06-07 15:36:45 +01:00
Darren Burns
01ef1dc7f0 Add support for HSL and HSLA 2022-06-07 15:23:24 +01:00
Will McGugan
0438a6b78e Merge pull request #561 from Textualize/docs
Inheritable CSS
2022-06-03 16:17:36 +01:00
Will McGugan
113997a0b6 remove prints 2022-06-03 16:10:48 +01:00
Will McGugan
853c4f746b remove superfluous refresh 2022-06-03 16:03:10 +01:00
Will McGugan
ff90050ec8 no need to updated after class 2022-06-03 15:55:48 +01:00
Will McGugan
c9eb3afba4 docs and examples 2022-06-03 15:51:19 +01:00
Will McGugan
0edd0e52ec superfluous imports 2022-06-03 12:39:35 +01:00
Will McGugan
39dde3c3cb CSS inheritance 2022-06-02 17:20:03 +01:00
Will McGugan
57dec90cc4 fix for simple app case 2022-06-01 18:00:25 +01:00
Will McGugan
059ff45392 docs update 2022-06-01 09:58:39 +01:00
Will McGugan
d71718e784 Merge pull request #559 from Textualize/combine-updates
Fix combined updates
2022-05-30 20:57:09 +01:00
Will McGugan
7ea3595ebe fix buttons 2022-05-30 20:45:40 +01:00
Will McGugan
25e790f48d Fix combined updates 2022-05-30 20:36:12 +01:00
Will McGugan
8f5ce16870 Merge pull request #558 from Textualize/scrollbar-anim
Fix scrollbar not updating with CSS animation
2022-05-30 20:17:44 +01:00
Will McGugan
9128b7e3ba Fix scrollbar not updating with CSS 2022-05-30 20:14:53 +01:00
Will McGugan
789ea1e300 Merge pull request #555 from Textualize/arrange-cache
Cache arrangements
2022-05-30 17:44:08 +01:00
Will McGugan
5bc439b6da skip tests 2022-05-30 17:32:57 +01:00
Will McGugan
1a2dfe8e5d optimize refresh 2022-05-30 16:46:57 +01:00
Will McGugan
37d0b0330a clear flag 2022-05-30 16:20:21 +01:00
Will McGugan
25b8f0bb9f clear flag 2022-05-30 16:09:31 +01:00
Will McGugan
51df813c5d remove comments 2022-05-30 16:06:57 +01:00
Will McGugan
249a6a8264 docs 2022-05-30 16:06:27 +01:00
Will McGugan
20c31e84b6 Remove timer 2022-05-30 16:04:36 +01:00
Will McGugan
55543479ad combine updates, cache arrangements 2022-05-30 16:03:10 +01:00
Will McGugan
c1ad9c5365 Cache arrangements 2022-05-30 10:18:05 +01:00
Will McGugan
2bbebc57bf Merge pull request #553 from Textualize/simplify-scrollbars
simplify scrollbar dimensions
2022-05-30 08:45:24 +01:00
Will McGugan
a65fede9c7 simplify 2022-05-29 18:16:26 +01:00
Will McGugan
90a7a1cdce force layout 2022-05-29 18:13:35 +01:00
Will McGugan
04304aec36 faster 2022-05-29 18:11:54 +01:00
Will McGugan
f8fd3ab66d simplify scrolbar 2022-05-29 18:06:17 +01:00
Will McGugan
44cd36d8ea Merge pull request #552 from Textualize/box-model-fractional
Box model fractional
2022-05-29 17:15:25 +01:00
Will McGugan
88ecb319e7 fix tests 2022-05-29 15:19:32 +01:00
Will McGugan
036797fb22 fix gutter 2022-05-29 15:12:29 +01:00
darrenburns
cbd452ae2f Widget focus keybindings (#546)
* Support binding widget focus to keypress, fix focus-within

* Update src/textual/app.py

Co-authored-by: Olivier Philippon <olivier@rougemine.com>

Co-authored-by: Olivier Philippon <olivier@rougemine.com>
2022-05-29 15:05:04 +01:00