AmendHub

jcs

/

amend

/

amendments

Amendments on October 29, 2021

tetab: Fix example usage (again)

jcs made amendment 26 over 3 years ago

repo: Don't use D_IGNOREBLANKS for diffreg

Using this causes some diffs to be wrong when the change was just
indenting or unindenting a line.
jcs made amendment 25 over 3 years ago

browser+committer: Improve Edit menu ops, add Cut+Paste in committer

Keep track of which TextEdit control was last clicked in committer and
make Edit menu operations affect that one.
jcs made amendment 24 over 3 years ago

Amendments on October 28, 2021

patch: Initial progress on patch applying

Unify on "patch" instead of "diff" terminology for export/apply
jcs made amendment 21 over 3 years ago

Amendments on October 27, 2021

browser+repo: Add diff exporting

Refactor diff header generation into a function to also use here.
When disabling menus, only disable their items. This avoids having
to call DrawMenuBar() which flashes annoyingly.
jcs made amendment 20 over 3 years ago

tetab: Simplify example usage

jcs made amendment 19 over 3 years ago

Amendments on October 23, 2021

util: Remove TECanAddLine and TEAppendFast no longer used

jcs made amendment 18 over 3 years ago

committer: Try to release log TE hText after commit, not close

If we close the window without a commit, that might do something bad
jcs made amendment 17 over 3 years ago

repo: Use BlockMove for overlapping data shift

This allows us to go back to using a single, expanded Handle when
shoving data into the TE.
Thanks to jjuran in #cyberpals for the tip
jcs made amendment 16 over 3 years ago

Amendments on October 22, 2021

browser+committer: Enable TETab on all TextEdits

Fix some logic errors in UpdateScrollbarForTE
jcs made amendment 15 over 3 years ago

tetab: Fix off-by-one

jcs made amendment 14 over 3 years ago

tetab: Add standalone tab handling module for TextEdit controls

This uses TE's TECustomHook functionality to hook into width
calculation, drawing, and hit testing to expand tabs into a
configurable number of spaces (defaulting to 4). This requires
using the new styled TextEdit control available in System 6+.
jcs made amendment 13 over 3 years ago

Amendments on October 20, 2021

browser: Give a bit more space to the diff TE

jcs made amendment 12 over 3 years ago

Amendments on October 19, 2021

main: Implement plumbing to open a file from Finder at startup

If a .repo file was double-clicked in Finder, open it instead of
showing the Open dialog
jcs made amendment 10 over 3 years ago

browser: Fix diff viewing when already scrolled

The TE was not getting scrolled back up when changed, but doing this
is tricker than it should be to avoid excessive redraws
jcs made amendment 9 over 3 years ago

browser: Fix diff viewing in a filtered commit list

jcs made amendment 8 over 3 years ago

repo: Show diff header with full log message

Add a utility function to append text to a TE without redrawing it
jcs made amendment 7 over 3 years ago