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
Darren Burns
85ad9f1414
Type aliases for datatable cachees
2023-01-26 16:32:37 +00:00
Rodrigo Girão Serrão
c4dbde1994
Don't force layout on overflow change.
...
Fix : #1628 .
2023-01-26 16:18:09 +00:00
Rodrigo Girão Serrão
c2f99dfdaa
Merge branch 'main' into fix-1607
2023-01-26 16:07:58 +00:00
Dave Pearson
fade5db2a9
Add support for jumping to the previous word
...
See #1310 .
2023-01-26 15:37:26 +00:00
Will McGugan
c850221873
remove comment [skip ci]
2023-01-26 16:31:41 +01:00
Will McGugan
ff7f176444
add wait for idle
2023-01-26 16:24:35 +01:00
Will McGugan
e231788433
tweak sleep granularity
2023-01-26 16:18:23 +01:00
Dave Pearson
a2807f217d
Add support for jumping to the next word
2023-01-26 15:16:54 +00:00
Will McGugan
683d44dc93
tweak sleep granularity
2023-01-26 16:13:05 +01:00
Will McGugan
3eac79568c
remove some pauses
2023-01-26 16:10:13 +01:00
Will McGugan
41be84b1a5
docstring
2023-01-26 16:01:48 +01:00
Dave Pearson
00c4981a91
Reorder the Input bindings
...
This makes no difference to anything; but I think grouping the bindings into
similar groups will make it easier for folk to read and find things.
See #1310 .
2023-01-26 14:16:51 +00:00
Dave Pearson
5e1420df97
Favour named keys over Ctrl-combos
...
This makes no difference to anything; but I think it makes for code that's
easier on the eye so someone scanning down the list of bindings will see the
more descriptive key first.
See #1310 .
2023-01-26 14:15:22 +00:00
Dave Pearson
53c168c24c
Add delete-to-start to Input
...
And in doing so bind it to Ctrl+U (readline-common). Right now I'm not aware
of a common combo for this on Windows, but we can add a binding for this if
one becomes apparent.
See #1310 .
2023-01-26 14:11:46 +00:00
Darren Burns
aee100ff10
Removing redundant data from DataTable.Row
2023-01-26 14:05:31 +00:00
Darren Burns
297119d9b6
Merge branch 'main' of github.com:Textualize/textual into datatable-cell-keys
2023-01-26 14:02:09 +00:00
Dave Pearson
487b2e2493
Add delete-to-end to Input
...
And in doing so bind it to Ctrl+K (macOS/Emacs/readline-common). Right now
I'm not aware of a common combo for this on Windows, but we can add a
binding for this if one becomes apparent.
See #1310 .
2023-01-26 13:59:07 +00:00
Rodrigo Girão Serrão
9c83517fd3
Update poetry.lock.
2023-01-26 13:57:15 +00:00
Darren Burns
9d2ddfa86e
Remove DataTable Row.index
2023-01-26 13:56:40 +00:00
Rodrigo Girão Serrão
bc729033c8
Merge branch 'main' into doc-improvements
2023-01-26 13:55:34 +00:00
Darren Burns
3f89511f24
Remove index from Column object
2023-01-26 13:46:58 +00:00
Dave Pearson
5d67c76a70
Add delete key as a delete binding to Input
...
That is, delete deletes the character to the right -- the opposite of
backspace if you will.
See #1310 .
2023-01-26 12:17:37 +00:00
Darren Burns
4b2a50c46c
Dynamic y-offsets
2023-01-26 12:12:55 +00:00
Rodrigo Girão Serrão
b37517c400
Add all messages to widget references.
2023-01-26 11:53:51 +00:00
Rodrigo Girão Serrão
fb4f804dff
Improve widget message docstrings.
2023-01-26 11:53:37 +00:00
Will McGugan
d8e6cfdd50
Merge pull request #1672 from Textualize/docs-intro
...
update to intro page, fix for API docs
2023-01-26 12:47:37 +01:00