Commit Graph

4678 Commits

Author SHA1 Message Date
Will McGugan
0e7941f8cd Merge pull request #1691 from Textualize/fix-snafu
fix typing
2023-01-30 15:45:59 +01:00
Will McGugan
f890a72a77 fixed comments 2023-01-30 15:45:48 +01:00
Will McGugan
c48ed3af78 comments and docstrings 2023-01-30 15:39:10 +01:00
Will McGugan
787232b644 fix removed test 2023-01-30 15:34:04 +01:00
Will McGugan
4a302148f8 fix typing 2023-01-30 15:08:14 +01:00
Will McGugan
be62f7aaa4 docstrings [skip ci] 2023-01-30 14:38:30 +01:00
Rodrigo Girão Serrão
b023d4e02e Improve tests. 2023-01-30 12:34:35 +00:00
Will McGugan
5116fcaa02 merge and annotations 2023-01-30 13:19:25 +01:00
Will McGugan
0e01651825 Merge branch 'main' into scroll-sensitivity 2023-01-30 13:18:47 +01:00
Will McGugan
144be32429 update docstring [skip CI] 2023-01-30 13:10:07 +01:00
Will McGugan
15d4341bc0 Merge pull request #1686 from Textualize/fix-renderable-width
fix for render width
2023-01-30 13:06:16 +01:00
Will McGugan
eb91fc0579 snapshot fix 2023-01-30 13:01:44 +01:00
Will McGugan
7523c6d680 use floats 2023-01-30 12:56:21 +01:00
Will McGugan
18946eaa09 doc attributes 2023-01-30 12:53:45 +01:00
Will McGugan
52ae868ddf changelog 2023-01-30 12:46:50 +01:00
Will McGugan
ea6afc957f separate scroll sensitivity 2023-01-30 12:44:58 +01:00
Will McGugan
b585f25d7b scroll sensitivity 2023-01-30 12:36:49 +01:00
Dave Pearson
62244b4ea9 Merge branch 'main' into more-input-bindings 2023-01-30 11:25:07 +00:00
Dave Pearson
9df61ba830 Update the CHANGELOG 2023-01-30 11:21:55 +00:00
Dave Pearson
a1752248d4 Help some older Pythons along 2023-01-30 10:23:37 +00:00
Dave Pearson
9e23a79ec1 Add more Input unit tests for actions that modify the text
This time all the things to do with deleting right.
2023-01-30 10:15:23 +00:00
Dave Pearson
af2189fdeb Fix a docstring typo 2023-01-30 10:12:35 +00:00
Dave Pearson
e199dc226b Start Input unit tests for actions that modify the text 2023-01-30 09:51:46 +00:00
Dave Pearson
1230ca3694 Rename the key action tests
There are actions that relate to editing the input too, which I also want to
test, but I'm not minded to lump them all in the same file. So here I'm
renaming to make it clear these tests are just about movement. The editing
ones will come next in their own file.
2023-01-29 11:58:46 +00:00
Dave Pearson
b7203edd4a Add a test for using left-word to get home from the end of an input 2023-01-29 11:57:00 +00:00
Dave Pearson
054c23ab29 Add a test for using right-word to get to the end of an input 2023-01-29 11:53:21 +00:00
Dave Pearson
5bf0542e47 Rename a test to be more in line with the others 2023-01-29 11:49:29 +00:00
Dave Pearson
af4a6b0f68 Fix a typo/thinko in a test name 2023-01-29 11:48:48 +00:00
Dave Pearson
112c789e3c Add a test for going right a word from the end 2023-01-29 11:47:16 +00:00
Dave Pearson
d5a99425c0 Add a test for going right a word from the start 2023-01-29 11:37:12 +00:00
Dave Pearson
fad87c90f3 Add a test for going left a word from the end 2023-01-29 11:29:07 +00:00
Dave Pearson
938a3b4ed5 Add a test for going left a word from home
This should result in a NOP.
2023-01-29 11:20:44 +00:00
Will McGugan
e149e413ad changelog [skip ci] 2023-01-28 17:26:22 +01:00
Will McGugan
b4a3c2e8bb fix for render width 2023-01-28 17:23:52 +01:00
Dave Pearson
7ddf4bbecc Add some initial Input key/action unit tests
This is just getting a feel for how I'll go about testing these. The main
focus here won't be on the bindings themselves -- they're not really
interesting and I feel could change over time anyway as people's tastes
settle down. What I want to test here are the actions that get bound.

This is just an initial small set of what's going to be a much bigger
collection of Input action tests.
2023-01-27 18:42:38 +00:00
Dave Pearson
f4b29d8b99 Move the current Input tests into a subdirectory
I'm going to be adding more tests for Input, and I don't want to be doing
one large monolithic file of them, so this makes a space where
Input-targeting tests can live together and be easy to spot.
2023-01-27 18:41:13 +00:00
Dave Pearson
cbe62fadc3 Add unit tests for all the expand/collapse/toggle Tree methods 2023-01-27 13:28:25 +00:00
Dave Pearson
c13e5833c7 Merge branch 'main' into tree-deeply 2023-01-27 09:23:49 +00:00
Will McGugan
36188ae0dc Merge pull request #1659 from Textualize/fix-1372
Keep track of scheduled animations
2023-01-27 10:10:26 +01:00
Will McGugan
ae73c4783f use monotonic rather than sleep 2023-01-27 09:58:07 +01:00
Dave Pearson
7de4924cf2 If going rightward one word an no more word go to end 2023-01-26 21:52:40 +00:00
Dave Pearson
3399fb868f Add support for deleting an Input word rightward 2023-01-26 21:48:58 +00:00
Dave Pearson
0675b40ae8 Add support for deleting an Input word leftward 2023-01-26 21:35:36 +00:00
Dave Pearson
2fa0956227 Improve the documentation for the movement and editing actions 2023-01-26 21:11:33 +00:00
Dave Pearson
372d83572c Start to improve the naming of binding-oriented actions
Don't focus on home/end and things like that, and also try and keep all of
the related names related.
2023-01-26 21:06:46 +00:00
Dave Pearson
44d4bc6191 Be more forgiving about what a word is 2023-01-26 20:57:06 +00:00
Dave Pearson
1600d98639 Tidy up previous word 2023-01-26 20:21:35 +00:00
Dave Pearson
d815cced38 Simplify an expression 2023-01-26 20:17:14 +00:00
Will McGugan
7097783414 remove whitespace 2023-01-26 17:46:25 +01:00
Rodrigo Girão Serrão
c4dbde1994 Don't force layout on overflow change.
Fix: #1628.
2023-01-26 16:18:09 +00:00