Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] PR: Add multi-cursor editing to codeeditor #22996

Draft
wants to merge 54 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
8a24981
manually draw all text cursors and mouse shortcut to add cursors
athompson673 Nov 3, 2024
d64e95e
Merge remote-tracking branch 'upstream/master'
athompson673 Nov 3, 2024
d03be3e
non-shortcut mouse press clears extra cursors
athompson673 Nov 3, 2024
d3e3e65
draw extra cursor selections using text decorations
athompson673 Nov 3, 2024
13414fd
refactoring
athompson673 Nov 4, 2024
c457bb0
formatting and comments
athompson673 Nov 4, 2024
2c8d669
first attempt at handling keyEvent for all cursors
athompson673 Nov 4, 2024
df16552
implement various cursor movement
athompson673 Nov 4, 2024
244a4ba
Merge branch 'spyder-ide:master' into master
athompson673 Nov 5, 2024
a9ec7b8
Merge branch 'spyder-ide:master' into master
athompson673 Nov 5, 2024
7895b99
Fix missing line for delete key handling
athompson673 Nov 5, 2024
c121ec3
Add cursor EditBlock to key event for undo history and other changes
athompson673 Nov 6, 2024
daf592f
write multi-cursor cut, copy, paste
athompson673 Nov 6, 2024
7284757
Merge branch 'spyder-ide:master' into master
athompson673 Nov 6, 2024
1a955e9
rework delete handling for better undo/redo cursor positioning
athompson673 Nov 7, 2024
63fe5ed
rework cursor painting
athompson673 Nov 7, 2024
af348c5
overtype cursor rendering
athompson673 Nov 7, 2024
8b2c27c
implement overlapping cursor merge
athompson673 Nov 8, 2024
4c803fa
impl select-all, and template methods for wrapping other shortcuts
athompson673 Nov 8, 2024
a612b78
refactor prev/next word, and prevent auto completions when multi-cursor
athompson673 Nov 9, 2024
88d6fd2
impl wrappers for shortcut functions and delete_line function for mul…
athompson673 Nov 9, 2024
1c5685d
better cursor edit handling in for_each_cursor wrapper. Implements go…
athompson673 Nov 10, 2024
df71b7b
revert cursor_move_event in favor of wrapper function: for_each_curso…
athompson673 Nov 10, 2024
bee76c3
re-work callback wrappers to prevent QAction from sending extraneous …
athompson673 Nov 10, 2024
6b34797
style changes and #TODO comments
athompson673 Nov 10, 2024
15a20d9
Merge branch 'spyder-ide:master' into master
athompson673 Nov 10, 2024
6bb721f
docstrings, and unneeded func call cleanup
athompson673 Nov 10, 2024
cef9337
small refactoring
athompson673 Nov 10, 2024
3f35f0a
fix deletion of folded lines (delete and delete_line)
athompson673 Nov 11, 2024
528672b
qt6 enum naming, and attempt to get cursor to not enter hidden blocks
athompson673 Nov 11, 2024
82f5597
Merge branch 'spyder-ide:master' into master
athompson673 Nov 13, 2024
d76d32a
edit docstrings and todo notes
athompson673 Nov 13, 2024
6e94976
re-implement methods for next/prev cell
athompson673 Nov 13, 2024
128f306
move cursor clearing for several functions to go_to_line
athompson673 Nov 13, 2024
7b7c1a4
simplify multi-cursor keypress handling and add merge direction to fo…
athompson673 Nov 14, 2024
4bb130f
multi-cursor docstring shortcuts
athompson673 Nov 14, 2024
a0979d0
fix cursor blink typo so cursor is not hidden during rapid keypress e…
athompson673 Nov 14, 2024
525f8fd
Colum cursor creation and multi-cursor remove cursor click interactions
athompson673 Nov 14, 2024
64b8523
Fix column cursor shortcut: clamp cursor position to text length not …
athompson673 Nov 16, 2024
0596845
edit multi cursor paste: if single line on clipboard; repeat for all …
athompson673 Nov 16, 2024
a66d4e8
rewrite cursor rendering again for overwrite mode
athompson673 Nov 16, 2024
2c1c9bf
pep 8 changes (some, not all)
athompson673 Nov 16, 2024
7d35e3f
revert badly merged line from cut()
athompson673 Nov 16, 2024
f65df51
Merge branch 'spyder-ide:master' into master
athompson673 Nov 18, 2024
2aeb191
pep8 line length edits and attempt to fix delete behavior regression
athompson673 Nov 18, 2024
de42e08
reorganize multi-cursor keyPressEvent, and bugfix merge_cursors
athompson673 Nov 18, 2024
5ffd2df
rewrite delete and delete_line to fix behavior with folded code
athompson673 Nov 19, 2024
2f300d2
update multi_cursor_keypress handling to emit signals before changing…
athompson673 Nov 19, 2024
8fb4df7
make autoformatting clear extra cursors
athompson673 Nov 19, 2024
8b19db9
begin implementing multi-cursor toggle for settings option, and add d…
athompson673 Nov 20, 2024
0dd876e
Merge branch 'spyder-ide:master' into master
athompson673 Nov 21, 2024
c0f58b1
Merge branch 'spyder-ide:master' into master
athompson673 Nov 22, 2024
f6cbb27
multi-cursor enter key handling
athompson673 Nov 27, 2024
8c775b2
Merge branch 'spyder-ide:master' into master
athompson673 Nov 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading