Antonio Scandurra
ffdedfe04d
🎨
2022-07-23 09:31:41 +02:00
Antonio Scandurra
db5f26474b
Allow grouping local transactions even if remote peer edits in between
2022-07-23 09:27:21 +02:00
Max Brunsfeld
9e716749e6
Combine adjacent ranges in 'edited_ranges_for_transaction'
2022-07-22 17:41:31 -07:00
Max Brunsfeld and Antonio Scandurra
51868f445b
Remove versioned offset ranges from transactions and undo operations
...
Now, instead of using these versioned offset ranges, we locate the
fragments associated with a transaction using the transaction's
edit ids. To make this possible, buffers now store a new map called
`insertion_slices`, which lets you look up the ranges of insertions
that were affected by a given edit.
Co-authored-by: Antonio Scandurra <antonio@zed.dev >
2022-07-22 17:28:55 -07:00
Max Brunsfeld and Antonio Scandurra
48aff8d05d
Move edited_ranges_for_transaction from BufferSnapshot to Buffer
...
Co-authored-by: Antonio Scandurra <antonio@zed.dev >
2022-07-22 11:24:14 -07:00
Antonio Scandurra
bfa490c35d
Merge branch 'main' into ime-support-2
2022-07-22 16:03:38 +02:00
Antonio Scandurra
6141bb52cc
Synthesize CGEvents instead of using charactersByApplyingModifiers
2022-07-22 15:51:34 +02:00
Antonio Scandurra
7526f37d7c
Honor ⌘ when Dvorak-QWERTY is used
2022-07-22 14:52:24 +02:00
Antonio Scandurra
bffe391a34
Discard shift when it causes keyboard to output a different character
2022-07-22 08:15:44 +02:00
Max Brunsfeld
ef1e089260
Remove test for handling input via key events
...
Now, textual input is handled by a different code path than other key events.
2022-07-21 21:40:37 -07:00
Max Brunsfeld
f362b2b527
Adjust editor tests to use input APIs instead of key events
2022-07-21 21:36:40 -07:00
Max Brunsfeld
1ac16da8e8
Add simple IME handling to the terminal
2022-07-21 21:32:58 -07:00
Keith Simmons
ab252d559a
Merge pull request #1396 from zed-industries/better-empty-pane
...
Fix Pane Focus Issues
2022-07-21 15:07:03 -07:00
K Simmons
ba17408e36
Minor naming improvements and revert empty pane background color change
2022-07-21 14:56:17 -07:00
Max Brunsfeld
314bbe31f6
Remove print statements
2022-07-21 13:44:58 -07:00
Max Brunsfeld
a4d997214e
Remove Input action, detect ignored input in vim via an event
2022-07-21 13:40:48 -07:00
Max Brunsfeld
1173626be7
Prevent IME window from appearing while editor's input is disabled (vim)
2022-07-21 12:48:36 -07:00
Max Brunsfeld
b28439face
Remove the set_selected_text_range method from the InputHandler trait
2022-07-21 12:22:12 -07:00
Antonio Scandurra
8faec49db3
Don't dispatch keydown event if editor is still composing
2022-07-21 17:37:32 +02:00
Antonio Scandurra
379f8887ba
Position IME input according to where the selection is rendered
2022-07-21 17:35:40 +02:00
Antonio Scandurra
18c1c8fa97
Always mark keydown events as handled to suppress beep
2022-07-21 15:53:21 +02:00
Antonio Scandurra
c11cb83faa
🎨
2022-07-21 14:39:22 +02:00
Antonio Scandurra
1613207abd
Handle keydown event even when charactersIgnoringModifiers is empty
...
This allows the input system to work in the presence of dead keys.
2022-07-21 14:36:47 +02:00
Antonio Scandurra
7ac7137f6c
Remove input from KeyDownEvent
2022-07-21 14:29:27 +02:00
Antonio Scandurra
aa9a4b6fb4
Remove println statements from NSTextInputClient protocol functions
2022-07-21 13:51:31 +02:00
Antonio Scandurra
0bb08ee3f7
Remove unused {cancel,finish}_composition methods
2022-07-21 13:48:56 +02:00
Antonio Scandurra
cdfa679eef
Restructure IME composition to not follow Chromium so closely
2022-07-21 13:41:55 +02:00
Antonio Scandurra
dbe8a85af5
Treat NSTextInputClient ranges as UTF-16
2022-07-21 13:41:35 +02:00
Antonio Scandurra
d103825bc6
Start indexing UTF-16 offsets
...
This is needed because cocoa will report ranges as UTF-16 indices.
2022-07-21 09:40:48 +02:00
Antonio Scandurra
02cf03474b
Honor setting the selected range in addition to marking text
2022-07-21 08:57:20 +02:00
K Simmons
2e0f73ff3a
fix test failure
2022-07-20 19:13:16 -07:00
K Simmons
66bb6b75fb
Fix warning
2022-07-20 19:02:12 -07:00
K Simmons
b31b867200
Address some issues where panes don't get focused properly, make the focused pane more obvious, and prevent splitting of the pane with no items
2022-07-20 18:52:32 -07:00
Max Brunsfeld
6288cafecf
Use new API for input handling in Terminal
2022-07-20 17:33:37 -07:00
Max Brunsfeld
bda456a5d1
Start work on new text input handling in Editor
2022-07-20 16:45:27 -07:00
Max Brunsfeld
eccd21aad6
Call methods on the focused view during input events
2022-07-20 16:44:26 -07:00
Keith Simmons
b57f9bed6c
Merge pull request #1392 from zed-industries/mouse-vim-mode-clipping
...
Fixup Clipping at Line Ends when Selecting with the Mouse in Vim Mode
2022-07-20 13:39:24 -07:00
Max Brunsfeld and Antonio Scandurra <antonio@zed.dev
ae72d1da3e
Change interpretation of marked_text and edit when handling input
...
Co-authored-by: Antonio Scandurra <antonio@zed.dev
2022-07-20 09:53:49 -07:00
Antonio Scandurra
1e94068a66
WIP
2022-07-20 18:06:29 +02:00
Nate Butler
9ab1283353
Merge pull request #1380 from zed-industries/theme-improvements
...
Theme improvements
2022-07-20 10:40:09 -04:00
Antonio Scandurra
1da1545f84
WIP
2022-07-20 15:07:09 +02:00
K Simmons
383c91c26c
Fix failing test re mode switch in buffer search
2022-07-19 17:18:17 -07:00
K Simmons
10f65f70d7
Fix clipping when dragging the mouse with vim-mode enabled and adjust single line editor selections
2022-07-19 17:18:17 -07:00
Nate Butler
8142842adb
Regenerate package-lock.json
2022-07-19 20:12:50 -04:00
Nate Butler
958a9bd730
Merge branch 'main' into theme-improvements
2022-07-19 20:12:02 -04:00
Nate Butler
ec9b508e4f
Update package-lock.json
2022-07-19 20:09:28 -04:00
Keith Simmons
70546d079d
Merge pull request #1388 from zed-industries/mouse-region-refactor
...
Mouse Region Refactor
2022-07-19 16:50:12 -07:00
Nate Butler
db11b97dbd
Fix incorrectly named icons
2022-07-19 17:13:40 -04:00
Nate Butler
311f4888fb
Update some contact panel styling
2022-07-19 17:11:26 -04:00
Nate Butler
5a3eba5a0a
Add icon sets for sizes 8, 12 and 16, remove old icons
2022-07-19 17:11:15 -04:00