##// END OF EJS Templates
Only enable "resume hinting" with right arrow if at the EOL (#14052)...
Matthias Bussonnier -
r28281:78fcf822 merge
parent child Browse files
Show More
@@ -277,7 +277,9 b' AUTO_SUGGEST_BINDINGS = ['
277 Binding(
277 Binding(
278 auto_suggest.resume_hinting,
278 auto_suggest.resume_hinting,
279 ["right"],
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 @undoc
55 @undoc
56 @Condition
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 def has_line_above() -> bool:
64 def has_line_above() -> bool:
58 document = get_app().current_buffer.document
65 document = get_app().current_buffer.document
59 return document.cursor_position_row != 0
66 return document.cursor_position_row != 0
@@ -179,6 +186,7 b' KEYBINDING_FILTERS = {'
179 "never": Never(),
186 "never": Never(),
180 "has_line_below": has_line_below,
187 "has_line_below": has_line_below,
181 "has_line_above": has_line_above,
188 "has_line_above": has_line_above,
189 "is_cursor_at_the_end_of_line": is_cursor_at_the_end_of_line,
182 "has_selection": has_selection,
190 "has_selection": has_selection,
183 "has_suggestion": has_suggestion,
191 "has_suggestion": has_suggestion,
184 "vi_mode": vi_mode,
192 "vi_mode": vi_mode,
General Comments 0
You need to be logged in to leave comments. Login now