diff --git a/CHANGELOG b/CHANGELOG index 975c1e69f2..a4eecccb93 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -369,7 +369,7 @@ Fixes: Fixes: - Fixed a race condition in `ThreadedHistory` that happens when continuously - pasting input text (which would continously repopulate the history). + pasting input text (which would continuously repopulate the history). - Move cursor key mode resetting (for vt100 terminals) to the renderer. (Mostly cleanup). @@ -451,7 +451,7 @@ Other changes: Fixes: - Bugfix in shift-selection key bindings. -- Fix hight calculation of `FormattedTextControl` when line wrapping is turned +- Fix height calculation of `FormattedTextControl` when line wrapping is turned on. - Fixes for SSH server: * Missing encoding property. @@ -615,7 +615,7 @@ Bug fixes: Bug fixes: - Fixes the issue where changes made to the buffer in the accept handler were not reflected in the history. -- Fix in the application invalidate handler. This prevents a significat slow +- Fix in the application invalidate handler. This prevents a significant slow down in some applications after some time (especially if there is a refresh interval). - Make `print_container` utility work if the input is not a pty. @@ -882,7 +882,7 @@ Changes: of the content. `TokenListControl` (renamed to `FormattedTextControl`) does not have an alignment argument anymore. * All container objects, like `Window`, got a `style` argument. The style for - parent containers propagate to child containers, but can be overriden. + parent containers propagate to child containers, but can be overridden. This is in particular useful for setting a background color. * `FillControl` does not exist anymore. Use the `style` and `char` arguments of the `Window` class instead. diff --git a/PROJECTS.rst b/PROJECTS.rst index 61b3730fbc..3493759c26 100644 --- a/PROJECTS.rst +++ b/PROJECTS.rst @@ -49,7 +49,7 @@ Full screen applications: - `kubeterminal `_: Kubectl helper tool. - `pydoro `_: Pomodoro timer. - `sanctuary-zero `_: A secure chatroom with zero logging and total transience. -- `Hummingbot `_: A Cryptocurrency Algorithimic Trading Platform +- `Hummingbot `_: A Cryptocurrency Algorithmic Trading Platform - `git-bbb `_: A `git blame` browser. Libraries: diff --git a/docs/pages/advanced_topics/styling.rst b/docs/pages/advanced_topics/styling.rst index ec6c21bfde..55cf6ee0ea 100644 --- a/docs/pages/advanced_topics/styling.rst +++ b/docs/pages/advanced_topics/styling.rst @@ -264,9 +264,9 @@ There are four different levels of color depths available: +--------+-----------------+-----------------------------+---------------------------------+ By default, 256 colors are used, because this is what most terminals support -these days. If the ``TERM`` enviroment variable is set to ``linux`` or +these days. If the ``TERM`` environment variable is set to ``linux`` or ``eterm-color``, then only ANSI colors are used, because of these terminals. The 24 -bit true color output needs to be enabled explicitely. When 4 bit color output +bit true color output needs to be enabled explicitly. When 4 bit color output is chosen, all colors will be mapped to the closest ANSI color. Setting the default color depth for any prompt_toolkit application can be done diff --git a/docs/pages/advanced_topics/unit_testing.rst b/docs/pages/advanced_topics/unit_testing.rst index 01498c9863..2224bfcba9 100644 --- a/docs/pages/advanced_topics/unit_testing.rst +++ b/docs/pages/advanced_topics/unit_testing.rst @@ -17,7 +17,7 @@ with `sys.stdin` and `sys.stdout`. In unit tests however, we want to replace these. - For the input, we want a "pipe input". This is an input device, in which we - can programatically send some input. It can be created with + can programmatically send some input. It can be created with :func:`~prompt_toolkit.input.create_pipe_input`, and that return either a :class:`~prompt_toolkit.input.posix_pipe.PosixPipeInput` or a :class:`~prompt_toolkit.input.win32_pipe.Win32PipeInput` depending on the diff --git a/docs/pages/upgrading/2.0.rst b/docs/pages/upgrading/2.0.rst index a580ff33fa..60670578fc 100644 --- a/docs/pages/upgrading/2.0.rst +++ b/docs/pages/upgrading/2.0.rst @@ -193,7 +193,7 @@ the completer in a :class:`~prompt_toolkit.completion.ThreadedCompleter`. Filters ^^^^^^^ -We don't distiguish anymore between `CLIFilter` and `SimpleFilter`, because the +We don't distinguish anymore between `CLIFilter` and `SimpleFilter`, because the application object is no longer passed around. This means that all filters are a `Filter` from now on. diff --git a/examples/prompts/placeholder-text.py b/examples/prompts/placeholder-text.py index e113330280..35e1c6c5c9 100755 --- a/examples/prompts/placeholder-text.py +++ b/examples/prompts/placeholder-text.py @@ -1,6 +1,6 @@ #!/usr/bin/env python """ -Example of a placeholer that's displayed as long as no input is given. +Example of a placeholder that's displayed as long as no input is given. """ from prompt_toolkit import prompt from prompt_toolkit.formatted_text import HTML diff --git a/src/prompt_toolkit/filters/app.py b/src/prompt_toolkit/filters/app.py index 303a078c4e..aacb228416 100644 --- a/src/prompt_toolkit/filters/app.py +++ b/src/prompt_toolkit/filters/app.py @@ -50,7 +50,7 @@ # NOTE: `has_focus` below should *not* be `memoized`. It can reference any user -# control. For instance, if we would contiously create new +# control. For instance, if we would continuously create new # `PromptSession` instances, then previous instances won't be released, # because this memoize (which caches results in the global scope) will # still refer to each instance. diff --git a/tests/test_async_generator.py b/tests/test_async_generator.py index 4a01c0e3d6..8c95f8c087 100644 --- a/tests/test_async_generator.py +++ b/tests/test_async_generator.py @@ -12,7 +12,7 @@ def _sync_generator(): def test_generator_to_async_generator(): """ - Test conversion of sync to asycn generator. + Test conversion of sync to async generator. This should run the synchronous parts in a background thread. """ async_gen = generator_to_async_generator(_sync_generator) diff --git a/tests/test_widgets.py b/tests/test_widgets.py index 1fc8ae4398..ee7745a2d0 100644 --- a/tests/test_widgets.py +++ b/tests/test_widgets.py @@ -10,7 +10,7 @@ def _to_text(button: Button) -> str: return fragment_list_to_text(control.text()) -def test_defaulf_button(): +def test_default_button(): button = Button("Exit") assert _to_text(button) == "< Exit >"