From e6ff56b44faf8bc5c3239a4de4eae0fc5fca1bbd Mon Sep 17 00:00:00 2001 From: Andrew Dant Date: Tue, 12 Apr 2022 18:03:52 -0400 Subject: [PATCH 1/2] move special marks portion of cheatsheet to next column --- cursorless-talon/src/cheatsheet/cheat_sheet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cursorless-talon/src/cheatsheet/cheat_sheet.py b/cursorless-talon/src/cheatsheet/cheat_sheet.py index 8d62d0bb73..829efea781 100644 --- a/cursorless-talon/src/cheatsheet/cheat_sheet.py +++ b/cursorless-talon/src/cheatsheet/cheat_sheet.py @@ -122,10 +122,10 @@ def draw(self, canvas): ), ) - self.draw_section(canvas, "Special marks", get_list("special_mark")) - self.next_column(canvas) + self.draw_section(canvas, "Special marks", get_list("special_mark")) + self.draw_section(canvas, "Positions", get_list("position")) self.draw_section( From 6e1787de2eb59ffc78cd4ba60518972ad5bbfb87 Mon Sep 17 00:00:00 2001 From: Andrew Dant Date: Tue, 12 Apr 2022 18:22:05 -0400 Subject: [PATCH 2/2] update legend to the top of the cheatsheet --- cursorless-talon/src/cheatsheet/cheat_sheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cursorless-talon/src/cheatsheet/cheat_sheet.py b/cursorless-talon/src/cheatsheet/cheat_sheet.py index 829efea781..668345b7ba 100644 --- a/cursorless-talon/src/cheatsheet/cheat_sheet.py +++ b/cursorless-talon/src/cheatsheet/cheat_sheet.py @@ -189,7 +189,7 @@ def draw_legend(self, canvas): canvas.paint.style = canvas.paint.Style.FILL canvas.paint.textsize = text_size canvas.paint.color = text_color - self.y = canvas.y + canvas.height - line_height + self.y = canvas.y self.draw_value( canvas, "S = Current selection, T = Target, P = Paired delimiter, F = Formatter",