Skip to content

Commit a15f7b6

Browse files
authored
Merge pull request #4638 from Textualize/vim-keys-revert
Vim keys revert
2 parents 92583b5 + 2a16164 commit a15f7b6

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [0.67.1] - 2024-06-12
9+
10+
### Changed
11+
12+
- Reverts Vim keys in DataTable, provides alternatives https://github.com/Textualize/textual/pull/4638
13+
814
## [0.67.0] - 2024-06-11
915

1016
### Added

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "textual"
3-
version = "0.67.0"
3+
version = "0.67.1"
44
homepage = "https://github.com/Textualize/textual"
55
repository = "https://github.com/Textualize/textual"
66
documentation = "https://textual.textualize.io/"

src/textual/widgets/_data_table.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,14 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
216216

217217
BINDINGS: ClassVar[list[BindingType]] = [
218218
Binding("enter", "select_cursor", "Select", show=False),
219-
Binding("up,k", "cursor_up", "Cursor Up", show=False),
220-
Binding("down,j", "cursor_down", "Cursor Down", show=False),
221-
Binding("right,l", "cursor_right", "Cursor Right", show=False),
222-
Binding("left,h", "cursor_left", "Cursor Left", show=False),
219+
Binding("up", "cursor_up", "Cursor Up", show=False),
220+
Binding("down", "cursor_down", "Cursor Down", show=False),
221+
Binding("right", "cursor_right", "Cursor Right", show=False),
222+
Binding("left", "cursor_left", "Cursor Left", show=False),
223223
Binding("pageup", "page_up", "Page Up", show=False),
224224
Binding("pagedown", "page_down", "Page Down", show=False),
225-
Binding("g", "scroll_top", "Top", show=False),
226-
Binding("G", "scroll_bottom", "Bottom", show=False),
225+
Binding("ctrl+home", "scroll_top", "Top", show=False),
226+
Binding("ctrl+end", "scroll_bottom", "Bottom", show=False),
227227
Binding("home", "scroll_home", "Home", show=False),
228228
Binding("end", "scroll_end", "End", show=False),
229229
]
@@ -237,8 +237,8 @@ class DataTable(ScrollView, Generic[CellType], can_focus=True):
237237
| left,h | Move the cursor left. |
238238
| pageup | Move one page up. |
239239
| pagedown | Move one page down. |
240-
| g | Move to the top. |
241-
| G | Move to the bottom. |
240+
| ctrl+home | Move to the top. |
241+
| ctrl+end | Move to the bottom. |
242242
| home | Move to the home position (leftmost column). |
243243
| end | Move to the end position (rightmost column). |
244244
"""

0 commit comments

Comments
 (0)