Show More
@@ -277,7 +277,9 b' AUTO_SUGGEST_BINDINGS = [' | |||
|
277 | 277 | Binding( |
|
278 | 278 | auto_suggest.resume_hinting, |
|
279 | 279 | ["right"], |
|
280 | "default_buffer_focused & emacs_like_insert_mode", | |
|
280 | "is_cursor_at_the_end_of_line" | |
|
281 | " & default_buffer_focused" | |
|
282 | " & emacs_like_insert_mode", | |
|
281 | 283 | ), |
|
282 | 284 | ] |
|
283 | 285 |
@@ -54,6 +54,13 b' def has_line_below() -> bool:' | |||
|
54 | 54 | |
|
55 | 55 | @undoc |
|
56 | 56 | @Condition |
|
57 | def is_cursor_at_the_end_of_line() -> bool: | |
|
58 | document = get_app().current_buffer.document | |
|
59 | return document.is_cursor_at_the_end_of_line | |
|
60 | ||
|
61 | ||
|
62 | @undoc | |
|
63 | @Condition | |
|
57 | 64 | def has_line_above() -> bool: |
|
58 | 65 | document = get_app().current_buffer.document |
|
59 | 66 | return document.cursor_position_row != 0 |
@@ -179,6 +186,7 b' KEYBINDING_FILTERS = {' | |||
|
179 | 186 | "never": Never(), |
|
180 | 187 | "has_line_below": has_line_below, |
|
181 | 188 | "has_line_above": has_line_above, |
|
189 | "is_cursor_at_the_end_of_line": is_cursor_at_the_end_of_line, | |
|
182 | 190 | "has_selection": has_selection, |
|
183 | 191 | "has_suggestion": has_suggestion, |
|
184 | 192 | "vi_mode": vi_mode, |
General Comments 0
You need to be logged in to leave comments.
Login now