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
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
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
Rodrigo Girão Serrão
bc729033c8
Merge branch 'main' into doc-improvements
2023-01-26 13:55:34 +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
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
Dave Pearson
672bc1b9b3
Add macOS/Emacs-style home/end bindings to Input
...
Ctrl+A and Ctrl+E
See #1310 .
2023-01-26 11:43:34 +00:00
Will McGugan
211280e0be
Fixed wording of tree node docs
2023-01-26 12:37:57 +01:00
Will McGugan
d01c8a7e07
more superfluous words
2023-01-26 12:34:10 +01:00
Will McGugan
56ef37637b
superfluous words
2023-01-26 12:31:45 +01:00
Will McGugan
15f116d160
moved link
2023-01-26 12:25:43 +01:00
Will McGugan
dc5041f1e1
update to intro page, fix for API docs
2023-01-26 12:21:49 +01:00
Rodrigo Girão Serrão
d75845e52a
Move reactives and messages to top of widget source.
2023-01-26 11:20:45 +00:00
Rodrigo Girão Serrão
210e39488f
Add template for widget reference.
2023-01-26 10:56:32 +00:00
Rodrigo Girão Serrão
4405f2da2a
Add plugin to ignore docs templates.
2023-01-26 10:47:53 +00:00
Dave Pearson
90736129cf
Prune a word hangover in CHANGELOG
...
Nowt optional about the new methods!
2023-01-25 20:48:07 +00:00
Dave Pearson
64ac4345a8
Update the CHANGELOG to reflect the method-only approach
2023-01-25 20:47:05 +00:00
Dave Pearson
e59064e204
Switch away from a keyword approach to a dedicated method approach
...
While descriptive keywords tend to be a preference within the Textual
codebase for many things, this was one of those times where a developer's
code using the library was likely going to read better if there's a switch
to using dedicated methods; this approach means we can just go with "all"
rather than "{action}_all" without needing to shadow a Python builtin.
This also does mirror mount/mount_all too.
2023-01-25 20:39:49 +00:00
Dave Pearson
c678e3e1e3
Reduce the expand/collapse/toggle kwarg to just 'all'
...
See https://github.com/Textualize/textual/pull/1644#discussion_r1086493525
-- not exactly my preference but it's been decided it makes for a nicer
interface.
2023-01-25 16:48:04 +00:00
Rodrigo Girão Serrão
ef779d71dd
Add bindings and component classes to reference pages.
2023-01-25 15:19:16 +00:00
Rodrigo Girão Serrão
b63e2366e1
Remove 'action' column from bindings.
2023-01-25 15:00:45 +00:00
Dave Pearson
ab49dce39b
Merge pull request #1665 from davep/workaround-windows-paste
...
Workaround for a Windows paste issue
2023-01-25 14:52:59 +00:00
Rodrigo Girão Serrão
2ea501ea9b
Document bindings and component classes.
2023-01-25 14:49:37 +00:00
Rodrigo Girão Serrão
fd0d1feb79
Add helper tool to generate widget docs.
...
References: #1662 , #1543
2023-01-25 14:48:56 +00:00
Dave Pearson
44d48e244e
Fix typo in replace
...
AKA: don't mix octal and hex Dave!
2023-01-25 14:43:41 +00:00