Commit 4399cd7
Add wrap-around navigation setting (#26)
* Add wrap-around navigation setting (default off)
Chunk/conflict navigation no longer wraps around by default.
A new "Wrap around navigation" toggle in Preferences lets users
opt-in to the previous wrap behavior.
Closes #10
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix UI test: don't hardcode chunk count
The fixture files produce 3 chunks, not 2. Parse the label
dynamically instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix Makefile: build release binary before UI tests
The test-release target was running pytest against
target/release/mergers without rebuilding it first, so UI tests
could run against a stale binary.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix merge view cursor starting at end of buffer
GTK's set_text leaves the cursor at the end, so conflict/chunk
navigation couldn't find anything forward on first use. Place
cursors at start after setting text, matching diff_view behavior.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add nav button sensitivity at chunk boundaries
When wrap-around navigation is off, prev/next chunk buttons now become
insensitive when there is no chunk to navigate to in that direction.
Buttons also start insensitive until the initial async diff completes.
Applies to diff view (chunk nav), merge view (chunk nav + conflict nav).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update chunk/conflict label on cursor movement
When the user clicks or moves the cursor into a change region, the
chunk label now shows "Change X of Y" and nav button sensitivity
updates accordingly. In merge view, the conflict label also tracks
cursor position on conflict marker lines.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Track conflict label by cursor position within block
The conflict label now shows "Conflict X of Y" when the cursor is
anywhere inside a conflict block (between <<<<<<< and >>>>>>>), not
just on the exact marker line.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* bump to 0.5.1
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5ab6fd6 commit 4399cd7
11 files changed
Lines changed: 902 additions & 53 deletions
File tree
- src
- ui
- tests/ui_integration
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| 102 | + | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1527 | 1527 | | |
1528 | 1528 | | |
1529 | 1529 | | |
| 1530 | + | |
1530 | 1531 | | |
1531 | 1532 | | |
1532 | 1533 | | |
| |||
1535 | 1536 | | |
1536 | 1537 | | |
1537 | 1538 | | |
1538 | | - | |
| 1539 | + | |
1539 | 1540 | | |
1540 | 1541 | | |
1541 | 1542 | | |
| |||
1586 | 1587 | | |
1587 | 1588 | | |
1588 | 1589 | | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
1589 | 1610 | | |
1590 | 1611 | | |
1591 | 1612 | | |
| |||
0 commit comments