Commit 6582eb5
Fix down arrow navigation in last notebook cell to move cursor to end of line (microsoft#251156)
* Initial plan for issue
* Fix down arrow navigation in last notebook cell to move cursor to end of line
Co-authored-by: Yoyokrazy <[email protected]>
* Add test to validate cursor position logic for last cell arrow navigation
Co-authored-by: Yoyokrazy <[email protected]>
* Fix notebook down arrow navigation logic to move cursor to end of line
Co-authored-by: Yoyokrazy <[email protected]>
* Implement proper down arrow navigation logic based on feedback
- Check NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY context key
- Only move to end of line when cursor boundary is 'start' or 'none'
- Use ICellViewModel's setSelections method for cursor positioning
- Apply logic to any cell on last line, not just last cell
- Preserve existing behavior for last cell navigation
Co-authored-by: Yoyokrazy <[email protected]>
* holy overthinking copilot
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Yoyokrazy <[email protected]>
Co-authored-by: Michael Lively <[email protected]>1 parent f62c722 commit 6582eb5
File tree
1 file changed
+9
-1
lines changed1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
0 commit comments